modelPIDDualMode

Heating and cooling regulation with constant or prescribed setpoints
Diagram of PIDDualMode

Information

Hypothesis and equations

Simple model of a heating and cooling system with fixed or prescribed temperature setpoints.

Bibliography

none

Instructions for use

The temperature setpoints for heating and cooling can be defined either :

  • as fixed parameters if use_T_input=false (by default) : respectively T_heat_sp and T_cool_sp
  • as RealInput if use_T_input=true : the connectors T_heat_input and T_cool_input shall be connected to blocks that generate the signal for respectively heating and cooling temperature setpoint

These temperature setpoints are stated in °C.

Known limits / Use precautions

Of course, this model should not be used if T_heat_sp > T_cool_sp or T_heat_sp_input > T_cool_sp_input.

Safeguards should be added to prevent bug.

Validations

Validations through comparaison with PIDFixedDualMode and PIDPrescribedSingleMode and simulations within MERUBBI project - Mathias Bouquerel 01/2017

--------------------------------------------------------------
Licensed by EDF under a 3-clause BSD-license
Copyright © EDF 2009 - 2023
BuildSysPro version 3.6.0
Author : Mathias BOUQUEREL, EDF (2017)
--------------------------------------------------------------

Parameters

TypeNameDefaultDescription
Model configuration
Booleanuse_T_inputfalseTemperature setpoints entry
Booleanuse_power_integratorsfalseIntegrators on the heating and cooling power outputs
Heating and cooling system parameters
Modelica.Units.SI.Powerpower_nom_heat1000Nominal heating power of the system
Modelica.Units.SI.Powerpower_nom_cool1000Nominal cooling power of the system (defined as positive)
Modelica.Units.NonSI.Temperature_degCT_heat_sp20Heating setpoint temperature in °C
Modelica.Units.NonSI.Temperature_degCT_cool_sp25Cooling setpoint temperature in °C
PID parameters
Realk1e4Gain of controller
Modelica.Units.SI.TimeTi60Time constant of Integrator block
Modelica.Units.SI.TimeTd0Time constant of Derivative block

Connectors

TypeNameDefaultDescription
BuildSysPro.BaseClasses.HeatTransfer.Interfaces.HeatPort_aT_room
Modelica.Blocks.Interfaces.RealInputT_heat_sp_inputTemperature setpoint for heating (RealInput) °C
Modelica.Blocks.Interfaces.RealInputT_cool_sp_inputTemperature setpoint for cooling (RealInput) °C
Modelica.Blocks.Interfaces.RealOutputheating_power_WHeating Power [W]
Modelica.Blocks.Interfaces.RealOutputcooling_power_WCooling Power [W]
Modelica.Blocks.Interfaces.RealOutputheating_energy_kWhHeating Energy [kWh]
Modelica.Blocks.Interfaces.RealOutputcooling_energy_kWhCooling Energy [kWh]

Components

TypeNameDefaultDescription
BuildSysPro.BaseClasses.HeatTransfer.Sensors.TemperatureSensormeasT_room
Modelica.Blocks.Sources.ConstantT_heat_paramTemperature setpoint for heating (parameter) °C
Modelica.Blocks.Sources.ConstantT_cool_paramTemperature setpoint for cooling (parameter) °C
BuildSysPro.BaseClasses.HeatTransfer.Units.ToKelvintoKelvin_cool
BuildSysPro.BaseClasses.HeatTransfer.Units.ToKelvintoKelvin_heat
Modelica.Blocks.Continuous.LimPIDPID_heat
Modelica.Blocks.Continuous.LimPIDPID_cool
BuildSysPro.BaseClasses.HeatTransfer.Sources.PrescribedHeatFlowprescribedHeating
BuildSysPro.BaseClasses.HeatTransfer.Sources.PrescribedHeatFlowprescribedCooling
BuildSysPro.BaseClasses.HeatTransfer.Sources.PrescribedTemperatureprescribedTemperature
BuildSysPro.BaseClasses.HeatTransfer.Sensors.HeatFlowSensorheatFlux
Modelica.Blocks.Sources.ConstantZero
Modelica.Blocks.Math.MaxheatingFilter
Modelica.Blocks.Math.MincoolingFilter
Modelica.Blocks.Math.GainNegToPos
Modelica.Blocks.Continuous.IntegratorintegratorHeating
Modelica.Blocks.Continuous.IntegratorintegratorCooling

Revisions

Mathias Bouquerel 05/2017 :

  • The RealInput and parameters for temperature setpoints are renammed as T_heat_XX and T_cool_XX for which are easier to understand.
  • The boolean use_power_integrators can be used to add or not integrators on the heating and cooling power signals.