modelTraceSubstances
Test model for the extra property sensor
Extends from Modelica.Icons.Example (Icon for runnable examples).
Information
This example tests the sensors that measure trace substances. A CO2 mass flow rate of 8.18E-8 kg/kg is added to the volume. The volume also has a fresh air mass flow rate and an exhaust air mass flow rate. The initial CO2 concentration of the volume is 0 kg/kg. Note that the fresh air supply has zero carbon dioxide concentration. Therefore, if it were outside air, then all concentrations are relative to the outside air concentration.
Parameters
| Type | Name | Default | Description |
|---|---|---|---|
| Modelica.Units.SI.MassFlowRate | m_flow_nominal | 15*1.2/3600 | Mass flow rate into and out of the volume |
Components
| Type | Name | Default | Description |
|---|---|---|---|
| MixingVolumes.MixingVolume | vol | Mixing volume | |
| Sources.TraceSubstancesFlowSource | sou | CO2 mass flow source | |
| Modelica.Blocks.Sources.Constant | step | CO2 mass flow rate | |
| Buildings.Fluid.Sensors.TraceSubstances | senVol | Sensor at volume | |
| Buildings.Fluid.Sensors.TraceSubstances | senSou | Sensor at source | |
| Modelica.Blocks.Sources.Constant | m_flow | Fresh air mass flow rate | |
| Buildings.Fluid.Sources.MassFlowSource_T | mSou | Fresh air supply | |
| Buildings.Fluid.Sources.Boundary_pT | mSin | Exhaust air | |
| Buildings.Fluid.Sensors.Conversions.To_VolumeFraction | masFraSou | Conversion of mass ratio to volume ratio | |
| Buildings.Fluid.Sensors.Conversions.To_VolumeFraction | masFraVol | Conversion of mass ratio to volume ratio | |
| Buildings.Fluid.Sensors.TraceSubstancesTwoPort | senTraSub | Sensor at exhaust air | |
| FixedResistances.PressureDrop | res | ||
| Buildings.Fluid.Sensors.TraceSubstancesTwoPort | senTraSubNoFlorRev | Sensor at exhaust air, configured to not allow flow reversal | |
| Buildings.Fluid.Sensors.PPM | senPPM | PPM sensor |
Contents
| Name | Description |
|---|---|
| Medium model |
Revisions
-
May 2, 2019, by Jianjun Hu:
Replaced fluid source. This is for #1072. -
May 22, 2015, by Michael Wetter:
Updated example to test the correction for issue 249. -
May 8, 2014, by Michael Wetter:
Added a pressure drop element, as otherwise the initialization problem is overspecified for incompressible media. -
November 27, 2013 by Michael Wetter:
Changed sink model from a prescribed flow source to a pressure boundary condition. This is required for the new air model, which is incompressible. Otherwise, there will be no pressure reference in the system. -
September 10, 2013 by Michael Wetter:
Changed initialization of volume to fixed initial values to avoid a translation warning in OpenModelica. -
August 30, 2013 by Michael Wetter:
Renamed example and added an instance of Buildings.Fluid.Sensors.TraceSubstancesTwoPort. -
September 29, 2009 by Michael Wetter:
First implementation.