Conversions package
Requirements.Units.Conversions
ยท source
Conversion functions to/from the non-SI units of Requirements.Units.NonSI
Extends Modelica.Icons.Package
Conversion functions in the manner of Modelica.Units.Conversions for the non-SI units of NonSI: from_<unit> converts a value written in the non-SI unit to the SI unit, to_<unit> the reverse; every function is inlined. A check model, hand-written or generated from a requirement statement, can write every quantity of the statement as from_<unit>(<value as written>), so the model reads like the statement and the conversion is this library's, not the author's (or a generator's) arithmetic; a plant variable that is in a non-SI unit is converted the same way into the SI output the check reads, which keeps the original unit in its displayUnit. Units that Modelica.Units.Conversions already covers (degC, bar, rpm, km/h, min, h, ...) are taken from there.
Copyright © 2026 Model Based Innovation LLC. All rights reserved.
Contents
| Name | Kind | Description | |
|---|---|---|---|
| to_ms | function | Convert from second to millisecond | |
| from_ms | function | Convert from millisecond to second | |
| to_mm | function | Convert from metre to millimetre | |
| from_mm | function | Convert from millimetre to metre | |
| to_cm | function | Convert from metre to centimetre | |
| from_cm | function | Convert from centimetre to metre | |
| to_km | function | Convert from metre to kilometre | |
| from_km | function | Convert from kilometre to metre | |
| to_ft | function | Convert from metre to foot | |
| from_ft | function | Convert from foot to metre | |
| to_kft | function | Convert from metre to thousands of feet | |
| from_kft | function | Convert from thousands of feet to metre | |
| to_g | function | Convert from kilogram to gram | |
| from_g | function | Convert from gram to kilogram | |
| to_kgpmin | function | Convert from kilogram per second to kilogram per minute | |
| from_kgpmin | function | Convert from kilogram per minute to kilogram per second | |
| to_ftps | function | Convert from metre per second to foot per second | |
| from_ftps | function | Convert from foot per second to metre per second | |
| to_ftpmin | function | Convert from metre per second to foot per minute | |
| from_ftpmin | function | Convert from foot per minute to metre per second | |
| to_kPa | function | Convert from pascal to kilopascal | |
| from_kPa | function | Convert from kilopascal to pascal | |
| to_MPa | function | Convert from pascal to megapascal | |
| from_MPa | function | Convert from megapascal to pascal | |
| to_mbar | function | Convert from pascal to millibar | |
| from_mbar | function | Convert from millibar to pascal | |
| to_kW | function | Convert from watt to kilowatt | |
| from_kW | function | Convert from kilowatt to watt | |
| to_percent | function | Convert from a ratio (unit 1) to percent | |
| from_percent | function | Convert from percent to a ratio (unit 1) | |
| to_kJ | function | Convert from joule to kilojoule | |
| from_kJ | function | Convert from kilojoule to joule | |
| to_degps | function | Convert from radian per second to degree per second | |
| from_degps | function | Convert from degree per second to radian per second | |
| to_degps2 | function | Convert from radian per second squared to degree per second squared | |
| from_degps2 | function | Convert from degree per second squared to radian per second squared | |
| to_lpmin | function | Convert from cubic metre per second to litre per minute | |
| from_lpmin | function | Convert from litre per minute to cubic metre per second | |
| to_m3ph | function | Convert from cubic metre per second to cubic metre per hour | |
| from_m3ph | function | Convert from cubic metre per hour to cubic metre per second | |
| to_kJpkg | function | Convert from joule per kilogram to kilojoule per kilogram | |
| from_kJpkg | function | Convert from kilojoule per kilogram to joule per kilogram | |
| to_gpkg | function | Convert from kilogram per kilogram to gram per kilogram | |
| from_gpkg | function | Convert from gram per kilogram to kilogram per kilogram | |
| to_mH | function | Convert from henry to millihenry | |
| from_mH | function | Convert from millihenry to henry | |
| to_uH | function | Convert from henry to microhenry | |
| from_uH | function | Convert from microhenry to henry | |
| to_mWb | function | Convert from weber to milliweber | |
| from_mWb | function | Convert from milliweber to weber | |
| to_kOhm | function | Convert from ohm to kilohm | |
| from_kOhm | function | Convert from kilohm to ohm | |
| to_MOhm | function | Convert from ohm to megohm | |
| from_MOhm | function | Convert from megohm to ohm | |
| to_mOhm | function | Convert from ohm to milliohm | |
| from_mOhm | function | Convert from milliohm to ohm | |
| to_uF | function | Convert from farad to microfarad | |
| from_uF | function | Convert from microfarad to farad | |
| to_nF | function | Convert from farad to nanofarad | |
| from_nF | function | Convert from nanofarad to farad | |
| to_pF | function | Convert from farad to picofarad | |
| from_pF | function | Convert from picofarad to farad | |
| to_kVA | function | Convert from volt-ampere to kilovolt-ampere | |
| from_kVA | function | Convert from kilovolt-ampere to volt-ampere | |
| to_kvar | function | Convert from var to kilovar | |
| from_kvar | function | Convert from kilovar to var | |
| to_kJpkgK | function | Convert from joule per kilogram kelvin to kilojoule per kilogram kelvin | |
| from_kJpkgK | function | Convert from kilojoule per kilogram kelvin to joule per kilogram kelvin | |
| to_gpcm3 | function | Convert from kilogram per cubic metre to gram per cubic centimetre | |
| from_gpcm3 | function | Convert from gram per cubic centimetre to kilogram per cubic metre | |
| to_mPas | function | Convert from pascal second to millipascal second | |
| from_mPas | function | Convert from millipascal second to pascal second | |
| to_cm2 | function | Convert from square metre to square centimetre | |
| from_cm2 | function | Convert from square centimetre to square metre | |
| to_mm2 | function | Convert from square metre to square millimetre | |
| from_mm2 | function | Convert from square millimetre to square metre | |
| to_mT | function | Convert from tesla to millitesla | |
| from_mT | function | Convert from millitesla to tesla | |
| to_barps | function | Convert from pascal per second to bar per second | |
| from_barps | function | Convert from bar per second to pascal per second |