Modelica.Blocks.Math.UnitConversions

Conversion blocks to convert between SI and non-SI unit signals

Information


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).

Package Content

NameDescription
Modelica.Blocks.Math.UnitConversions.To_degC To_degC Convert from Kelvin to degCelsius
Modelica.Blocks.Math.UnitConversions.From_degC From_degC Convert from degCelsius to Kelvin
Modelica.Blocks.Math.UnitConversions.To_degF To_degF Convert from Kelvin to degFahrenheit
Modelica.Blocks.Math.UnitConversions.From_degF From_degF Convert from degFahrenheit to Kelvin
Modelica.Blocks.Math.UnitConversions.To_degRk To_degRk Convert from Kelvin to degRankine
Modelica.Blocks.Math.UnitConversions.From_degRk From_degRk Convert from degRankine to Kelvin
Modelica.Blocks.Math.UnitConversions.To_deg To_deg Convert from radian to degree
Modelica.Blocks.Math.UnitConversions.From_deg From_deg Convert from degree to radian
Modelica.Blocks.Math.UnitConversions.To_rpm To_rpm Convert from radian per second to revolutions per minute
Modelica.Blocks.Math.UnitConversions.From_rpm From_rpm Convert from revolutions per minute to radian per second
Modelica.Blocks.Math.UnitConversions.To_kmh To_kmh Convert from metre per second to kilometre per hour
Modelica.Blocks.Math.UnitConversions.From_kmh From_kmh Convert from kilometre per hour to metre per second
Modelica.Blocks.Math.UnitConversions.To_day To_day Convert from second to day
Modelica.Blocks.Math.UnitConversions.From_day From_day Convert from day to second
Modelica.Blocks.Math.UnitConversions.To_hour To_hour Convert from second to hour
Modelica.Blocks.Math.UnitConversions.From_hour From_hour Convert from hour to second
Modelica.Blocks.Math.UnitConversions.To_minute To_minute Convert from second to minute
Modelica.Blocks.Math.UnitConversions.From_minute From_minute Convert from minute to second
Modelica.Blocks.Math.UnitConversions.To_litre To_litre Convert from cubic metre to litre
Modelica.Blocks.Math.UnitConversions.From_litre From_litre Convert from litre to cubic metre
Modelica.Blocks.Math.UnitConversions.To_kWh To_kWh Convert from Joule to kilo Watt hour
Modelica.Blocks.Math.UnitConversions.From_kWh From_kWh Convert from kilo Watt hour to Joule
Modelica.Blocks.Math.UnitConversions.To_bar To_bar Convert from Pascal to bar
Modelica.Blocks.Math.UnitConversions.From_bar From_bar Convert from bar to Pascal
Modelica.Blocks.Math.UnitConversions.To_gps To_gps Convert from kilogram per second to gram per second
Modelica.Blocks.Math.UnitConversions.From_gps From_gps Convert from gram per second to kilogram per second


Modelica.Blocks.Math.UnitConversions.To_degC Modelica.Blocks.Math.UnitConversions.To_degC

Convert from Kelvin to degCelsius

Modelica.Blocks.Math.UnitConversions.To_degC

Information


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).

Modelica definition

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;

Modelica.Blocks.Math.UnitConversions.From_degC Modelica.Blocks.Math.UnitConversions.From_degC

Convert from degCelsius to Kelvin

Modelica.Blocks.Math.UnitConversions.From_degC

Information


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).

Modelica definition

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;

Modelica.Blocks.Math.UnitConversions.To_degF Modelica.Blocks.Math.UnitConversions.To_degF

Convert from Kelvin to degFahrenheit

Modelica.Blocks.Math.UnitConversions.To_degF

Information


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).

Modelica definition

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;

Modelica.Blocks.Math.UnitConversions.From_degF Modelica.Blocks.Math.UnitConversions.From_degF

Convert from degFahrenheit to Kelvin

Modelica.Blocks.Math.UnitConversions.From_degF

Information


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).

Modelica definition

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;

Modelica.Blocks.Math.UnitConversions.To_degRk Modelica.Blocks.Math.UnitConversions.To_degRk

Convert from Kelvin to degRankine

Modelica.Blocks.Math.UnitConversions.To_degRk

Information


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).

Modelica definition

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;

Modelica.Blocks.Math.UnitConversions.From_degRk Modelica.Blocks.Math.UnitConversions.From_degRk

Convert from degRankine to Kelvin

Modelica.Blocks.Math.UnitConversions.From_degRk

Information


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).

Modelica definition

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;

Modelica.Blocks.Math.UnitConversions.To_deg Modelica.Blocks.Math.UnitConversions.To_deg

Convert from radian to degree

Modelica.Blocks.Math.UnitConversions.To_deg

Information


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).

Modelica definition

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;

Modelica.Blocks.Math.UnitConversions.From_deg Modelica.Blocks.Math.UnitConversions.From_deg

