modelPIDSingleOrDualMode

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

Information

Hypothesis and equations

Simple model based on PIDs for the calculation of heating and/or cooling energy needs, with fixed or prescribed temperature setpoints.

Bibliography

none

Instructions for use

The temperature setpoints can be defined either :

  • for heating if heating_mode=true
  • for cooling if cooling_mode=true
  • as fixed parameters if use_T_input=false (by default) : respectively T_heat_sp_degC and/or T_cool_sp_degC
  • as RealInput if use_T_input=true : the connectors T_heat_input_degC and/or T_cool_input_degC shall be connected to blocks that generate the signal for respectively heating and cooling temperature setpoint

These temperature setpoints are stated in degree Celsius.

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 the ANR MERUBBI project - Mathias Bouquerel 05/2019

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

Parameters

TypeNameDefaultDescription
Model configuration
Booleanheating_modetrueActivation of heating
Booleancooling_modetrueActivation of cooling
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_heat1e4Nominal heating power of the system
Modelica.Units.SI.Powerpower_nom_cool1e4Nominal cooling power of the system (defined as positive)
Modelica.Units.NonSI.Temperature_degCT_heat_sp_degC20Heating setpoint temperature [degC]
Modelica.Units.NonSI.Temperature_degCT_cool_sp_degC25Cooling setpoint temperature [degC]
PID parameters
Realk1e5Gain of controller
Modelica.Units.SI.TimeTi900Time 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_input_degCTemperature setpoint for heating (RealInput) [degC]
Modelica.Blocks.Interfaces.RealInputT_cool_sp_input_degCTemperature setpoint for cooling (RealInput) [degC]
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) [degC]
Modelica.Blocks.Sources.ConstantT_cool_paramTemperature setpoint for cooling (parameter) [degC]
BuildSysPro.BaseClasses.HeatTransfer.Units.ToKelvintoKelvin_heat
BuildSysPro.BaseClasses.HeatTransfer.Units.ToKelvintoKelvin_cool
Modelica.Blocks.Continuous.LimPIDPID_heat
Modelica.Blocks.Continuous.LimPIDPID_cool
BuildSysPro.BaseClasses.HeatTransfer.Sources.PrescribedHeatFlowprescribedHeating
BuildSysPro.BaseClasses.HeatTransfer.Sources.PrescribedHeatFlowprescribedCooling
Modelica.Blocks.Math.GainNegToPos
Modelica.Blocks.Continuous.IntegratorintegratorHeating
Modelica.Blocks.Continuous.IntegratorintegratorCooling

Revisions