us.baseUnit().create(<tag>,<symbol>,<quantity>) creates a base unit for the quantity
<quantity>, tagged
<tag> with the symbol
<symbol>. The quantity is any of the seven base dimensions (
length,
mass,
time,
current,
temperature,
substance, and
intensity).
us.derivedUnit().create(<tag>,<units>,<powers>) creates a new derived unit tagged
<tag> and derived from the units in
<units> each to the power of the powers in
<powers>.
us.derivedUnit(<tag>).definition(<units>,<powers>) sets the definition of a derived unit in powers of other units. The resulting dimension must agree with any previously specified dimension for this unit. Use the
create method to define a dimension from the derived units.
us.additionalUnit().create(<tag>,<dim>) creates a new additional unit.
model.unitSystem().builtInTags() returns the tags of the built-in unit systems. The method
model.unitSystem().tags() returns the tags of the user-defined unit systems. Both sets of tags can be used to retrieve the unit system using
model.unitSystem(<tag>).
us.additionalUnit(<tag>).aliases(<aliases>) sets alternate names for the unit that can be used in unit expressions.
us.additionalUnit(<tag>).quantity(<quantity>) assigns a physical quantity to the given unit.
us.additionalUnit(<tag>).scale(<scale>) sets the scale of the additional unit.
us.derivedUnit(<tag>).symbol(<symbol>) sets the symbol of the derived unit.
us.derivedUnit(<tag>).offset(<offset>) sets the offset of the derived unit.
You can set the base unit system for the entire model using model.baseSystem(<utag>) or separately for each model node using
model.modelNode(<tag>).baseSystem(<utag>).
Create a cgs2 unit system with the base unit for length set to centimeter (cm). Also add meter/second (m/s) as a derived unit for speed and degrees Celsius as an additional unit for temperature: