modelTwoPhaseSensorSelect
Selectable Sensor for two phase medium
Extends from ThermofluidStream.Utilities.DropOfCommonsPlus.
Information
This is an extra sensor for vaporQuantity, because the Medium must be constrained by PartialTwoPhaseMedium instead of TwoPhaseMedium.
This sensor can be connected to a fluid stream 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 | inlet | ||
| Modelica.Blocks.Interfaces.RealOutput | value_out | value | Sensor output connector |
| Real | value | Computed value of the selected quantity [variable] |
Contents
| Name | Description |
|---|---|
| Medium | Medium model |
| getQuantityprotected | Quantity compute function |