modelDetailedHouse7

Adding a controller

Extends from DetailedHouse6 (Extension of DetailedHouse5 that adds a heating system).

Information

This step adds a controller that disables the heat pump when the supply water temperature exceeds 45°C. The simple controller has a large impact on the heat pump's COP.

Required models

Connection instructions

The temperature sensor in the storage tank serves as an input to the hysteresis controller. The controller is configured such that it switches to a false signal below 45°C and to true above 50°C.

The output of the hysteresis controller is thus true when the tank temperature is high enough and false otherwise. This Boolean signal has to be converted in a real control signal that can be accepted by the heat pump model using the BooleanToReal block. The heat pump already has a control signal. Since blocks cannot be removed from an extension of a model, the heat pump model input type is set to enable_variable_speed=true. This configuration allows the model to accept any real signal while ignoring connections to the other control signal.

Reference result

The figure below shows the operative zone temperature recZon.TSensor, the heat pump condenser temperatureheaPum.con.T and the radiator heat flow rate rad.Q_flow in the north-oriented zone with (red) and without (blue) hysteresis control. We see that the supply temperature is indeed reduced significantly. This causes the zone temperature to be slightly lower, up to about 0.2°C. However, the COP increases to around 4-5 and the electrical energy use decreases from 28.1 kWh to 17.4 kWh.

Comparison with (red) and without (blue) control for zone temperature, supply water temperature
and radiator thermal power.

Parameters

TypeNameDefaultDescription
Modelica.Units.SI.Lengthl (from DetailedHouse5)8Zone length
Modelica.Units.SI.Lengthw (from DetailedHouse5)4Zone width
Modelica.Units.SI.Lengthh (from DetailedHouse5)2.8Zone height

Components

TypeNameDefaultDescription
IDEAS.BoundaryConditions.SimInfoManagersim (from DetailedHouse5)
IDEAS.Buildings.Components.RectangularZoneTemplaterecZon (from DetailedHouse5)Northern part of the zone
IDEAS.Buildings.Components.RectangularZoneTemplaterecZon1 (from DetailedHouse5)Southern part of the zone
IDEAS.Fluid.HeatPumps.ScrollWaterToWaterheaPum (from DetailedHouse6)Heat pump model, rescaled for low thermal powers
IDEAS.Fluid.HeatExchangers.Radiators.RadiatorEN442_2rad (from DetailedHouse6)Radiator for zone 1
IDEAS.Fluid.HeatExchangers.Radiators.RadiatorEN442_2rad1 (from DetailedHouse6)Radiator for zone 2
IDEAS.Fluid.Actuators.Valves.TwoWayTRVval (from DetailedHouse6)Thermostatic valve for first zone
IDEAS.Fluid.Movers.FlowControlled_dppumEmi (from DetailedHouse6)Circulation pump of the heat emission (radiator) side of the circuit
IDEAS.Fluid.Sources.Boundary_pTbou (from DetailedHouse6)Cold water source for heat pump
IDEAS.Fluid.Actuators.Valves.TwoWayTRVval1 (from DetailedHouse6)Thermostatic valve for second zone
IDEAS.Fluid.Movers.FlowControlled_dppumPri (from DetailedHouse6)Circulation pump at the primary (evaporator) side of the heat pump
Modelica.Blocks.Sources.IntegerConstantheaPumOn (from DetailedHouse6)Heat pump is on
Modelica.Blocks.Continuous.IntegratorEEl (from DetailedHouse6)Electrical energy meter with conversion to kWh
IDEAS.Fluid.Sensors.TemperatureTwoPortsenTemSup (from DetailedHouse6)Supply water temperature sensor
IDEAS.Fluid.Sources.Boundary_pTbou1 (from DetailedHouse6)Cold water source for heat pump
IDEAS.Fluid.Storage.Stratifiedtan (from DetailedHouse6)Buffer tank for avoiding excessive heat pump on/off switches
Modelica.Thermal.HeatTransfer.Sensors.TemperatureSensorsenTan (from DetailedHouse6)Temperature sensor of tank volume
IDEAS.Fluid.Movers.FlowControlled_dppumSec (from DetailedHouse6)Circulation pump at the secondary (condenser) side of the heat pump
Modelica.Blocks.Logical.HysteresishysHysteresis controller
Modelica.Blocks.Math.BooleanToRealbooToReaConversion to real control signal

Revisions

  • April 14, 2025, by Anna Dell'Isola and Lone Meertens:
    Update and restructure IDEAS tutorial models. See #1374 and #1389.
  • September 18, 2019 by Filip Jorissen:
    First implementation for the IDEAS crash course.