modelSimpleRoomFourElementsTraceSubstance

Illustrates the use of a thermal zone considering a trace substance

Extends from Modelica.Icons.Example (Icon for runnable examples), Buildings.ThermalZones.ReducedOrder.Examples.SimpleRoomFourElements (Illustrates the use of a thermal zone with four heat conduction elements).

Information

This example shows the application of Buildings.ThermalZones.ReducedOrder.RC.FourElements considering a trace substance such as CO2 in combination with Buildings.ThermalZones.ReducedOrder.EquivalentAirTemperature.VDI6007WithWindow and Buildings.ThermalZones.ReducedOrder.SolarGain.CorrectionGDoublePane. Solar radiation on tilted surface is calculated using models of Buildings. The thermal zone is a simple room defined in Guideline VDI 6007 Part 1 (VDI, 2012). The trace substance calculation is based on the CO2 emissions of 2 persons. They stay in the thermal zone for 12 hours every 24 hours. The air exchange rate is 2 air changes per hour. All further models, parameters and inputs except sunblinds, separate handling of heat transfer through windows, no wall element for internal walls and solar radiation are similar to the ones defined for the guideline's test room. For solar radiation, the example relies on the standard weather file in Buildings.

The idea of the example is to show a typical application of all sub-models and to use the example in unit tests. The results are reasonable, but not related to any real use case or measurement data.

References

VDI. German Association of Engineers Guideline VDI 6007-1 March 2012. Calculation of transient thermal response of rooms and buildings - modelling of rooms.

Parameters

TypeNameDefaultDescription
RealairChaRat2/3600Air change rate

Connectors

TypeNameDefaultDescription
BoundaryConditions.WeatherData.BusweaBus (from SimpleRoomFourElements)Weather data bus

Components

TypeNameDefaultDescription
BoundaryConditions.WeatherData.ReaderTMY3weaDat (from SimpleRoomFourElements)Weather data reader
BoundaryConditions.SolarIrradiation.DiffusePerez[2]HDifTil (from SimpleRoomFourElements)Calculates diffuse solar radiation on titled surface for both directions
BoundaryConditions.SolarIrradiation.DirectTiltedSurface[2]HDirTil (from SimpleRoomFourElements)Calculates direct solar radiation on titled surface for both directions
SolarGain.CorrectionGDoublePanecorGDouPan (from SimpleRoomFourElements)Correction factor for solar transmission
RC.FourElementsthermalZoneFourElements (from SimpleRoomFourElements)Thermal zone
EquivalentAirTemperature.VDI6007WithWindoweqAirTemp (from SimpleRoomFourElements)Computes equivalent air temperature
Modelica.Blocks.Math.Add[2]solRad (from SimpleRoomFourElements)Sums up solar radiation of both directions
Buildings.HeatTransfer.Sources.PrescribedTemperaturepreTem (from SimpleRoomFourElements)Prescribed temperature for exterior walls outdoor surface temperature
Buildings.HeatTransfer.Sources.PrescribedTemperaturepreTem1 (from SimpleRoomFourElements)Prescribed temperature for windows outdoor surface temperature
Modelica.Thermal.HeatTransfer.Components.ConvectiontheConWin (from SimpleRoomFourElements)Outdoor convective heat transfer of windows
Modelica.Thermal.HeatTransfer.Components.ConvectiontheConWall (from SimpleRoomFourElements)Outdoor convective heat transfer of walls
Modelica.Thermal.HeatTransfer.Sources.PrescribedHeatFlowperRad (from SimpleRoomFourElements)Radiative heat flow of persons
Modelica.Thermal.HeatTransfer.Sources.PrescribedHeatFlowperCon (from SimpleRoomFourElements)Convective heat flow of persons
Modelica.Blocks.Sources.CombiTimeTableintGai (from SimpleRoomFourElements)Table with profiles for persons (radiative and convective) and machines (convective)
Modelica.Blocks.Sources.Constant[2]const (from SimpleRoomFourElements)Sets sunblind signal to zero (open)
Modelica.Thermal.HeatTransfer.Sources.PrescribedHeatFlowmacConv (from SimpleRoomFourElements)Convective heat flow of machines
Modelica.Blocks.Sources.ConstanthConWall (from SimpleRoomFourElements)Outdoor coefficient of heat transfer for walls
Modelica.Blocks.Sources.ConstanthConWin (from SimpleRoomFourElements)Outdoor coefficient of heat transfer for windows
Buildings.HeatTransfer.Sources.PrescribedTemperaturepreTemFloor (from SimpleRoomFourElements)Prescribed temperature for floor plate outdoor surface temperature
Modelica.Blocks.Sources.ConstantTSoil (from SimpleRoomFourElements)Outdoor surface temperature for floor plate
EquivalentAirTemperature.VDI6007eqAirTempVDI (from SimpleRoomFourElements)Computes equivalent air temperature for roof
Buildings.HeatTransfer.Sources.PrescribedTemperaturepreTemRoof (from SimpleRoomFourElements)Prescribed temperature for roof outdoor surface temperature
Modelica.Thermal.HeatTransfer.Components.ConvectiontheConRoof (from SimpleRoomFourElements)Outdoor convective heat transfer of roof
Modelica.Blocks.Sources.ConstanthConRoof (from SimpleRoomFourElements)Outdoor coefficient of heat transfer for roof
Modelica.Blocks.Sources.Constantconst1 (from SimpleRoomFourElements)Sets sunblind signal to zero (open)
Modelica.Blocks.Sources.PulsetraSubSource of trace substance (for example CO2)
Buildings.Fluid.Sources.MassFlowSource_TsouAirSource of air
Buildings.Fluid.Sources.Boundary_pTsinAirSink of air
Modelica.Blocks.Sources.RamptraSubAmbSource for CO2 concentration in fresh air

Contents

NameDescription
MediumMedium model

Revisions

  • September 23, 2025, by Michael Wetter:
    Added missing annotation.
    This is for Buildings, #4359.
  • September 6, 2021, by Ettore Zanetti:
    Changed lat from being a parameter to an input from weather bus.
    This is for IBPSA, #1477.
  • April 15, 2020, by Katharina Brinkmann:
    First implementation.