Convert from degree to radian

Modelica.Blocks.Math.UnitConversions.From_deg

Information


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).

Modelica definition

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;

Modelica.Blocks.Math.UnitConversions.To_rpm Modelica.Blocks.Math.UnitConversions.To_rpm

Convert from radian per second to revolutions per minute

Modelica.Blocks.Math.UnitConversions.To_rpm

Information


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).

Modelica definition

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;

Modelica.Blocks.Math.UnitConversions.From_rpm Modelica.Blocks.Math.UnitConversions.From_rpm

Convert from revolutions per minute to radian per second

Modelica.Blocks.Math.UnitConversions.From_rpm

Information


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).

Modelica definition

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;

Modelica.Blocks.Math.UnitConversions.To_kmh Modelica.Blocks.Math.UnitConversions.To_kmh

Convert from metre per second to kilometre per hour

Modelica.Blocks.Math.UnitConversions.To_kmh

Information


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).

Modelica definition

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;

Modelica.Blocks.Math.UnitConversions.From_kmh Modelica.Blocks.Math.UnitConversions.From_kmh

Convert from kilometre per hour to metre per second

Modelica.Blocks.Math.UnitConversions.From_kmh

Information


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).

Modelica definition

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;

Modelica.Blocks.Math.UnitConversions.To_day Modelica.Blocks.Math.UnitConversions.To_day

Convert from second to day

Modelica.Blocks.Math.UnitConversions.To_day

Information


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).

Modelica definition

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;

Modelica.Blocks.Math.UnitConversions.From_day Modelica.Blocks.Math.UnitConversions.From_day

Convert from day to second

Modelica.Blocks.Math.UnitConversions.From_day

Information


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).

Modelica definition

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;

Modelica.Blocks.Math.UnitConversions.To_hour Modelica.Blocks.Math.UnitConversions.To_hour

Convert from second to hour

Modelica.Blocks.Math.UnitConversions.To_hour

Information


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).

Modelica definition

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;

Modelica.Blocks.Math.UnitConversions.From_hour Modelica.Blocks.Math.UnitConversions.From_hour

Convert from hour to second

Modelica.Blocks.Math.UnitConversions.From_hour

Information


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).

Modelica definition

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;

Modelica.Blocks.Math.UnitConversions.To_minute Modelica.Blocks.Math.UnitConversions.To_minute

Convert from second to minute

Modelica.Blocks.Math.UnitConversions.To_minute

Information


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).

Modelica definition

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;

Modelica.Blocks.Math.UnitConversions.From_minute Modelica.Blocks.Math.UnitConversions.From_minute

Convert from minute to second

Modelica.Blocks.Math.UnitConversions.From_minute

Information


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).

Modelica definition

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;

Modelica.Blocks.Math.UnitConversions.To_litre Modelica.Blocks.Math.UnitConversions.To_litre

Convert from cubic metre to litre

Modelica.Blocks.Math.UnitConversions.To_litre

Information


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).

Modelica definition

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;

Modelica.Blocks.Math.UnitConversions.From_litre Modelica.Blocks.Math.UnitConversions.From_litre

Convert from litre to cubic metre

Modelica.Blocks.Math.UnitConversions.From_litre

Information


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).

Modelica definition

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;

Modelica.Blocks.Math.UnitConversions.To_kWh Modelica.Blocks.Math.UnitConversions.To_kWh

Convert from Joule to kilo Watt hour

Modelica.Blocks.Math.UnitConversions.To_kWh

Information


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).

Modelica definition

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;

Modelica.Blocks.Math.UnitConversions.From_kWh Modelica.Blocks.Math.UnitConversions.From_kWh

Convert from kilo Watt hour to Joule

Modelica.Blocks.Math.UnitConversions.From_kWh

Information


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).

Modelica definition

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;

Modelica.Blocks.Math.UnitConversions.To_bar Modelica.Blocks.Math.UnitConversions.To_bar

Convert from Pascal to bar

Modelica.Blocks.Math.UnitConversions.To_bar

Information


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).

Modelica definition

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;

Modelica.Blocks.Math.UnitConversions.From_bar Modelica.Blocks.Math.UnitConversions.From_bar

Convert from bar to Pascal

Modelica.Blocks.Math.UnitConversions.From_bar

Information


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).

Modelica definition

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;

Modelica.Blocks.Math.UnitConversions.To_gps Modelica.Blocks.Math.UnitConversions.To_gps

Convert from kilogram per second to gram per second

Modelica.Blocks.Math.UnitConversions.To_gps

Information


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).

Modelica definition

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;

Modelica.Blocks.Math.UnitConversions.From_gps Modelica.Blocks.Math.UnitConversions.From_gps

Convert from gram per second to kilogram per second

Modelica.Blocks.Math.UnitConversions.From_gps

Information


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).

Modelica definition

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;

Automatically generated Fri Nov 12 16:27:39 2010.