A unit system may be optionally specified during AIM instance initiation.
- If no unit system is used, AIM inputs, which otherwise would require units, will be assumed unit consistent.
- If a unit system is provided, all AIM input values which have associated units must be specified as well. A unit system may be specified via a JSON string dictionary for example:
unitSystem = "{"mass": "kg", "length": "m", "time":"s", "temperature": "K"}"
or
unitSystem = "{"mass": "slug", "length": "in", "time":"s", "temperature": "R"}"
JSON String Dictionary
The key arguments of the dictionary are described in the following:
-
mass = "None"
Mass units - e.g. "kilogram", "kg", "slug", ...
-
length = "None"
Length units - e.g. "meter", "m", "inch", "in", "ft", "mile", ...
-
time = "None"
Time units - e.g. "second", "s", "minute", ...
-
temperature = "None"
Temperature units - e.g. "Kelvin", "K", "degC", ...