modelSimpleHouse

Illustrative example of a simple heating, ventilation and room model

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

Information

This model contains a simple model of a house with a heating system, ventilation, and weather boundary conditions. It serves as a demonstration case of how the Buildings library can be used.

A step-by-step tutorial on how to build up this model can be found in Buildings.Examples.Tutorial.SimpleHouse. There are however some minor differences between this model and the models in the tutorial:

  • Different numerical values are used for almost all model parameters.
  • The solar irradiation (in W/m2) is calculated as the global horizontal irradiation multiplied with a solar heat gain coefficient instead of the direct normal irradiation.
  • The ventilation system is equiped with a cooler that sets the temperature of the air flow entering the zone equal to a constant value of 20°C.
  • The damper in the ventilation system is operated by a proportional-controller instead of a hysteresis controller.

Parameters

TypeNameDefaultDescription
Modelica.Units.SI.AreaAWall100Wall area
Modelica.Units.SI.AreaAWin5Window area
RealgWin0.3Solar heat gain coefficient of window
Modelica.Units.SI.VolumeVZoneAWall*3Wall area
Modelica.Units.SI.HeatFlowRateQHea_flow_nominal700Nominal capacity of heating system
Modelica.Units.SI.MassFlowRatemWat_flow_nominalQHea_flow_nominal/10/4200Nominal mass flow rate for water loop
Modelica.Units.SI.MassFlowRatemAir_flow_nominalVZone*2*1.2/3600Nominal mass flow rate for air loop
Modelica.Units.SI.PressureDifferencedpAir_nominal200Pressure drop at nominal mass flow rate for air loop
BooleanallowFlowReversalfalse= false because flow will not reverse in these circuits

Connectors

TypeNameDefaultDescription
BoundaryConditions.WeatherData.BusweaBusWeather data bus

Components

TypeNameDefaultDescription
Modelica.Thermal.HeatTransfer.Components.HeatCapacitorwalCapThermal mass of walls
Fluid.MixingVolumes.MixingVolumezonVery based zone air model
Modelica.Thermal.HeatTransfer.Components.ThermalResistorconResThermal resistance for convective heat transfer with h=2
Fluid.HeatExchangers.Radiators.RadiatorEN442_2radRadiator
Fluid.Sources.Boundary_pTbouAirAir boundary with constant temperature
Fluid.Sources.Boundary_pTbouWatPressure bound for water circuit
BoundaryConditions.WeatherData.ReaderTMY3weaDatWeather data reader
Modelica.Thermal.HeatTransfer.Components.ThermalResistorwalResThermal resistor for wall: 25 cm of rockwool
Buildings.HeatTransfer.Sources.PrescribedTemperatureTOutExterior temperature boundary condition
Fluid.HeatExchangers.HeaterCooler_uheaWatHeater for water circuit
Fluid.Movers.FlowControlled_m_flowpumPump
Modelica.Thermal.HeatTransfer.Sensors.TemperatureSensorsenTemZonAirZone air temperature sensor
Fluid.Actuators.Dampers.ExponentialvavDamDamper
Fluid.Movers.FlowControlled_dpfanConstant head fan
Modelica.Thermal.HeatTransfer.Sources.PrescribedHeatFlowwinVery simple window model
Fluid.HeatExchangers.ConstantEffectivenesshexRecHeat exchanger for heat recuperation
Modelica.Blocks.Logical.HysteresishysRadHysteresis controller for radiator
Modelica.Blocks.Logical.Notnot1negation for enabling heating when temperatur is low
Modelica.Blocks.Math.BooleanToRealbooToReaBoolean to real
Modelica.Blocks.Sources.Constantcon_dpPressure head
Modelica.Blocks.Math.GaingaiWinGain for window solar transmittance and area as HGloHor is in W/m2
Modelica.Blocks.Math.BooleanToIntegerbooToIntBoolean to integer
Controls.Continuous.LimPIDconDamController for damper
Modelica.Blocks.Sources.ConstantTSetRooRoom temperature set point for air system
Fluid.HeatExchangers.SensibleCooler_TcooAirCooling for supply air
Modelica.Blocks.Sources.ConstantTSupAirCooCooling setpoint for supply air
Buildings.Fluid.Sensors.TemperatureTwoPortTFanInTemperature at fan inlet
Buildings.Fluid.Sensors.TemperatureTwoPortTFanOutTemperature at fan outlet

Contents

NameDescription
MediumAir
MediumWater

Revisions

  • August 5, 2024, by Hongxiang Fu:
    Added two-port temperature sensors to replace sta_*.T in reference results. This is for IBPSA #1913.
  • September 15, 2023, by Jelger Jansen:
    Move the example model to Buildings.Examples, update the information section, and revise lay-out.
    This is for IBPSA, #1791.
  • June 15, 2022, by Hongxiang Fu:
    Changed conDam.yMin from 0.1 to 0.25.
    This is for IBPSA, #1624.
  • May 8, 2017, by Michael Wetter:
    Updated heater model.
    This is for IBPSA, #763.
  • November 10, 2016, by Michael Wetter:
    Connected supply air temperature to outdoor air temperature, added cooling to supply air, changed capacity of heating system, switched heating pump off when heater is off, and added proportional controller for the air damper.
    This is for IBPSA, #584.
  • September 9, 2016, by Michael Wetter:
    Corrected error in window model, as the solar heat gain was not multiplied with the window area. Dymola 2017 reported this error due to mismatching units of W/m2 and W.
  • June 23, 2016, by Michael Wetter:
    Changed graphical annotation.
  • March 11, 2016, by Michael Wetter:
    Corrected wrong limits for hysAir so that uLow < uHigh. This is for IBPSA, #429.
  • January 22, 2016, by Michael Wetter:
    Corrected type declaration of pressure difference. This is for IBPSA, #404.
  • September 19, 2015, by Filip Jorissen:
    First implementation.