Input/output blocks to convert units
Extends from QCalc.Icons.Package (Icon for standard packages (from MSL 3.2.1)).
Name | Description |
---|---|
Num2Qty | Convert a number to a quantity using a lambda unit |
Qty2Num | Convert a quantity to a number using a lambda unit |
Convert a number to a quantity using a lambda unit
To convert a number to a quantity using a scalar unit, instead use Modelica.Blocks.Math.Gain with k set to the unit.
Type | Name | Default | Description |
---|---|---|---|
degC | u | redeclare QCalc.Units.Interf… | Lambda unit |
Type | Name | Description |
---|---|---|
input RealInput | n | Connector for the number |
output RealOutput | q | Connector for the quantity |
Convert a quantity to a number using a lambda unit
To convert a quantity to a number using a scalar unit, instead use Modelica.Blocks.Math.Gain with k set to the reciprocal of the unit.
Type | Name | Default | Description |
---|---|---|---|
degC | u | redeclare QCalc.Units.Interf… | Lambda unit |
Type | Name | Description |
---|---|---|
input RealInput | q | Connector for the quantity |
output RealOutput | n | Connector for the number |