modelSimpleHouse5

Heating controller model

Extends from SimpleHouse4.

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.

Components

TypeNameDefaultDescription
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.