modelAirHeating_Autosizing

Example model with an air-based heating system that conditions a thermal zone in EnergyPlus and where the system sizing uses the Spawn autosize feature

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

Information

Same example as Buildings.ThermalZones.EnergyPlus_24_2_0.Examples.SingleFamilyHouse.AirHeating, except that the max heating power of the heater is determined by the system design heating load returned from the autosizing feature in Spawn.

Parameters

TypeNameDefaultDescription
Modelica.Units.SI.VolumeVRoo453.138Room volume
Modelica.Units.SI.AreaAFlo185.834Floor area of the whole floor of the building
Modelica.Units.SI.MassFlowRatemOut_flow_nominal0.3*VRoo*1.2/3600Outdoor air mass flow rate, assuming constant infiltration air flow rate
Modelica.Units.SI.MassFlowRatemRec_flow_nominal8*VRoo*1.2/3600Nominal mass flow rate for recirculated air

Components

TypeNameDefaultDescription
BuildingbuildingBuilding model
Buildings.ThermalZones.EnergyPlus_24_2_0.ThermalZonezonThermal zone
Buildings.Fluid.Movers.FlowControlled_m_flowfanFan
Buildings.Controls.OBC.CDL.Reals.Sources.PulseTSetSetpoint for room air
Buildings.Controls.OBC.CDL.Reals.PIDconPIDController for heater
Buildings.Fluid.HeatExchangers.Heater_TheaIdeal heater
Buildings.Fluid.Sources.Boundary_pTpAtmBoundary condition
Buildings.Fluid.FixedResistances.PressureDropducDuct resistance (to decouple room and outside pressure)
Buildings.Fluid.Sources.MassFlowSource_WeatherDatafreshAirOutside air supply
Buildings.Controls.OBC.CDL.Reals.Hysteresissta1Hysteresis to switch on stage 1
Buildings.Controls.OBC.CDL.Conversions.BooleanToRealmSetFan1_flowMass flow rate for 1st stage
Buildings.Controls.OBC.CDL.Reals.Hysteresissta2Hysteresis to switch on stage 2
Buildings.Controls.OBC.CDL.Conversions.BooleanToRealmSetFan2_flowMass flow rate added for 2nd stage
Buildings.Controls.OBC.CDL.Reals.Addm_fan_setMass flow rate for fan
Buildings.Controls.OBC.CDL.Reals.AddTAirLvgSetSet point temperature for air leaving the heater
Buildings.Controls.OBC.CDL.Reals.AddParameterTSupMinMinimum supply air temperature
Modelica.Blocks.Sources.Constant[3]qIntGaiInternal heat gains, set to zero because these are modeled in EnergyPlus
Buildings.Controls.OBC.CDL.Reals.MultiplyByParametergaiGain factor
SystemSizingsizSysHeaBlock for sizing of the heating system

Contents

NameDescription
MediumMedium model

Revisions

  • November 4, 2025, by David Blum:
    First implementation.