ConversionsConversion functions to/from non SI units and type definitions of non SI units |
Change the unit of a Real number to unit="1" |
|
Convert from kelvin to degree Celsius |
|
Convert from degree Celsius to kelvin |
|
Convert from kelvin to degree Fahrenheit |
|
Convert from degree Fahrenheit to kelvin |
|
Convert from kelvin to degree Rankine |
|
Convert from degree Rankine to kelvin |
|
Convert from radian to degree |
|
Convert from degree to radian |
|
Convert from radian per second to revolutions per minute |
|
Convert from revolutions per minute to radian per second |
|
Convert from metre per second to kilometre per hour |
|
Convert from kilometre per hour to metre per second |
|
Convert from second to day |
|
Convert from day to second |
|
Convert from second to hour |
|
Convert from hour to second |
|
Convert from second to minute |
|
Convert from minute to second |
|
Convert from cubic metre to litre |
|
Convert from litre to cubic metre |
|
Convert from Ampere hours to Coulomb |
|
Convert from Coulomb to Ampere hours |
|
Convert from watt hour to joule |
|
Convert from joule to watt hour |
|
Convert from joule to kilo watt hour |
|
Convert from kilo watt hour to joule |
|
Convert from Pascal to bar |
|
Convert from bar to Pascal |
|
Convert from kilogram per second to gram per second |
|
Convert from gram per second to kilogram per second |
|
Convert from Hz to rad/s |
|
Convert from rad/s to Hz |
|
Convert from square metre to square centimetre |
|
Convert from square centimetre to square metre |
This information is part of the Modelica Standard Library maintained by the Modelica Association.
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