modelTo_VolumeFraction

Example problem for conversion model

Extends from Modelica.Icons.Example (Icon for runnable examples).

Information

This example demonstrates the modeling of a room with one person and CO2 control. The room has a volume of 4*4*2.7 m3, and the CO2 inflow is from one person. A control system regulates the outside air to maintain a CO2 concentration of 1000 PPM in the room. The outside air has a CO2 concentration of 300 PPM. Note that for simplicity, we allow zero outside air flow rate if the CO2 concentration is below the setpoint, which does not comply with ASHRAE regulations.

Components

TypeNameDefaultDescription
Buildings.Fluid.Sensors.Conversions.To_VolumeFractionconMasVolFraConversion from mass fraction CO2 to volume fraction CO2
Modelica.Blocks.Sources.ConstantvolFraSet point for volume fraction of 700PPM CO2
Buildings.Controls.Continuous.LimPIDlimPID
Buildings.Fluid.Sensors.TraceSubstancessenCO2CO2 sensor
Buildings.Fluid.MixingVolumes.MixingVolumevolVolume of air
Buildings.Fluid.Sources.TraceSubstancesFlowSourcesouCO2CO2 source
Modelica.Blocks.Math.GainCO2PerCO2 emission per person
Buildings.Fluid.Sources.MassFlowSource_TsouSource of fresh air with 300 PPM CO2
Modelica.Blocks.Math.GaingaiGain for mass flow rate
Modelica.Blocks.Sources.ConstantnPeoNumber of people
Buildings.Fluid.Sensors.VolumeFlowRatesenVolFlo
Modelica.Blocks.Math.GainnorSetNormalization for set point (to scale control input)
Modelica.Blocks.Math.GainnorMeaNormalization for measured concentration (to scale control input)
Modelica.Blocks.Math.GainconVolFloConversion from m3/s to m3/h
Buildings.Fluid.Sensors.TraceSubstancesTwoPortsenTraSubPeoCO2 concentration in absorptance from people
Buildings.Fluid.Sensors.TraceSubstancesTwoPortsenTraSubFreCO2 concentration in fresh air supply
Buildings.Fluid.FixedResistances.PressureDropresPressure drop to decouple the state of the volume from the state of the boundary condition
Buildings.Fluid.Sources.Boundary_pTsinSink for exhaust air

Contents

NameDescription
Medium

Revisions

  • March 26, 2024, by Michael Wetter:
    Configured the sensor parameter to suppress the warning about being a one-port connection.
    This is for IBPSA, #1857.
  • May 2, 2019, by Jianjun Hu:
    Replaced fluid source. This is for #1072.
  • April 25, 2017 by Filip Jorissen:
    Increased model tolerance for #750.
  • March 27, 2013 by Michael Wetter:
    Added a flow resistance between the volume and the ambient to decouple the state of the volume from the boundary conditions. This is needed to allow a pedantic model check in Dymola 2014, as otherwise, the initial conditions of the volume could not be specified without introducing redundant equations.
  • February 13, 2010 by Michael Wetter:
    First implementation.