.Modelica.Units.Conversions

Information

This package provides conversion functions from the non SI Units defined in package Modelica.Units.NonSI to the corresponding SI Units defined in package Modelica.Units.SI and vice versa. It is recommended to use these functions in the following way (note, that all functions have one Real input and one Real output argument):

import Modelica.Units.SI;
import Modelica.Units.Conversions.{from_degC, from_deg, from_rpm};
   ...
parameter SI.Temperature     T   = from_degC(25);   // convert 25 degree Celsius to kelvin
parameter SI.Angle           phi = from_deg(180);   // convert 180 degree to radian
parameter SI.AngularVelocity w   = from_rpm(3600);  // convert 3600 revolutions per minutes
                                                   // to radian per seconds

Contents

NameDescription
 to_unit1Change the unit of a Real number to unit="1"
 to_degCConvert from kelvin to degree Celsius
 from_degCConvert from degree Celsius to kelvin
 to_degFConvert from kelvin to degree Fahrenheit
 from_degFConvert from degree Fahrenheit to kelvin
 to_degRkConvert from kelvin to degree Rankine
 from_degRkConvert from degree Rankine to kelvin
 to_degConvert from radian to degree
 from_degConvert from degree to radian
 to_rpmConvert from radian per second to revolutions per minute
 from_rpmConvert from revolutions per minute to radian per second
 to_kmhConvert from metre per second to kilometre per hour
 from_kmhConvert from kilometre per hour to metre per second
 to_dayConvert from second to day
 from_dayConvert from day to second
 to_hourConvert from second to hour
 from_hourConvert from hour to second
 to_minuteConvert from second to minute
 from_minuteConvert from minute to second
 to_litreConvert from cubic metre to litre
 from_litreConvert from litre to cubic metre
 from_AhConvert from Ampere hours to Coulomb
 to_AhConvert from Coulomb to Ampere hours
 from_WhConvert from watt hour to joule
 to_WhConvert from joule to watt hour
 to_kWhConvert from joule to kilo watt hour
 from_kWhConvert from kilo watt hour to joule
 to_barConvert from Pascal to bar
 from_barConvert from bar to Pascal
 to_gpsConvert from kilogram per second to gram per second
 from_gpsConvert from gram per second to kilogram per second
 from_HzConvert from Hz to rad/s
 to_HzConvert from rad/s to Hz
 to_cm2Convert from square metre to square centimetre
 from_cm2Convert from square centimetre to square metre

Generated at 2024-12-17T19:26:02Z by OpenModelicaOpenModelica 1.24.3 using GenerateDoc.mos