In addition to the predefined units in JaamSim, new units can be specified using a Unit object. A new Unit object can be created by entering the appropriate Define statement in the configuration file (see Section 8). For example if a new TimeUnit called ‘Fortnight’ is required, then the define statement would be:
Define TimeUnit { Fortnight }
All Unit objects have the same input keyword:
Unit Key Inputs
Keyword |
Description |
ConversionFactorToSI |
Two numbers that specify the numerator and denominator, respectively, of the multiplicative factor to convert from the new Unit to SI base units. |
For example, for the ‘Fortnight’ time unit (two weeks) defined above, the ConversionFactorToSI keyword should be set as follows:
Fortnight ConversionFactorToSI ( 1209600 1 }
Once the new unit is defined in this way, it can be used with any input that requires that type of unit.