This package provides conversion functions from the non SI Units defined in package Modelica.SIunits.Conversions.NonSIunits to the corresponding SI Units defined in package Modelica.SIunits 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 SI = Modelica.SIunits; import Modelica.SIunits.Conversions.*; ... 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 secondsExtends from Modelica.Icons.Package (Icon for standard packages).
Name | Description |
---|---|
NonSIunits | Type definitions of non SI units |
to_unit1 | Change the unit of a Real number to unit="1" |
to_degC | Convert from Kelvin to degCelsius |
from_degC | Convert from degCelsius to Kelvin |
to_degF | Convert from Kelvin to degFahrenheit |
from_degF | Convert from degFahrenheit to Kelvin |
to_degRk | Convert from Kelvin to degRankine |
from_degRk | Convert from degRankine to Kelvin |
to_deg | Convert from radian to degree |
from_deg | Convert from degree to radian |
to_rpm | Convert from radian per second to revolutions per minute |
from_rpm | Convert from revolutions per minute to radian per second |
to_kmh | Convert from metre per second to kilometre per hour |
from_kmh | Convert from kilometre per hour to metre per second |
to_day | Convert from second to day |
from_day | Convert from day to second |
to_hour | Convert from second to hour |
from_hour | Convert from hour to second |
to_minute | Convert from second to minute |
from_minute | Convert from minute to second |
to_litre | Convert from cubic metre to litre |
from_litre | Convert from litre to cubic metre |
from_Ah | Convert from Ampere hours to Coulomb |
to_Ah | Convert from Coulomb to Ampere hours |
from_Wh | Convert from Watt hour to Joule |
to_Wh | Convert from Joule to Watt hour |
to_kWh | Convert from Joule to kilo Watt hour |
from_kWh | Convert from kilo Watt hour to Joule |
to_bar | Convert from Pascal to bar |
from_bar | Convert from bar to Pascal |
to_gps | Convert from kilogram per second to gram per second |
from_gps | Convert from gram per second to kilogram per second |
from_Hz | Convert from Hz to rad/s |
to_Hz | Convert from rad/s to Hz |
to_cm2 | Convert from square metre to square centimetre |
from_cm2 | Convert from square centimetre to square metre |
ConversionIcon | This icon will be removed in future Modelica versions. |
SIunits.Conversions.to_unit1(r);
The function call "Conversions.to_unit1(r)
" returns r with unit="1".
Extends from Modelica.SIunits.Icons.Conversion (Base icon for conversion functions).Modelica.SIunits.Velocity v = {3,2,1}; Real direction[3](unit="1") = to_unit1(v); // Automatically vectorized call of to_unit1
Name | Description |
---|---|
r | Real number |
Name | Description |
---|---|
result | Real number r with unit="1" [1] |
Name | Description |
---|---|
Kelvin | Kelvin value [K] |
Name | Description |
---|---|
Celsius | Celsius value [degC] |
Name | Description |
---|---|
Celsius | Celsius value [degC] |
Name | Description |
---|---|
Kelvin | Kelvin value [K] |
Name | Description |
---|---|
Kelvin | Kelvin value [K] |
Name | Description |
---|---|
Fahrenheit | Fahrenheit value [degF] |
Name | Description |
---|---|
Fahrenheit | Fahrenheit value [degF] |
Name | Description |
---|---|
Kelvin | Kelvin value [K] |
Name | Description |
---|---|
Kelvin | Kelvin value [K] |
Name | Description |
---|---|
Rankine | Rankine value [degRk] |
Name | Description |
---|---|
Rankine | Rankine value [degRk] |
Name | Description |
---|---|
Kelvin | Kelvin value [K] |
Name | Description |
---|---|
radian | radian value [rad] |
Name | Description |
---|---|
degree | degree value [deg] |
Name | Description |
---|---|
degree | degree value [deg] |
Name | Description |
---|---|
radian | radian value [rad] |
Name | Description |
---|---|
rs | radian per second value [rad/s] |
Name | Description |
---|---|
rpm | revolutions per minute value [1/min] |
Name | Description |
---|---|
rpm | revolutions per minute value [1/min] |
Name | Description |
---|---|
rs | radian per second value [rad/s] |
Name | Description |
---|---|
ms | metre per second value [m/s] |
Name | Description |
---|---|
kmh | kilometre per hour value [km/h] |
Name | Description |
---|---|
kmh | kilometre per hour value [km/h] |
Name | Description |
---|---|
ms | metre per second value [m/s] |
Name | Description |
---|---|
s | second value [s] |
Name | Description |
---|---|
day | day value [d] |
Name | Description |
---|---|
day | day value [d] |
Name | Description |
---|---|
s | second value [s] |
Name | Description |
---|---|
s | second value [s] |
Name | Description |
---|---|
hour | hour value [h] |
Name | Description |
---|---|
hour | hour value [h] |
Name | Description |
---|---|
s | second value [s] |
Name | Description |
---|---|
s | second value [s] |
Name | Description |
---|---|
minute | minute value [min] |
Name | Description |
---|---|
minute | minute value [min] |
Name | Description |
---|---|
s | second value [s] |
Name | Description |
---|---|
m3 | cubic metre value [m3] |
Name | Description |
---|---|
litre | litre value [l] |
Name | Description |
---|---|
litre | litre value [l] |
Name | Description |
---|---|
m3 | cubic metre value [m3] |
Name | Description |
---|---|
AmpereHour | Ampere hours [A.h] |
Name | Description |
---|---|
Coulomb | Coulomb [C] |
Name | Description |
---|---|
Coulomb | Coulomb [C] |
Name | Description |
---|---|
AmpereHour | Ampere hours [A.h] |
Name | Description |
---|---|
WattHour | Watt hour [W.h] |
Name | Description |
---|---|
Joule | Joule [J] |
Name | Description |
---|---|
Joule | Joule [J] |
Name | Description |
---|---|
WattHour | Watt hour [W.h] |
Name | Description |
---|---|
J | Joule value [J] |
Name | Description |
---|---|
kWh | kWh value [kW.h] |
Name | Description |
---|---|
kWh | kWh value [kW.h] |
Name | Description |
---|---|
J | Joule value [J] |
Name | Description |
---|---|
Pa | Pascal value [Pa] |
Name | Description |
---|---|
bar | bar value [bar] |
Name | Description |
---|---|
bar | bar value [bar] |
Name | Description |
---|---|
Pa | Pascal value [Pa] |
Name | Description |
---|---|
kgps | kg/s value [kg/s] |
Name | Description |
---|---|
gps | g/s value [g/s] |
Name | Description |
---|---|
gps | g/s value [g/s] |
Name | Description |
---|---|
kgps | kg/s value [kg/s] |
Name | Description |
---|---|
f | frequency [Hz] |
Name | Description |
---|---|
w | angular velocity [rad/s] |
Name | Description |
---|---|
w | angular velocity [rad/s] |
Name | Description |
---|---|
f | frequency [Hz] |
Name | Description |
---|---|
m2 | square metre value [m2] |
Name | Description |
---|---|
cm2 | square centimetre value [cm2] |
Name | Description |
---|---|
cm2 | square centimetre value [cm2] |
Name | Description |
---|---|
m2 | square metre value [m2] |
This icon of a conversion symbol will be removed in future versions of the library. Instead the icon Modelica.SIunits.Icons.Conversion shall be used.
Extends from Modelica.Icons.ObsoleteModel (Icon for classes that are obsolete and will be removed in later versions). Automatically generated Mon Sep 23 17:21:11 2013.