modelDifferenceTwoPhaseSensorSensorSelect
Sensor for selectable quantatiy difference of two phase media
Extends from ThermofluidStream.Utilities.DropOfCommonsPlus.
Information
Sensor for measuring the difference of the vapor quality between two fluid streams.
This sensor can be connected totwo fluid streams without a junction.
Parameters
| Type | Name | Default | Description |
|---|---|---|---|
| Integer | digits | 3 | Number of significant digits to be displayed |
| Quantities | quantity | Measured quantity | |
| String | quantityString | if quantity == ThermofluidStream.Sensors.Internal.Types.TwoPhaseQuantities.x_kgpkg then "x in kg/kg" elseif quantity == ThermofluidStream.Sensors.Internal.Types.TwoPhaseQuantities.T_sat_K then "T_sat in K" elseif quantity == ThermofluidStream.Sensors.Internal.Types.TwoPhaseQuantities.T_sat_C then "T_sat in °C" elseif quantity == ThermofluidStream.Sensors.Internal.Types.TwoPhaseQuantities.p_sat_Pa then "p_sat in Pa" elseif quantity == ThermofluidStream.Sensors.Internal.Types.TwoPhaseQuantities.p_sat_bar then "p_sat in bar" elseif quantity == ThermofluidStream.Sensors.Internal.Types.TwoPhaseQuantities.T_oversat_K then "T - T_sat in K" elseif quantity == ThermofluidStream.Sensors.Internal.Types.TwoPhaseQuantities.p_oversat_Pa then "p - p_sat in Pa" elseif quantity == ThermofluidStream.Sensors.Internal.Types.TwoPhaseQuantities.p_oversat_bar then "p - p_sat in bar" else "error" | |
| Output | |||
| Boolean | outputValue | false | = true, if sensor output is enabled |
| Boolean | filter_output | false | = true, if sensor output is filtered (to break algebraic loops) |
| SI.Time | TC | 0.1 | Time constant of sensor output filter (PT1) |
| InitMode | init | InitMode.steadyState | Initialization mode for sensor output |
| Real | value_0 | 0 | Start value of sensor output |
Components
| Type | Name | Default | Description |
|---|---|---|---|
| Interfaces.Inlet | inletA | ||
| Interfaces.Inlet | inletB | ||
| Modelica.Blocks.Interfaces.RealOutput | value_out | value | Sensor output connector |
| Real | value | Computed difference in the selected quantity | |
| Real | valueA | ||
| Real | valueB |
Contents
| Name | Description |
|---|---|
| MediumA | Medium model A |
| MediumB | Medium model B |
| getQuantityAprotected | Quantity compute function |
| getQuantityBprotected | Quantity compute function |