Conversions package

Requirements.Units.Conversions  ยท source

Icon of Conversions

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

NameKindDescription
to_msfunctionConvert from second to millisecond
from_msfunctionConvert from millisecond to second
to_mmfunctionConvert from metre to millimetre
from_mmfunctionConvert from millimetre to metre
to_cmfunctionConvert from metre to centimetre
from_cmfunctionConvert from centimetre to metre
to_kmfunctionConvert from metre to kilometre
from_kmfunctionConvert from kilometre to metre
to_ftfunctionConvert from metre to foot
from_ftfunctionConvert from foot to metre
to_kftfunctionConvert from metre to thousands of feet
from_kftfunctionConvert from thousands of feet to metre
to_gfunctionConvert from kilogram to gram
from_gfunctionConvert from gram to kilogram
to_kgpminfunctionConvert from kilogram per second to kilogram per minute
from_kgpminfunctionConvert from kilogram per minute to kilogram per second
to_ftpsfunctionConvert from metre per second to foot per second
from_ftpsfunctionConvert from foot per second to metre per second
to_ftpminfunctionConvert from metre per second to foot per minute
from_ftpminfunctionConvert from foot per minute to metre per second
to_kPafunctionConvert from pascal to kilopascal
from_kPafunctionConvert from kilopascal to pascal
to_MPafunctionConvert from pascal to megapascal
from_MPafunctionConvert from megapascal to pascal
to_mbarfunctionConvert from pascal to millibar
from_mbarfunctionConvert from millibar to pascal
to_kWfunctionConvert from watt to kilowatt
from_kWfunctionConvert from kilowatt to watt
to_percentfunctionConvert from a ratio (unit 1) to percent
from_percentfunctionConvert from percent to a ratio (unit 1)
to_kJfunctionConvert from joule to kilojoule
from_kJfunctionConvert from kilojoule to joule
to_degpsfunctionConvert from radian per second to degree per second
from_degpsfunctionConvert from degree per second to radian per second
to_degps2functionConvert from radian per second squared to degree per second squared
from_degps2functionConvert from degree per second squared to radian per second squared
to_lpminfunctionConvert from cubic metre per second to litre per minute
from_lpminfunctionConvert from litre per minute to cubic metre per second
to_m3phfunctionConvert from cubic metre per second to cubic metre per hour
from_m3phfunctionConvert from cubic metre per hour to cubic metre per second
to_kJpkgfunctionConvert from joule per kilogram to kilojoule per kilogram
from_kJpkgfunctionConvert from kilojoule per kilogram to joule per kilogram
to_gpkgfunctionConvert from kilogram per kilogram to gram per kilogram
from_gpkgfunctionConvert from gram per kilogram to kilogram per kilogram
to_mHfunctionConvert from henry to millihenry
from_mHfunctionConvert from millihenry to henry
to_uHfunctionConvert from henry to microhenry
from_uHfunctionConvert from microhenry to henry
to_mWbfunctionConvert from weber to milliweber
from_mWbfunctionConvert from milliweber to weber
to_kOhmfunctionConvert from ohm to kilohm
from_kOhmfunctionConvert from kilohm to ohm
to_MOhmfunctionConvert from ohm to megohm
from_MOhmfunctionConvert from megohm to ohm
to_mOhmfunctionConvert from ohm to milliohm
from_mOhmfunctionConvert from milliohm to ohm
to_uFfunctionConvert from farad to microfarad
from_uFfunctionConvert from microfarad to farad
to_nFfunctionConvert from farad to nanofarad
from_nFfunctionConvert from nanofarad to farad
to_pFfunctionConvert from farad to picofarad
from_pFfunctionConvert from picofarad to farad
to_kVAfunctionConvert from volt-ampere to kilovolt-ampere
from_kVAfunctionConvert from kilovolt-ampere to volt-ampere
to_kvarfunctionConvert from var to kilovar
from_kvarfunctionConvert from kilovar to var
to_kJpkgKfunctionConvert from joule per kilogram kelvin to kilojoule per kilogram kelvin
from_kJpkgKfunctionConvert from kilojoule per kilogram kelvin to joule per kilogram kelvin
to_gpcm3functionConvert from kilogram per cubic metre to gram per cubic centimetre
from_gpcm3functionConvert from gram per cubic centimetre to kilogram per cubic metre
to_mPasfunctionConvert from pascal second to millipascal second
from_mPasfunctionConvert from millipascal second to pascal second
to_cm2functionConvert from square metre to square centimetre
from_cm2functionConvert from square centimetre to square metre
to_mm2functionConvert from square metre to square millimetre
from_mm2functionConvert from square millimetre to square metre
to_mTfunctionConvert from tesla to millitesla
from_mTfunctionConvert from millitesla to tesla
to_barpsfunctionConvert from pascal per second to bar per second
from_barpsfunctionConvert from bar per second to pascal per second