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

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.InletinletA
Interfaces.InletinletB
Modelica.Blocks.Interfaces.RealOutputvalue_outvalueSensor output connector
RealvalueComputed difference in the selected quantity
RealvalueA
RealvalueB

Contents

NameDescription
MediumAMedium model A
MediumBMedium model B
getQuantityAprotectedQuantity compute function
getQuantityBprotectedQuantity compute function