.IDEAS.Examples.Tutorial.DetailedHouse.DetailedHouse7

Adding a controller

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.

Revisions


Generated at 2026-04-14T18:18:34Z by OpenModelicaOpenModelica 1.26.3 using GenerateDoc.mos