modelCompositionSensor
Extends from TransiEnt.Components.Sensors.RealGas.Base.RealGas_SensorBase (Base class for gas sensors).
Information
1. Purpose of model
Composition sensor for VLEFluidTypes.
2. Level of detail, physical effects considered, and physical insight
(no remarks)
3. Limits of validity
Can only be used for VLEFluidTypes.
4. Interfaces
GasPortIn, GasPortOut and RealOutput for the nc fraction of the medium. Mass or mole fractions can be displayed.
5. Nomenclature
(no remarks)
6. Governing Equations
(no remarks)
7. Remarks for Usage
The flow direction can be defined to avoid events, e.g. when the flow direction is only from inlet to outlet.
8. Validation
Tested in check model "TransiEnt.Components.Sensors.RealGas.Check.TestRealGasSensors"
9. References
(no remarks)
10. Version History
Model created by Lisa Andresen (andresen@tuhh.de) in Jun 2015
Adapted by Carsten Bode (c.bode@tuhh.de) in Nov 2016
Parameters
| Type | Name | Default | Description |
|---|---|---|---|
| Fundamental Definitions | |||
| TILMedia.VLEFluidTypes.BaseVLEFluid | medium (from RealGas_SensorBase) | simCenter.gasModel1 | Medium to be used |
| Integer | compositionDefinedBy | 1 | Output gives mass or mole fraction |
| Integer | flowDefinition | 1 | Defines which flow direction is considered |
Connectors
| Type | Name | Default | Description |
|---|---|---|---|
| TransiEnt.Basics.Interfaces.Gas.RealGasPortIn | gasPortIn (from RealGas_SensorBase) | Inlet port | |
| TransiEnt.Basics.Interfaces.Gas.RealGasPortOut | gasPortOut (from RealGas_SensorBase) | Outlet port | |
| Modelica.Blocks.Interfaces.RealOutput[medium.nc] | fraction | Fraction (mass or mole) in port |
Components
| Type | Name | Default | Description |
|---|---|---|---|
| TransiEnt.SimCenter | simCenter (from RealGas_SensorBase) | ||
| Modelica.Units.SI.MolarMass | molarMass | fluid.M |