modelPIDDualMode
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) : respectivelyT_heat_spandT_cool_sp - as RealInput if
use_T_input=true: the connectorsT_heat_inputandT_cool_inputshall 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
| Type | Name | Default | Description |
|---|---|---|---|
| Model configuration | |||
| Boolean | use_T_input | false | Temperature setpoints entry |
| Boolean | use_power_integrators | false | Integrators on the heating and cooling power outputs |
| Heating and cooling system parameters | |||
| Modelica.Units.SI.Power | power_nom_heat | 1000 | Nominal heating power of the system |
| Modelica.Units.SI.Power | power_nom_cool | 1000 | Nominal cooling power of the system (defined as positive) |
| Modelica.Units.NonSI.Temperature_degC | T_heat_sp | 20 | Heating setpoint temperature in °C |
| Modelica.Units.NonSI.Temperature_degC | T_cool_sp | 25 | Cooling setpoint temperature in °C |
| PID parameters | |||
| Real | k | 1e4 | Gain of controller |
| Modelica.Units.SI.Time | Ti | 60 | Time constant of Integrator block |
| Modelica.Units.SI.Time | Td | 0 | Time constant of Derivative block |
Connectors
| Type | Name | Default | Description |
|---|---|---|---|
| BuildSysPro.BaseClasses.HeatTransfer.Interfaces.HeatPort_a | T_room | ||
| Modelica.Blocks.Interfaces.RealInput | T_heat_sp_input | Temperature setpoint for heating (RealInput) °C | |
| Modelica.Blocks.Interfaces.RealInput | T_cool_sp_input | Temperature setpoint for cooling (RealInput) °C | |
| Modelica.Blocks.Interfaces.RealOutput | heating_power_W | Heating Power [W] | |
| Modelica.Blocks.Interfaces.RealOutput | cooling_power_W | Cooling Power [W] | |
| Modelica.Blocks.Interfaces.RealOutput | heating_energy_kWh | Heating Energy [kWh] | |
| Modelica.Blocks.Interfaces.RealOutput | cooling_energy_kWh | Cooling Energy [kWh] |
Components
Revisions
Mathias Bouquerel 05/2017 :
- The RealInput and parameters for temperature setpoints are renammed as
T_heat_XXandT_cool_XXfor which are easier to understand. - The boolean
use_power_integratorscan be used to add or not integrators on the heating and cooling power signals.