modelSingleSensorX

Mass fractions sensor

Extends from Internal.PartialSensor (Partial undirected sensor).

Information

Sensor for measuring mass fraction X. Which row from X to display can be selected by the row parameter.

This sensor can be connected to a fluid stream without a junction.

Parameters

TypeNameDefaultDescription
StringinstanceName (from DropOfCommonsPlus)getInstanceName()Instance name
Integerrow1Row of mass fraction vector to display
Layout
BooleandisplayInstanceName (from DropOfCommonsPlus)dropOfCommons.displayInstanceNames= true, if instance name is displayed
BooleandisplayParameters (from DropOfCommonsPlus)dropOfCommons.displayParameters= true, if displaying parameters is enabled
Sensor display
Integerdigits (from PartialSensor)3Number of significant digits to be displayed
Advanced › Regularization
SI.MassFlowRatem_flow_reg (from PartialSensor)dropOfCommons.m_flow_regRegularization threshold of mass flow rate
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_0Medium.X_defaultStart value of mass fraction output

Connectors

TypeNameDefaultDescription
Interfaces.Rearrear (from PartialSensor)
Interfaces.Forefore (from PartialSensor)
Modelica.Blocks.Interfaces.RealOutput[Medium.nX]value_outvalueMeasured value [variable]

Components

TypeNameDefaultDescription
Medium.ThermodynamicStatestate (from PartialSensor)Medium.setState_phX(p_reg, h_reg, Xi_reg)
Real[Medium.nX]valueComputed value of the selected Quantity
Realdisplay_valuevalue[row]Row of the value vector to display

Contents

NameDescription
MediumMedium model
mfkprotected