Changeset 664
- Timestamp:
- 10/10/2007 03:46:44 PM (15 months ago)
- Files:
-
- 1 modified
-
Modelica/trunk/Modelica/SIunits.mo (modified) (18 diffs)
Legend:
- Unmodified
- Added
- Removed
-
Modelica/trunk/Modelica/SIunits.mo
r662 r664 10 10 <i>Length</i>, <i>Time</i>, based on the international standard 11 11 on units.</p> 12 12 13 13 </HTML>")); 14 14 … … 23 23 for example: 24 24 </p> 25 25 26 26 <pre> <b>model</b> MassOnGround 27 27 <b>parameter</b> Real m(quantity=\"Mass\", unit=\"kg\") \"Mass\"; … … 34 34 <b>end</b> MassOnGround; 35 35 </pre> 36 36 37 37 <p> 38 38 This means that the equations in the equation section are only correct … … 49 49 for a variable of type Real: 50 50 </p> 51 51 52 52 <ul> 53 53 <li><b>quantity</b> to define the physical quantity (e.g. \"Length\", or \"Energy\").</li> … … 57 57 user interface as default display unit for input and/or output.</li> 58 58 </ul> 59 59 60 60 <p> 61 61 Note, a unit, such as \"N.m\", is not sufficient to define uniquely the … … 65 65 a unit for the corresponding variable. 66 66 </p> 67 67 68 68 <p> 69 69 For example, after providing a value for \"m\" and \"f\" in a parameter 70 70 menu of an instance of MassOnGround, a tool might generate the following code: 71 71 </p> 72 72 73 73 <pre> 74 74 MassOnGround myObject(m(displayUnit=\"g\")=2, f=3); 75 75 </pre> 76 76 77 77 <p> 78 78 The meaning is that in the equations a value of \"2\" is used … … 82 82 a tool might ignore the \"displayUnit\" attribute. 83 83 </p> 84 84 85 85 <p> 86 86 In order to help the Modelica model developer, the Modelica.SIunits … … 94 94 might therefore be alternatively also defined as: 95 95 </p> 96 96 97 97 <pre> <b>model</b> MassOnGround 98 98 <b>parameter</b> Modelica.SIunits.Mass m \"Mass\"; … … 101 101 <b>end</b> MassOnGround; 102 102 </pre> 103 103 104 104 <p> 105 105 or in a short hand notation as 106 106 </p> 107 107 108 108 <pre> 109 109 <b>model</b> MassOnGround … … 114 114 <b>end</b> MassOnGround; 115 115 </pre> 116 116 117 117 <p> 118 118 For some often … … 122 122 in the declaration as in the example at the beginning. 123 123 </p> 124 124 125 125 </html>")); 126 126 … … 176 176 <p> This package is based on the following references 177 177 </p> 178 178 179 179 <dl> 180 180 <dt>ISO 31-1992:</dt> 181 181 <dd> <b>General principles concerning 182 182 quantities, units and symbols</b>.<br> </dd> 183 183 184 184 <dt>ISO 1000-1992:</dt> 185 185 <dd> <b>SI units and recommendations for the use 186 186 of their multiples and of certain other units</b>.<br> </dd> 187 187 188 188 <dt>Cardarelli F.:</dt> 189 189 <dd> <b>Scientific Unit Conversion - A Practical 190 190 Guide to Metrication</b>. Springer 1997.</dd> 191 191 </dl> 192 192 193 193 </html> 194 194 ")); … … 209 209 email: <A HREF=\"mailto:Martin.Otter@dlr.de\">Martin.Otter@dlr.de</A><br> 210 210 </dl> 211 212 211 212 213 213 <p><b>Acknowledgements:</b></p> 214 214 <ul> … … 241 241 on units, e.g., 242 242 </p> 243 243 244 244 <pre> <b>type</b> Angle = Real(<b>final</b> quantity = \"Angle\", 245 245 <b>final</b> unit = \"rad\", 246 246 displayUnit = \"deg\"); 247 247 </pre> 248 248 249 249 <p> 250 250 as well as conversion functions from non SI-units to SI-units … … 252 252 <a href=\"Modelica://Modelica.SIunits.Conversions\">Conversions</a>. 253 253 </p> 254 254 255 255 <p> 256 256 For an introduction how units are used in the Modelica standard library … … 258 258 <a href=\"Modelica://Modelica.SIunits.UsersGuide.HowToUseSIunits\">How to use SIunits</a>. 259 259 </p> 260 260 261 261 <p> 262 262 Copyright © 1998-2007, Modelica Association and DLR. … … 268 268 <a href=\"Modelica://Modelica.UsersGuide.ModelicaLicense\">here</a>.</i> 269 269 </p> 270 270 271 271 </html>", revisions="<html> 272 272 <ul> … … 980 980 final unit="K", 981 981 min = 0, 982 displayUnit="degC") ;982 displayUnit="degC") annotation(__Dymola_absoluteValue=true); 983 983 type Temp_K = ThermodynamicTemperature; 984 984 type Temperature = ThermodynamicTemperature; 985 985 type TemperatureDifference = Real ( 986 986 final quantity="ThermodynamicTemperature", 987 final unit="K") ;987 final unit="K") annotation(__Dymola_absoluteValue=false); 988 988 type CelsiusTemperature = Real (final quantity="CelsiusTemperature", final unit 989 = "degC") ;989 = "degC") annotation(__Dymola_absoluteValue=true); 990 990 type Temp_C = CelsiusTemperature; 991 991 type LinearExpansionCoefficient = Real (final quantity=
