Changes between Initial Version and Version 1 of Ticket #2856, comment 33


Ignore:
Timestamp:
2016-12-07T14:17:47Z (8 years ago)
Author:
Francesco Casella

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #2856, comment 33

    initial v1  
    2525  Modelica.SIunits.Voltage v;
    2626  Modelica.SIunits.Current i;
    27   Modelica.SIunits.Resistance Ohm = 1;
     27  final constant Modelica.SIunits.Resistance ohm = 1;
    2828equation
    29   v = 4*Ohm*i;
     29  v = 4*ohm*i;
    3030}}}
    3131I would then propose to add the following normative text to Section 2.4.1:
     
    5151  Modelica.SIunits.Voltage v;
    5252  Modelica.SIunits.Current i;
    53   Modelica.SIunits.Resistance Ohm = 1;
     53  final constant Modelica.SIunits.Resistance ohm = 1;
    5454equation
    55   v = 4*Ohm*i;
     55  v = 4*ohm*i;
    5656}}}
     57
     58We should also add basic units constants to Modelica.SIunits, e.g.
     59{{{
     60constant Modelica.SIunits.Voltage volt = 1;
     61constant Modelica.SIunits.Current ampere = 1;
     62constant Modelica.SIunits.Resistance ohm = 1;
     63}}}
     64so that they can be directly used in models, e.g.
     65{{{
     66  import SI = Modelica.SIunits;
     67equation
     68  v = 4*SI.ohm*i;
     69}}}