.FCSys.Blocks.UnitConversions

Information

This package contains blocks to convert quantities from the unit system in FCSys (see FCSys.Units) to quantities expressed in units or vice versa. The UnitConversion block has a parameter that configures it to convert to or from any of the supported units. All other blocks convert to or from a predefined unit.

Blocks are only included for units that involve offsets or other functions besides simple scaling. For conversions that require just a scaling factor, it is best to use the Modelica.Blocks.Math.Gain block with the appropriate factors from Units package (U). For example, to convert from potential in volts use:
Modelica.Blocks.Math.Gain from_V(k=U.V);
To convert to current in amperes use:
Modelica.Blocks.Math.Gain to_A(k=1/U.A);

Contents

NameDescription
 From_degCConvert from temperature in degree Celsius to thermodynamic temperature
 To_degCConvert from thermodynamic temperature to temperature in degree Celsius
 From_kPagConvert from gauge pressure in kilopascals to absolute pressure
 To_kPagConvert absolute pressure to gauge pressure in kilopascals
 UnitConversionGeneric block to convert to or from quantities expressed in units

Generated at 2024-11-20T19:25:51Z by OpenModelicaOpenModelica 1.24.2 using GenerateDoc.mos