Changes between Initial Version and Version 1 of Ticket #2856, comment 33
- Timestamp:
- 2016-12-07T14:17:47Z (8 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Ticket #2856, comment 33
initial v1 25 25 Modelica.SIunits.Voltage v; 26 26 Modelica.SIunits.Current i; 27 Modelica.SIunits.Resistance Ohm = 1;27 final constant Modelica.SIunits.Resistance ohm = 1; 28 28 equation 29 v = 4* Ohm*i;29 v = 4*ohm*i; 30 30 }}} 31 31 I would then propose to add the following normative text to Section 2.4.1: … … 51 51 Modelica.SIunits.Voltage v; 52 52 Modelica.SIunits.Current i; 53 Modelica.SIunits.Resistance Ohm = 1;53 final constant Modelica.SIunits.Resistance ohm = 1; 54 54 equation 55 v = 4* Ohm*i;55 v = 4*ohm*i; 56 56 }}} 57 58 We should also add basic units constants to Modelica.SIunits, e.g. 59 {{{ 60 constant Modelica.SIunits.Voltage volt = 1; 61 constant Modelica.SIunits.Current ampere = 1; 62 constant Modelica.SIunits.Resistance ohm = 1; 63 }}} 64 so that they can be directly used in models, e.g. 65 {{{ 66 import SI = Modelica.SIunits; 67 equation 68 v = 4*SI.ohm*i; 69 }}}