NonSI package

Requirements.Units.NonSI  ยท source

Icon of NonSI

Type definitions of non-SI units (the ones Modelica.Units.NonSI does not define)

Extends Modelica.Icons.Package

Type definitions of non-SI units in the manner of Modelica.Units.NonSI, for the units that package does not define and that requirements written in engineering practice use (feet and thousands of feet for altitudes, kg/min for air flows, kPa and mbar for cabin pressures, milliseconds, kilowatts, ratios in percent), and the display units of the quantities the MSL's connectors carry (deg/s, l/min and m3/h, kJ/kg, g/kg, mH and uH, mWb) and of the quantities of its components (kOhm, MOhm and mOhm, uF, nF and pF, kV.A, kvar, kJ/(kg.K), g/cm3, mPa.s, cm2 and mm2, mT, bar/s). The corresponding conversion functions are in Conversions. A quantity that Modelica.Units.NonSI already defines (degC, bar, rpm, km/h, min, h, ...) is not repeated here.

Organisation. Every type is a Real with a final quantity (the physical quantity, named as in the SI types) and a final unit in the non-SI unit. The name is <Quantity>_<unit>, with the unit spelled out in ASCII: p for "per" (MassFlowRate_kgpmin is kg/min), u for micro (Inductance_uH), a trailing number for a power (Area_cm2, AngularAcceleration_degps2); the description string of each type names the unit and, where it helps, the engineering use.

Use. Declare a parameter or a variable that holds a value in a non-SI unit with one of these types, for example parameter Requirements.Units.NonSI.Length_kft h_max = 8 "Maximum cabin altitude", and convert it to SI with the matching from_<unit> function before it meets an SI signal; a variable of the model is converted with to_<unit>. Since the unit attribute is final, a tool that checks units can detect a value in one of these types that is equated with an SI variable without conversion. To show an SI variable in one of these units, a displayUnit suffices; the types are for values that are stored in the non-SI unit (a requirement's limit as written, a column of a measured file, a plant model that computes in that unit).

Copyright © 2026 Model Based Innovation LLC. All rights reserved.

Contents

NameKindDescription
Time_mstypeTime in milliseconds
Length_mmtypeLength in millimetres
Length_cmtypeLength in centimetres
Length_kmtypeLength in kilometres
Length_fttypeLength in feet
Length_kfttypeLength in thousands of feet (flight levels, cabin and aircraft altitudes)
Mass_gtypeMass in grams
MassFlowRate_kgpmintypeMass flow rate in kilograms per minute
Velocity_ftpstypeVelocity in feet per second
Velocity_ftpmintypeVelocity in feet per minute (rates of climb)
Pressure_kPatypePressure in kilopascals
Pressure_MPatypePressure (or stress) in megapascals
Pressure_mbartypePressure in millibars
Power_kWtypePower in kilowatts
Energy_kJtypeEnergy in kilojoules
AngularVelocity_degpstypeAngular velocity in degrees per second
AngularAcceleration_degps2typeAngular acceleration in degrees per second squared
VolumeFlowRate_lpmintypeVolume flow rate in litres per minute (pumps, coolant loops)
VolumeFlowRate_m3phtypeVolume flow rate in cubic metres per hour (pumps, HVAC)
SpecificEnergy_kJpkgtypeSpecific energy (a specific enthalpy) in kilojoules per kilogram
MassFraction_gpkgtypeMass fraction in grams per kilogram (humidity ratios)
Inductance_mHtypeInductance in millihenries
Inductance_uHtypeInductance in microhenries
MagneticFlux_mWbtypeMagnetic flux in milliwebers
Resistance_kOhmtypeResistance in kilohms
Resistance_MOhmtypeResistance in megohms (insulation resistances)
Resistance_mOhmtypeResistance in milliohms (contact and shunt resistances)
Capacitance_uFtypeCapacitance in microfarads
Capacitance_nFtypeCapacitance in nanofarads
Capacitance_pFtypeCapacitance in picofarads
ApparentPower_kVAtypeApparent power in kilovolt-amperes
ReactivePower_kvartypeReactive power in kilovars
SpecificHeatCapacity_kJpkgKtypeSpecific heat capacity in kilojoules per kilogram kelvin
Density_gpcm3typeDensity in grams per cubic centimetre
DynamicViscosity_mPastypeDynamic viscosity in millipascal seconds (centipoise)
Area_cm2typeArea in square centimetres
Area_mm2typeArea in square millimetres
MagneticFluxDensity_mTtypeMagnetic flux density in millitesla
PressureSlope_barpstypePressure slope in bars per second
PercenttypeA ratio in percent (a mass imbalance, an efficiency, a fraction of a range)