modelPartialFlowSensor

Partial component to model sensors that measure flow properties

Extends from Modelica.Fluid.Interfaces.PartialTwoPort (Partial component with two ports).

Information

Partial component to model a sensor that measures any intensive properties of a flow, e.g., to get temperature or density in the flow between fluid connectors.
The model includes zero-volume balance equations. Sensor models inheriting from this partial class should add a medium instance to calculate the measured property.

Parameters

TypeNameDefaultDescription
Assumptions
BooleanallowFlowReversal (from PartialTwoPort)system.allowFlowReversal= true to allow flow reversal, false restricts to design direction (port_a -> port_b)
Advanced
Medium.MassFlowRatem_flow_nominalsystem.m_flow_nominalNominal value of m_flow = port_a.m_flow
Medium.MassFlowRatem_flow_smallif system.use_eps_Re then system.eps_m_flow*m_flow_nominal else system.m_flow_smallRegularization for bi-directional flow in the region |m_flow| < m_flow_small (m_flow_small > 0 required)

Connectors

TypeNameDefaultDescription
Modelica.Fluid.Interfaces.FluidPort_aport_a (from PartialTwoPort)Fluid connector a (positive design flow direction is from port_a to port_b)
Modelica.Fluid.Interfaces.FluidPort_bport_b (from PartialTwoPort)Fluid connector b (positive design flow direction is from port_a to port_b)

Components

TypeNameDefaultDescription
Modelica.Fluid.Systemsystem (from PartialTwoPort)System wide properties