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

TypeNameDefaultDescription
Integerdigits3Number of significant digits to be displayed
QuantitiesquantityMeasured quantity
StringquantityStringif 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
BooleanoutputValuefalse= true, if sensor output is enabled
Booleanfilter_outputfalse= true, if sensor output is filtered (to break algebraic loops)
SI.TimeTC0.1Time constant of sensor output filter (PT1)
InitModeinitInitMode.steadyStateInitialization mode for sensor output
Realvalue_00Start value of sensor output

Components

TypeNameDefaultDescription
Interfaces.Inletinlet
Modelica.Blocks.Interfaces.RealOutputvalue_outvalueSensor output connector
RealvalueComputed value of the selected quantity [variable]

Contents

NameDescription
MediumMedium model
getQuantityprotectedQuantity compute function