modelMassFlowRate
Ideal sensor for mass flow rate
Extends from Buildings.Fluid.Sensors.BaseClasses.PartialFlowSensor (Partial component to model sensors that measure flow properties), Modelica.Icons.RoundSensor (Icon representing a round measurement device).
Information
This model outputs the mass flow rate flowing from
port_a to port_b.
The sensor is ideal, i.e., it does not influence the fluid.
Parameters
| Type | Name | Default | Description |
|---|---|---|---|
| Assumptions | |||
| Boolean | allowFlowReversal (from PartialTwoPort) | true | = false to simplify equations, assuming, but not enforcing, no flow reversal |
| Nominal condition | |||
| Modelica.Units.SI.MassFlowRate | m_flow_nominal (from PartialFlowSensor) | Nominal mass flow rate, used for regularization near zero flow | |
| Advanced | |||
| Modelica.Units.SI.MassFlowRate | m_flow_small (from PartialFlowSensor) | 1E-4*m_flow_nominal | For bi-directional flow, temperature is regularized in the region |m_flow| < m_flow_small (m_flow_small > 0 required) |
Connectors
| Type | Name | Default | Description |
|---|---|---|---|
| Modelica.Fluid.Interfaces.FluidPort_a | port_a (from PartialTwoPort) | Fluid connector a (positive design flow direction is from port_a to port_b) | |
| Modelica.Fluid.Interfaces.FluidPort_b | port_b (from PartialTwoPort) | Fluid connector b (positive design flow direction is from port_a to port_b) | |
| Modelica.Blocks.Interfaces.RealOutput | m_flow | Mass flow rate from port_a to port_b |
Revisions
-
February 25, 2020, by Michael Wetter:
Changed icon to display its operating state.
This is for #1294. -
February 21, 2020, by Michael Wetter:
Changed icon to display its operating state.
This is for #1294. -
September 29, 2009, by Michael Wetter:
First implementation. Implementation is based onModelica.Fluid.