modelSimpleHouse5

Heating controller model

Extends from SimpleHouse4 (Heating model).

Information

Since the zone becomes too warm, a controller is required that disables the heater when a setpoint is reached. We will implement a hysteresis controller with a setpoint of 295.15 +/- 1K (21-23°C). A temperature sensor will measure the zone air temperature.

Required models

Connection instructions

The heater modulation level should be set to 1 when the heater is on and to 0 otherwise. Furthermore, the pump should only circulate water when the heater is on.

Reference result

The figure below shows the air temperature after the controller is added.

Air temperature as function of time.

Parameters

TypeNameDefaultDescription
Modelica.Units.SI.AreaAWall (from SimpleHouse0)100Wall area
Modelica.Units.SI.LengthdWall (from SimpleHouse0)0.25Wall thickness
Modelica.Units.SI.ThermalConductivitykWall (from SimpleHouse0)0.04Wall thermal conductivity
Modelica.Units.SI.DensityrhoWall (from SimpleHouse0)2000Wall density
Modelica.Units.SI.SpecificHeatCapacitycpWall (from SimpleHouse0)1000Wall specific heat capacity
Modelica.Units.SI.AreaAWin (from SimpleHouse2)2Window area
Modelica.Units.SI.VolumeVZone (from SimpleHouse3)8*8*3Zone volume
Modelica.Units.SI.MassFlowRatemAir_flow_nominal (from SimpleHouse3)1Nominal mass flow rate for air loop
Modelica.Units.SI.CoefficientOfHeatTransferhWall (from SimpleHouse3)2Convective heat transfer coefficient at the wall
Booleanuse_constantHeater (from SimpleHouse4)trueTo enable/disable the connection between the constant source and heater and circulation pump
Modelica.Units.SI.HeatFlowRateQHea_flow_nominal (from SimpleHouse4)3000Nominal capacity of heating system
Modelica.Units.SI.MassFlowRatemWat_flow_nominal (from SimpleHouse4)0.1Nominal mass flow rate for water loop

Connectors

TypeNameDefaultDescription
AixLib.BoundaryConditions.WeatherData.BusweaBus (from SimpleHouse0)Weather data bus

Components

TypeNameDefaultDescription
AixLib.BoundaryConditions.WeatherData.ReaderTMY3weaDat (from SimpleHouse0)Weather data reader
Modelica.Thermal.HeatTransfer.Sources.PrescribedTemperatureTOut (from SimpleHouse0)Exterior temperature boundary condition
Modelica.Thermal.HeatTransfer.Components.HeatCapacitorwalCap (from SimpleHouse1)Thermal mass of wall
Modelica.Thermal.HeatTransfer.Components.ThermalResistorwalRes (from SimpleHouse1)Thermal resistor for wall: 25 cm of rockwool
Modelica.Blocks.Math.GaingaiWin (from SimpleHouse2)Gain for solar irradiance through the window
Modelica.Thermal.HeatTransfer.Sources.PrescribedHeatFlowwin (from SimpleHouse2)Very simple window model
Modelica.Thermal.HeatTransfer.Components.ThermalResistorconRes (from SimpleHouse3)Thermal resistance for convective heat transfer
AixLib.Fluid.MixingVolumes.MixingVolumezon (from SimpleHouse3)Very simple zone air model
AixLib.Fluid.HeatExchangers.Radiators.RadiatorEN442_2rad (from SimpleHouse4)Radiator
AixLib.Fluid.HeatExchangers.HeaterCooler_uheaWat (from SimpleHouse4)Heater for water circuit
Fluid.Movers.Preconfigured.FlowControlled_m_flowpum (from SimpleHouse4)Pump
AixLib.Fluid.Sources.Boundary_pTbouWat (from SimpleHouse4)Pressure bound for water circuit
Modelica.Blocks.Sources.ConstantconHea (from SimpleHouse4)Gain for heater
Modelica.Blocks.Sources.ConstantconPum (from SimpleHouse4)Gain for pump
Modelica.Blocks.Math.BooleanToRealbooRea1Boolean to integer
Modelica.Blocks.Math.BooleanToRealbooReaBoolean to real
Modelica.Blocks.Logical.HysteresishysRadHysteresis controller for radiator
Modelica.Blocks.Logical.Notnot1Negation for enabling heating when temperature is low
Modelica.Thermal.HeatTransfer.Sensors.TemperatureSensorsenTemZonAirZone air temperature sensor

Revisions

  • September 4, 2023, by Jelger Jansen:
    First implementation.