NonSI package
Requirements.Units.NonSI
ยท source
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
| Name | Kind | Description | |
|---|---|---|---|
| Time_ms | type | Time in milliseconds | |
| Length_mm | type | Length in millimetres | |
| Length_cm | type | Length in centimetres | |
| Length_km | type | Length in kilometres | |
| Length_ft | type | Length in feet | |
| Length_kft | type | Length in thousands of feet (flight levels, cabin and aircraft altitudes) | |
| Mass_g | type | Mass in grams | |
| MassFlowRate_kgpmin | type | Mass flow rate in kilograms per minute | |
| Velocity_ftps | type | Velocity in feet per second | |
| Velocity_ftpmin | type | Velocity in feet per minute (rates of climb) | |
| Pressure_kPa | type | Pressure in kilopascals | |
| Pressure_MPa | type | Pressure (or stress) in megapascals | |
| Pressure_mbar | type | Pressure in millibars | |
| Power_kW | type | Power in kilowatts | |
| Energy_kJ | type | Energy in kilojoules | |
| AngularVelocity_degps | type | Angular velocity in degrees per second | |
| AngularAcceleration_degps2 | type | Angular acceleration in degrees per second squared | |
| VolumeFlowRate_lpmin | type | Volume flow rate in litres per minute (pumps, coolant loops) | |
| VolumeFlowRate_m3ph | type | Volume flow rate in cubic metres per hour (pumps, HVAC) | |
| SpecificEnergy_kJpkg | type | Specific energy (a specific enthalpy) in kilojoules per kilogram | |
| MassFraction_gpkg | type | Mass fraction in grams per kilogram (humidity ratios) | |
| Inductance_mH | type | Inductance in millihenries | |
| Inductance_uH | type | Inductance in microhenries | |
| MagneticFlux_mWb | type | Magnetic flux in milliwebers | |
| Resistance_kOhm | type | Resistance in kilohms | |
| Resistance_MOhm | type | Resistance in megohms (insulation resistances) | |
| Resistance_mOhm | type | Resistance in milliohms (contact and shunt resistances) | |
| Capacitance_uF | type | Capacitance in microfarads | |
| Capacitance_nF | type | Capacitance in nanofarads | |
| Capacitance_pF | type | Capacitance in picofarads | |
| ApparentPower_kVA | type | Apparent power in kilovolt-amperes | |
| ReactivePower_kvar | type | Reactive power in kilovars | |
| SpecificHeatCapacity_kJpkgK | type | Specific heat capacity in kilojoules per kilogram kelvin | |
| Density_gpcm3 | type | Density in grams per cubic centimetre | |
| DynamicViscosity_mPas | type | Dynamic viscosity in millipascal seconds (centipoise) | |
| Area_cm2 | type | Area in square centimetres | |
| Area_mm2 | type | Area in square millimetres | |
| MagneticFluxDensity_mT | type | Magnetic flux density in millitesla | |
| PressureSlope_barps | type | Pressure slope in bars per second | |
| Percent | type | A ratio in percent (a mass imbalance, an efficiency, a fraction of a range) |