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

TypeNameDefaultDescription
Modelica.Units.SI.MassFlowRatem_flow_nominal15*1.2/3600Mass flow rate into and out of the volume

Components

TypeNameDefaultDescription
MixingVolumes.MixingVolumevolMixing volume
Sources.TraceSubstancesFlowSourcesouCO2 mass flow source
Modelica.Blocks.Sources.ConstantstepCO2 mass flow rate
Buildings.Fluid.Sensors.TraceSubstancessenVolSensor at volume
Buildings.Fluid.Sensors.TraceSubstancessenSouSensor at source
Modelica.Blocks.Sources.Constantm_flowFresh air mass flow rate
Buildings.Fluid.Sources.MassFlowSource_TmSouFresh air supply
Buildings.Fluid.Sources.Boundary_pTmSinExhaust air
Buildings.Fluid.Sensors.Conversions.To_VolumeFractionmasFraSouConversion of mass ratio to volume ratio
Buildings.Fluid.Sensors.Conversions.To_VolumeFractionmasFraVolConversion of mass ratio to volume ratio
Buildings.Fluid.Sensors.TraceSubstancesTwoPortsenTraSubSensor at exhaust air
FixedResistances.PressureDropres
Buildings.Fluid.Sensors.TraceSubstancesTwoPortsenTraSubNoFlorRevSensor at exhaust air, configured to not allow flow reversal
Buildings.Fluid.Sensors.PPMsenPPMPPM sensor

Contents

NameDescription
MediumMedium 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.