In FCSys, the
unit
attribute of each Real
variable actually denotes the
dimension.1 The fundamental dimensions are
angle (A), length (L), mass (M), particle number (N), and time (T). These
are combined according to the rules established for unit strings
[Modelica2010, p. 210].
Temperature and charge are derived dimensions
(see the Units package).
The quantity
attribute is not used since the type is the quantity.
The displayUnit
attribute is
only used for quantities that imply a certain display unit.
Methods for unit checking have been established [Mattsson2008, Broman2008, Aronsson2009] and can, in theory, be applied to dimension checking instead.
The Quantities package is abbreviated as Q
throughout
the rest of FCSys.
1. This misnomer is necessary because Real
variables do not have a dimension
attribute.↵
Licensed by the Hawaii Natural Energy Institute under the Modelica License 2
Copyright © 2007–2014, Hawaii Natural Energy Institute and Georgia Tech Research Corporation.
This Modelica package is free software and the use is completely at your own risk; it can be redistributed and/or modified under the terms of the Modelica License 2. For license conditions (including the disclaimer of warranty) see FCSys.UsersGuide.License or visit http://www.modelica.org/licenses/ModelicaLicense2.