modelMassFlowRate
Ideal sensor for mass flow rate
Extends from BaseClasses.PartialTwoPortSensor, BaseClasses.PartialRotationIcon_withValueIndicator.
Information
This component monitors 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 |
|---|---|---|---|
| Integer | precision (from PartialRotationIcon_withValueIndicator) | 0 | Number of decimals displayed |
| Assumptions | |||
| Boolean | allowFlowReversal (from PartialTwoPortSensor) | true | = true to allow flow reversal, false restricts to design direction (port_a -> port_b) |
| Visualization | |||
| Boolean | showName (from PartialTwoPortSensor) | true | = false to hide component name |
| Advanced | |||
| Medium.MassFlowRate | m_flow_small (from PartialTwoPortSensor) | 1e-4 | Regularization for zero flow:|m_flow| < m_flow_small |
Connectors
| Type | Name | Default | Description |
|---|---|---|---|
| TRANSFORM.Fluid.Interfaces.FluidPort_Flow | port_a (from PartialTwoPortSensor) | Fluid connector a (positive design flow direction is from port_a to port_b) | |
| TRANSFORM.Fluid.Interfaces.FluidPort_Flow | port_b (from PartialTwoPortSensor) | 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 |
Components
| Type | Name | Default | Description |
|---|---|---|---|
| Real | var (from PartialRotationIcon_withValueIndicator) | Variable to be converted | |
| Real | y (from PartialRotationIcon_withValueIndicator) | iconUnit(var) | Icon display |