modelMassFractionsTwoPort
Ideal two port sensor for mass fraction
Extends from Modelica.Fluid.Sensors.BaseClasses.PartialFlowSensor (Partial component to model sensors that measure flow properties), Modelica.Icons.RoundSensor (Icon representing a round measurement device).
Information
This component monitors the mass fraction of the passing fluid. The sensor is ideal, i.e., it does not influence the fluid.
Parameters
| Type | Name | Default | Description |
|---|---|---|---|
| String | substanceName | "water" | Name of mass fraction |
| Assumptions | |||
| Boolean | allowFlowReversal (from PartialTwoPort) | system.allowFlowReversal | = true to allow flow reversal, false restricts to design direction (port_a -> port_b) |
| Advanced | |||
| Medium.MassFlowRate | m_flow_nominal (from PartialFlowSensor) | system.m_flow_nominal | Nominal value of m_flow = port_a.m_flow |
| Medium.MassFlowRate | m_flow_small (from PartialFlowSensor) | if system.use_eps_Re then system.eps_m_flow*m_flow_nominal else system.m_flow_small | Regularization for bi-directional flow 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 | Xi | Mass fraction in port medium |
Components
| Type | Name | Default | Description |
|---|---|---|---|
| Modelica.Fluid.System | system (from PartialTwoPort) | System wide properties |
Revisions
- 2011-12-14: Stefan Wischhusen: Initial Release.
- 2018-01-04: Stefan Wischhusen: Corrected failure in accessing the named substance.