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
| Type | Name | Default | Description |
|---|---|---|---|
| Buildings.Fluid.Sensors.Conversions.To_VolumeFraction | conMasVolFra | Conversion from mass fraction CO2 to volume fraction CO2 | |
| Modelica.Blocks.Sources.Constant | volFra | Set point for volume fraction of 700PPM CO2 | |
| Buildings.Controls.Continuous.LimPID | limPID | ||
| Buildings.Fluid.Sensors.TraceSubstances | senCO2 | CO2 sensor | |
| Buildings.Fluid.MixingVolumes.MixingVolume | vol | Volume of air | |
| Buildings.Fluid.Sources.TraceSubstancesFlowSource | souCO2 | CO2 source | |
| Modelica.Blocks.Math.Gain | CO2Per | CO2 emission per person | |
| Buildings.Fluid.Sources.MassFlowSource_T | sou | Source of fresh air with 300 PPM CO2 | |
| Modelica.Blocks.Math.Gain | gai | Gain for mass flow rate | |
| Modelica.Blocks.Sources.Constant | nPeo | Number of people | |
| Buildings.Fluid.Sensors.VolumeFlowRate | senVolFlo | ||
| Modelica.Blocks.Math.Gain | norSet | Normalization for set point (to scale control input) | |
| Modelica.Blocks.Math.Gain | norMea | Normalization for measured concentration (to scale control input) | |
| Modelica.Blocks.Math.Gain | conVolFlo | Conversion from m3/s to m3/h | |
| Buildings.Fluid.Sensors.TraceSubstancesTwoPort | senTraSubPeo | CO2 concentration in absorptance from people | |
| Buildings.Fluid.Sensors.TraceSubstancesTwoPort | senTraSubFre | CO2 concentration in fresh air supply | |
| Buildings.Fluid.FixedResistances.PressureDrop | res | Pressure drop to decouple the state of the volume from the state of the boundary condition | |
| Buildings.Fluid.Sources.Boundary_pT | sin | Sink for exhaust air |
Contents
| Name | Description |
|---|---|
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.