modelMassFractions
Ideal one port mass fraction sensor
Extends from TRANSFORM.Fluid.Sensors.BaseClasses.PartialAbsoluteSensor (Partial component to model a sensor that measures a potential variable), BaseClasses.PartialMultiSensor_1values.
Information
This component monitors the mass fraction contained in the fluid passing its port. The sensor is ideal, i.e., it does not influence the fluid.
Parameters
| Type | Name | Default | Description |
|---|---|---|---|
| Integer | precision (from PartialMultiSensor_1values) | 0 | Number of decimals displayed |
| String | substanceName | "water" | Name of mass fraction |
| Assumptions | |||
| Boolean | allowFlowReversal (from PartialAbsoluteSensor) | true | = true to allow flow reversal, false restricts to design direction (port_a -> port_b) |
| Visualization | |||
| Boolean | showName (from PartialAbsoluteSensor) | true | = false to hide component name |
Connectors
| Type | Name | Default | Description |
|---|---|---|---|
| TRANSFORM.Fluid.Interfaces.FluidPort_Flow | port (from PartialAbsoluteSensor) | Fluid connector | |
| Modelica.Blocks.Interfaces.RealOutput | Xi | Mass fraction in port medium |
Components
| Type | Name | Default | Description |
|---|---|---|---|
| Real | var (from PartialMultiSensor_1values) | Variable to be converted | |
| Real | y (from PartialMultiSensor_1values) | iconUnit(var) | Icon display |
Revisions
- 2011-12-14: Stefan Wischhusen: Initial Release.