This package consists of blocks that convert an input signal with a specific unit to an output signal in another unit (e.g., conversion of an angle signal from "deg" to "rad"). Block "ConvertAllUnits" converts between a set of units that can be selected in a pull-down menu of the parameter menu. All other blocks convert exactly between two different units.
Extends from Modelica.Icons.Package (Icon for standard packages).
Name | Description |
---|---|
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 |
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 |
This block converts the input signal from Kelvin to degCelsius and returns the result as output signal.
Extends from Modelica.Blocks.Interfaces.PartialConversionBlock (Partial block defining the interface for conversion blocks).
block To_degC "Convert from Kelvin to degCelsius" extends Modelica.Blocks.Interfaces.PartialConversionBlock(u(unit="K"), y( unit="degC")); equation y = SI.Conversions.to_degC(u);end To_degC;
This block converts the input signal from degCelsius to Kelvin and returns the result as output signal.
Extends from Modelica.Blocks.Interfaces.PartialConversionBlock (Partial block defining the interface for conversion blocks).
block From_degC "Convert from degCelsius to Kelvin" extends Modelica.Blocks.Interfaces.PartialConversionBlock(u(unit="degC"), y(unit="K")); equation y = SI.Conversions.from_degC(u);end From_degC;
This block converts the input signal from Kelvin to degFahrenheit and returns the result as output signal.
Extends from Modelica.Blocks.Interfaces.PartialConversionBlock (Partial block defining the interface for conversion blocks).
block To_degF "Convert from Kelvin to degFahrenheit" extends Modelica.Blocks.Interfaces.PartialConversionBlock(u(unit="K"), y( unit="degF")); equation y = SI.Conversions.to_degF(u);end To_degF;
This block converts the input signal from degFahrenheit to Kelvin and returns the result as output signal.
Extends from Modelica.Blocks.Interfaces.PartialConversionBlock (Partial block defining the interface for conversion blocks).
block From_degF "Convert from degFahrenheit to Kelvin" extends Modelica.Blocks.Interfaces.PartialConversionBlock(u(unit="degF"), y(unit="K")); equation y = SI.Conversions.from_degF(u);end From_degF;
This block converts the input signal from Kelvin to degRankine and returns the result as output signal.
Extends from Modelica.Blocks.Interfaces.PartialConversionBlock (Partial block defining the interface for conversion blocks).
block To_degRk "Convert from Kelvin to degRankine" extends Modelica.Blocks.Interfaces.PartialConversionBlock(u(unit="K"), y( unit="degRk")); equation y = SI.Conversions.to_degRk(u);end To_degRk;
This block converts the input signal from degRankine to Kelvin and returns the result as output signal.
Extends from Modelica.Blocks.Interfaces.PartialConversionBlock (Partial block defining the interface for conversion blocks).
block From_degRk "Convert from degRankine to Kelvin" extends Modelica.Blocks.Interfaces.PartialConversionBlock(u(unit="degRk"), y(unit="K")); equation y = SI.Conversions.from_degRk(u);end From_degRk;
This block converts the input signal from radian to degree and returns the result as output signal.
Extends from Modelica.Blocks.Interfaces.PartialConversionBlock (Partial block defining the interface for conversion blocks).
block To_deg "Convert from radian to degree" extends Modelica.Blocks.Interfaces.PartialConversionBlock(u(unit="rad"), y(unit="deg")); equation y = SI.Conversions.to_deg(u);end To_deg;
This block converts the input signal from degree to radian and returns the result as output signal.
Extends from Modelica.Blocks.Interfaces.PartialConversionBlock (Partial block defining the interface for conversion blocks).
block From_deg "Convert from degree to radian" extends Modelica.Blocks.Interfaces.PartialConversionBlock(u(unit="deg"), y(unit="rad")); equation y = SI.Conversions.from_deg(u);end From_deg;
This block converts the input signal from radian per second to revolutions per minute and returns the result as output signal.
Extends from Modelica.Blocks.Interfaces.PartialConversionBlock (Partial block defining the interface for conversion blocks).
block To_rpm "Convert from radian per second to revolutions per minute" extends Modelica.Blocks.Interfaces.PartialConversionBlock(u(unit="rad/s"), y(unit="1/min")); equation y = SI.Conversions.to_rpm(u);end To_rpm;
This block converts the input signal from revolutions per minute to radian per second and returns the result as output signal.
Extends from Modelica.Blocks.Interfaces.PartialConversionBlock (Partial block defining the interface for conversion blocks).
block From_rpm "Convert from revolutions per minute to radian per second" extends Modelica.Blocks.Interfaces.PartialConversionBlock(u(unit= "1/min"), y(unit="rad/s")); equation y = SI.Conversions.from_rpm(u);end From_rpm;
This block converts the input signal from metre per second to kilometre per hour and returns the result as output signal.
Extends from Modelica.Blocks.Interfaces.PartialConversionBlock (Partial block defining the interface for conversion blocks).
block To_kmh "Convert from metre per second to kilometre per hour" extends Modelica.Blocks.Interfaces.PartialConversionBlock(u(unit="m/s"), y(unit="km/h")); equation y = SI.Conversions.to_kmh(u);end To_kmh;
This block converts the input signal from kilometre per hour to metre per second and returns the result as output signal.
Extends from Modelica.Blocks.Interfaces.PartialConversionBlock (Partial block defining the interface for conversion blocks).
block From_kmh "Convert from kilometre per hour to metre per second" extends Modelica.Blocks.Interfaces.PartialConversionBlock(u(unit="km/h"), y(unit="m/s")); equation y = SI.Conversions.from_kmh(u);end From_kmh;
This block converts the input signal from second to day and returns the result as output signal.
Extends from Modelica.Blocks.Interfaces.PartialConversionBlock (Partial block defining the interface for conversion blocks).
block To_day "Convert from second to day" extends Modelica.Blocks.Interfaces.PartialConversionBlock(u(unit="s"), y( unit="d")); equation y = SI.Conversions.to_day(u);end To_day;
This block converts the input signal from day to second and returns the result as output signal.
Extends from Modelica.Blocks.Interfaces.PartialConversionBlock (Partial block defining the interface for conversion blocks).
block From_day "Convert from day to second" extends Modelica.Blocks.Interfaces.PartialConversionBlock(u(unit="d"), y( unit="s")); equation y = SI.Conversions.from_day(u);end From_day;
This block converts the input signal from second to hour and returns the result as output signal.
Extends from Modelica.Blocks.Interfaces.PartialConversionBlock (Partial block defining the interface for conversion blocks).
block To_hour "Convert from second to hour" extends Modelica.Blocks.Interfaces.PartialConversionBlock(u(unit="s"), y( unit="h")); equation y = SI.Conversions.to_hour(u);end To_hour;
This block converts the input signal from hour to second and returns the result as output signal.
Extends from Modelica.Blocks.Interfaces.PartialConversionBlock (Partial block defining the interface for conversion blocks).
block From_hour "Convert from hour to second" extends Modelica.Blocks.Interfaces.PartialConversionBlock(u(unit="h"), y( unit="s")); equation y = SI.Conversions.from_hour(u);end From_hour;
This block converts the input signal from second to minute and returns the result as output signal.
Extends from Modelica.Blocks.Interfaces.PartialConversionBlock (Partial block defining the interface for conversion blocks).
block To_minute "Convert from second to minute" extends Modelica.Blocks.Interfaces.PartialConversionBlock(u(unit="s"), y( unit="min")); equation y = SI.Conversions.to_minute(u);end To_minute;
This block converts the input signal from minute to second and returns the result as output signal.
Extends from Modelica.Blocks.Interfaces.PartialConversionBlock (Partial block defining the interface for conversion blocks).
block From_minute "Convert from minute to second" extends Modelica.Blocks.Interfaces.PartialConversionBlock(u(unit="min"), y(unit="s")); equation y = SI.Conversions.from_minute(u);end From_minute;
This block converts the input signal from metre to litre and returns the result as output signal.
Extends from Modelica.Blocks.Interfaces.PartialConversionBlock (Partial block defining the interface for conversion blocks).
block To_litre "Convert from cubic metre to litre" extends Modelica.Blocks.Interfaces.PartialConversionBlock(u(unit="m3"), y( unit="l")); equation y = SI.Conversions.to_litre(u);end To_litre;
This block converts the input signal from litre to cubic metre and returns the result as output signal.
Extends from Modelica.Blocks.Interfaces.PartialConversionBlock (Partial block defining the interface for conversion blocks).
block From_litre "Convert from litre to cubic metre" extends Modelica.Blocks.Interfaces.PartialConversionBlock(u(unit="l"), y( unit="m3")); equation y = SI.Conversions.from_litre(u);end From_litre;
This block converts the input signal from Joule to kilo Watt hour and returns the result as output signal.
Extends from Modelica.Blocks.Interfaces.PartialConversionBlock (Partial block defining the interface for conversion blocks).
block To_kWh "Convert from Joule to kilo Watt hour" extends Modelica.Blocks.Interfaces.PartialConversionBlock(u(unit="J"), y( unit="kW.h")); equation y = SI.Conversions.to_kWh(u);end To_kWh;
This block converts the input signal from kilo Watt hour to Joule and returns the result as output signal.
Extends from Modelica.Blocks.Interfaces.PartialConversionBlock (Partial block defining the interface for conversion blocks).
block From_kWh "Convert from kilo Watt hour to Joule" extends Modelica.Blocks.Interfaces.PartialConversionBlock(u(unit="kW.h"), y(unit="J")); equation y = SI.Conversions.from_kWh(u);end From_kWh;
This block converts the input signal from Pascal to bar and returns the result as output signal.
Extends from Modelica.Blocks.Interfaces.PartialConversionBlock (Partial block defining the interface for conversion blocks).
block To_bar "Convert from Pascal to bar" extends Modelica.Blocks.Interfaces.PartialConversionBlock(u(unit="Pa"), y( unit="bar")); equation y = SI.Conversions.to_bar(u);end To_bar;
This block converts the input signal from bar to Pascal and returns the result as output signal.
Extends from Modelica.Blocks.Interfaces.PartialConversionBlock (Partial block defining the interface for conversion blocks).
block From_bar "Convert from bar to Pascal" extends Modelica.Blocks.Interfaces.PartialConversionBlock(u(unit="bar"), y(unit="Pa")); equation y = SI.Conversions.from_bar(u);end From_bar;
This block converts the input signal from kilogram per second to gram per seconds and returns the result as output signal.
Extends from Modelica.Blocks.Interfaces.PartialConversionBlock (Partial block defining the interface for conversion blocks).
block To_gps "Convert from kilogram per second to gram per second" extends Modelica.Blocks.Interfaces.PartialConversionBlock(u(unit="kg/s"), y(unit="g/s")); equation y = SI.Conversions.to_gps(u);end To_gps;
This block converts the input signal from gram per second to kilogram per second and returns the result as output signal.
Extends from Modelica.Blocks.Interfaces.PartialConversionBlock (Partial block defining the interface for conversion blocks).
block From_gps "Convert from gram per second to kilogram per second" extends Modelica.Blocks.Interfaces.PartialConversionBlock(u(unit="g/s"), y(unit="kg/s")); equation y = SI.Conversions.from_gps(u);end From_gps;