
modelTwoPhaseSensorSelect
Selectable sensor for two phase medium
Extends from Internal.PartialSensor (Partial undirected sensor).
Information
Undirected sensor for a vapor quality. It must be separate from SingleSensorSelect, because it needs a TwoPhaseMedium.
Parameters
| Type | Name | Default | Description |
| String | instanceName (from DropOfCommonsPlus) | getInstanceName() | Instance name |
| 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" | |
| Layout |
| Boolean | displayInstanceName (from DropOfCommonsPlus) | dropOfCommons.displayInstanceNames | = true, if instance name is displayed |
| Boolean | displayParameters (from DropOfCommonsPlus) | dropOfCommons.displayParameters | = true, if displaying parameters is enabled |
| Sensor display |
| Integer | digits (from PartialSensor) | 3 | Number of significant digits to be displayed |
| Advanced › Regularization |
| SI.MassFlowRate | m_flow_reg (from PartialSensor) | dropOfCommons.m_flow_reg | Regularization threshold of mass flow rate |
| 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 |
| Medium.ThermodynamicState | state (from PartialSensor) | Medium.setState_phX(p_reg, h_reg, Xi_reg) | |
| Real | value | | |
Contents
| Name | Description |
Medium2Phase | Medium model |
getQuantityprotected | Quantity compute function |