modelPIDSingleOrDualMode
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
| Type | Name | Default | Description |
|---|---|---|---|
| Model configuration | |||
| Boolean | heating_mode | true | Activation of heating |
| Boolean | cooling_mode | true | Activation of cooling |
| 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 | 1e4 | Nominal heating power of the system |
| Modelica.Units.SI.Power | power_nom_cool | 1e4 | Nominal cooling power of the system (defined as positive) |
| Modelica.Units.NonSI.Temperature_degC | T_heat_sp_degC | 20 | Heating setpoint temperature [degC] |
| Modelica.Units.NonSI.Temperature_degC | T_cool_sp_degC | 25 | Cooling setpoint temperature [degC] |
| PID parameters | |||
| Real | k | 1e5 | Gain of controller |
| Modelica.Units.SI.Time | Ti | 900 | 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_degC | Temperature setpoint for heating (RealInput) [degC] | |
| Modelica.Blocks.Interfaces.RealInput | T_cool_sp_input_degC | Temperature setpoint for cooling (RealInput) [degC] | |
| 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
| Type | Name | Default | Description |
|---|---|---|---|
| BuildSysPro.BaseClasses.HeatTransfer.Sensors.TemperatureSensor | measT_room | ||
| Modelica.Blocks.Sources.Constant | T_heat_param | Temperature setpoint for heating (parameter) [degC] | |
| Modelica.Blocks.Sources.Constant | T_cool_param | Temperature setpoint for cooling (parameter) [degC] | |
| BuildSysPro.BaseClasses.HeatTransfer.Units.ToKelvin | toKelvin_heat | ||
| BuildSysPro.BaseClasses.HeatTransfer.Units.ToKelvin | toKelvin_cool | ||
| Modelica.Blocks.Continuous.LimPID | PID_heat | ||
| Modelica.Blocks.Continuous.LimPID | PID_cool | ||
| BuildSysPro.BaseClasses.HeatTransfer.Sources.PrescribedHeatFlow | prescribedHeating | ||
| BuildSysPro.BaseClasses.HeatTransfer.Sources.PrescribedHeatFlow | prescribedCooling | ||
| Modelica.Blocks.Math.Gain | NegToPos | ||
| Modelica.Blocks.Continuous.Integrator | integratorHeating | ||
| Modelica.Blocks.Continuous.Integrator | integratorCooling |