Conversion functions to/from non SI units and type definitions of non SI units
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 seconds
Extends from Modelica.Icons.Package (Icon for standard packages).
| Name | Description |
|---|---|
| Type definitions of non SI units | |
| Change the unit of a Real number to unit="1" | |
| Convert from Kelvin to degCelsius | |
| Convert from degCelsius to Kelvin | |
| Convert from Kelvin to degFahrenheit | |
| Convert from degFahrenheit to Kelvin | |
| Convert from Kelvin to degRankine | |
| Convert from degRankine 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 icon will be removed in future Modelica versions. |
Modelica.SIunits.Conversions.to_unit1Change the unit of a Real number to unit="1"
SIunits.Conversions.to_unit1(r);
The function call "Conversions.to_unit1(r)" returns r with unit="1".
Modelica.SIunits.Velocity v = {3,2,1};
Real direction[3](unit="1") = to_unit1(v); // Automatically vectorized call of to_unit1
Extends from Modelica.SIunits.Icons.Conversion (Base icon for conversion functions).
| Name | Description |
|---|---|
| r | Real number |
| Name | Description |
|---|---|
| result | Real number r with unit="1" [1] |
Modelica.SIunits.Conversions.to_degCConvert from Kelvin to degCelsius
Extends from Modelica.SIunits.Icons.Conversion (Base icon for conversion functions).
| Name | Description |
|---|---|
| Kelvin | Kelvin value [K] |
| Name | Description |
|---|---|
| Celsius | Celsius value [degC] |
Modelica.SIunits.Conversions.from_degCConvert from degCelsius to Kelvin
Extends from Modelica.SIunits.Icons.Conversion (Base icon for conversion functions).
| Name | Description |
|---|---|
| Celsius | Celsius value [degC] |
| Name | Description |
|---|---|
| Kelvin | Kelvin value [K] |
Modelica.SIunits.Conversions.to_degFConvert from Kelvin to degFahrenheit
Extends from Modelica.SIunits.Icons.Conversion (Base icon for conversion functions).
| Name | Description |
|---|---|
| Kelvin | Kelvin value [K] |
| Name | Description |
|---|---|
| Fahrenheit | Fahrenheit value [degF] |
Modelica.SIunits.Conversions.from_degFConvert from degFahrenheit to Kelvin
Extends from Modelica.SIunits.Icons.Conversion (Base icon for conversion functions).
| Name | Description |
|---|---|
| Fahrenheit | Fahrenheit value [degF] |
| Name | Description |
|---|---|
| Kelvin | Kelvin value [K] |
Modelica.SIunits.Conversions.to_degRkConvert from Kelvin to degRankine
Extends from Modelica.SIunits.Icons.Conversion (Base icon for conversion functions).
| Name | Description |
|---|---|
| Kelvin | Kelvin value [K] |
| Name | Description |
|---|---|
| Rankine | Rankine value [degRk] |
Modelica.SIunits.Conversions.from_degRkConvert from degRankine to Kelvin
Extends from Modelica.SIunits.Icons.Conversion (Base icon for conversion functions).
| Name | Description |
|---|---|
| Rankine | Rankine value [degRk] |
| Name | Description |
|---|---|
| Kelvin | Kelvin value [K] |
Modelica.SIunits.Conversions.to_degConvert from radian to degree
Extends from Modelica.SIunits.Icons.Conversion (Base icon for conversion functions).
| Name | Description |
|---|---|
| radian | radian value [rad] |
| Name | Description |
|---|---|
| degree | degree value [deg] |
Modelica.SIunits.Conversions.from_degConvert from degree to radian
Extends from Modelica.SIunits.Icons.Conversion (Base icon for conversion functions).
| Name | Description |
|---|---|
| degree | degree value [deg] |
| Name | Description |
|---|---|
| radian | radian value [rad] |
Modelica.SIunits.Conversions.to_rpmConvert from radian per second to revolutions per minute
Extends from Modelica.SIunits.Icons.Conversion (Base icon for conversion functions).
| Name | Description |
|---|---|
| rs | radian per second value [rad/s] |
| Name | Description |
|---|---|
| rpm | revolutions per minute value [rev/min] |
Modelica.SIunits.Conversions.from_rpmConvert from revolutions per minute to radian per second
Extends from Modelica.SIunits.Icons.Conversion (Base icon for conversion functions).
| Name | Description |
|---|---|
| rpm | revolutions per minute value [rev/min] |
| Name | Description |
|---|---|
| rs | radian per second value [rad/s] |
Modelica.SIunits.Conversions.to_kmhConvert from metre per second to kilometre per hour
Extends from Modelica.SIunits.Icons.Conversion (Base icon for conversion functions).
| Name | Description |
|---|---|
| ms | metre per second value [m/s] |
| Name | Description |
|---|---|
| kmh | kilometre per hour value [km/h] |
Modelica.SIunits.Conversions.from_kmhConvert from kilometre per hour to metre per second
Extends from Modelica.SIunits.Icons.Conversion (Base icon for conversion functions).
| Name | Description |
|---|---|
| kmh | kilometre per hour value [km/h] |
| Name | Description |
|---|---|
| ms | metre per second value [m/s] |
Modelica.SIunits.Conversions.to_dayConvert from second to day
Extends from Modelica.SIunits.Icons.Conversion (Base icon for conversion functions).
| Name | Description |
|---|---|
| s | second value [s] |
| Name | Description |
|---|---|
| day | day value [d] |
Modelica.SIunits.Conversions.from_dayConvert from day to second
Extends from Modelica.SIunits.Icons.Conversion (Base icon for conversion functions).
| Name | Description |
|---|---|
| day | day value [d] |
| Name | Description |
|---|---|
| s | second value [s] |
Modelica.SIunits.Conversions.to_hourConvert from second to hour
Extends from Modelica.SIunits.Icons.Conversion (Base icon for conversion functions).
| Name | Description |
|---|---|
| s | second value [s] |
| Name | Description |
|---|---|
| hour | hour value [h] |
Modelica.SIunits.Conversions.from_hourConvert from hour to second
Extends from Modelica.SIunits.Icons.Conversion (Base icon for conversion functions).
| Name | Description |
|---|---|
| hour | hour value [h] |
| Name | Description |
|---|---|
| s | second value [s] |
Modelica.SIunits.Conversions.to_minuteConvert from second to minute
Extends from Modelica.SIunits.Icons.Conversion (Base icon for conversion functions).
| Name | Description |
|---|---|
| s | second value [s] |
| Name | Description |
|---|---|
| minute | minute value [min] |
Modelica.SIunits.Conversions.from_minuteConvert from minute to second
Extends from Modelica.SIunits.Icons.Conversion (Base icon for conversion functions).
| Name | Description |
|---|---|
| minute | minute value [min] |
| Name | Description |
|---|---|
| s | second value [s] |
Modelica.SIunits.Conversions.to_litreConvert from cubic metre to litre
Extends from Modelica.SIunits.Icons.Conversion (Base icon for conversion functions).
| Name | Description |
|---|---|
| m3 | cubic metre value [m3] |
| Name | Description |
|---|---|
| litre | litre value [l] |
Modelica.SIunits.Conversions.from_litreConvert from litre to cubic metre
Extends from Modelica.SIunits.Icons.Conversion (Base icon for conversion functions).
| Name | Description |
|---|---|
| litre | litre value [l] |
| Name | Description |
|---|---|
| m3 | cubic metre value [m3] |
Modelica.SIunits.Conversions.from_AhConvert from Ampere hours to Coulomb
Extends from Modelica.SIunits.Icons.Conversion (Base icon for conversion functions).
| Name | Description |
|---|---|
| AmpereHour | Ampere hours [A.h] |
| Name | Description |
|---|---|
| Coulomb | Coulomb [C] |
Modelica.SIunits.Conversions.to_AhConvert from Coulomb to Ampere hours
Extends from Modelica.SIunits.Icons.Conversion (Base icon for conversion functions).
| Name | Description |
|---|---|
| Coulomb | Coulomb [C] |
| Name | Description |
|---|---|
| AmpereHour | Ampere hours [A.h] |
Modelica.SIunits.Conversions.from_WhConvert from Watt hour to Joule
Extends from Modelica.SIunits.Icons.Conversion (Base icon for conversion functions).
| Name | Description |
|---|---|
| WattHour | Watt hour [W.h] |
| Name | Description |
|---|---|
| Joule | Joule [J] |
Modelica.SIunits.Conversions.to_WhConvert from Joule to Watt hour
Extends from Modelica.SIunits.Icons.Conversion (Base icon for conversion functions).
| Name | Description |
|---|---|
| Joule | Joule [J] |
| Name | Description |
|---|---|
| WattHour | Watt hour [W.h] |
Modelica.SIunits.Conversions.to_kWhConvert from Joule to kilo Watt hour
Extends from Modelica.SIunits.Icons.Conversion (Base icon for conversion functions).
| Name | Description |
|---|---|
| J | Joule value [J] |
| Name | Description |
|---|---|
| kWh | kWh value [kW.h] |
Modelica.SIunits.Conversions.from_kWhConvert from kilo Watt hour to Joule
Extends from Modelica.SIunits.Icons.Conversion (Base icon for conversion functions).
| Name | Description |
|---|---|
| kWh | kWh value [kW.h] |
| Name | Description |
|---|---|
| J | Joule value [J] |
Modelica.SIunits.Conversions.to_barConvert from Pascal to bar
Extends from Modelica.SIunits.Icons.Conversion (Base icon for conversion functions).
| Name | Description |
|---|---|
| Pa | Pascal value [Pa] |
| Name | Description |
|---|---|
| bar | bar value [bar] |
Modelica.SIunits.Conversions.from_barConvert from bar to Pascal
Extends from Modelica.SIunits.Icons.Conversion (Base icon for conversion functions).
| Name | Description |
|---|---|
| bar | bar value [bar] |
| Name | Description |
|---|---|
| Pa | Pascal value [Pa] |
Modelica.SIunits.Conversions.to_gpsConvert from kilogram per second to gram per second
Extends from Modelica.SIunits.Icons.Conversion (Base icon for conversion functions).
| Name | Description |
|---|---|
| kgps | kg/s value [kg/s] |
| Name | Description |
|---|---|
| gps | g/s value [g/s] |
Modelica.SIunits.Conversions.from_gpsConvert from gram per second to kilogram per second
Extends from Modelica.SIunits.Icons.Conversion (Base icon for conversion functions).
| Name | Description |
|---|---|
| gps | g/s value [g/s] |
| Name | Description |
|---|---|
| kgps | kg/s value [kg/s] |
Modelica.SIunits.Conversions.from_HzConvert from Hz to rad/s
Extends from Modelica.SIunits.Icons.Conversion (Base icon for conversion functions).
| Name | Description |
|---|---|
| f | frequency [Hz] |
| Name | Description |
|---|---|
| w | angular velocity [rad/s] |
Modelica.SIunits.Conversions.to_HzConvert from rad/s to Hz
Extends from Modelica.SIunits.Icons.Conversion (Base icon for conversion functions).
| Name | Description |
|---|---|
| w | angular velocity [rad/s] |
| Name | Description |
|---|---|
| f | frequency [Hz] |
Modelica.SIunits.Conversions.to_cm2Convert from square metre to square centimetre
Extends from Modelica.SIunits.Icons.Conversion (Base icon for conversion functions).
| Name | Description |
|---|---|
| m2 | square metre value [m2] |
| Name | Description |
|---|---|
| cm2 | square centimetre value [cm2] |
Modelica.SIunits.Conversions.from_cm2Convert from square centimetre to square metre
Extends from Modelica.SIunits.Icons.Conversion (Base icon for conversion functions).
| Name | Description |
|---|---|
| cm2 | square centimetre value [cm2] |
| Name | Description |
|---|---|
| m2 | square metre value [m2] |
This icon will be removed in future Modelica versions.
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 Tue Apr 05 09:37:10 2016.