modelPIDPrescribedSingleMode

Calculation of heating or air conditioning needs (PID with temperature scenario)
Diagram of PIDPrescribedSingleMode

Information

Hypothesis and equations

This model assumes a PID control for intake of calories (heating) or frigories (cooling). The temperature setpoints are stored in a scenario text file.

Bibliography

none

Instructions for use

The text file or the setpoint temperatures table should contain in the first column the time in seconds, and in the second column the setpoint temperature in Kelvin.

An example of a setpoint temperature scenario is available : ConsigneChauffageRT2012_Kelvin.txt.

Two use cases :

  • Ideal operation: the nominal power must be largely oversized to calculate cooling or heating needs, otherwise there is no guarantee that the installed power is sufficient to reach temperature setpoints.
  • Real operation: the nominal power is the sizing power, which shows whether the dimensioning can meet the targeted setpoint temperatures.

Known limits / Use precautions

Warnings ! Setpoint temperatures in the text file, in the table or connected to the port T_sp depending on the cases, must be in Kelvin.

Validations

Validated model - Amy Lindsay 10/2013

--------------------------------------------------------------
Licensed by EDF under a 3-clause BSD-license
Copyright © EDF 2009 - 2023
BuildSysPro version 3.6.0
Author : Amy LINDSAY, EDF (2013)
--------------------------------------------------------------

Parameters

TypeNameDefaultDescription
RealPuissanceNom1000Power of heating or cooling system (always positive)
Integerchaud_froid00 - heating, 1 - cooling
Setpoint entry mode
BooleansaisieTableaufalse= false if the setpoint temperature is connected to a RealInput , = true if the setpoint temperature is defined in a table
Setpoint temperature scenario
BooleantableauSurFichierfalse= true, if the setpoint temperatures are indicated in a text file
Real[:,:]tableau[0, 292.15]Table to define here if it's not done in a text file (first column = time in seconds, second column = setpoint temperature in Kelvin) - by default set to 19°C
StringnomTableau"data"Name of the table specified in the text file
StringnomFichierModelica.Utilities.Files.loadResource("modelica://BuildSysPro/Resources/Donnees/Scenarios/ConsigneChauffageRT2012_Kelvin.txt")Location of the text file containing the setpoint temperatures table
Modelica.Blocks.Types.SmoothnesssmoothnessModelica.Blocks.Types.Smoothness.LinearSegmentsType of data interpolation in the table
Modelica.Blocks.Types.ExtrapolationextrapolationModelica.Blocks.Types.Extrapolation.HoldLastPointSetpoint temperature extrapolation outside the domain of definition of the table

Connectors

TypeNameDefaultDescription
BaseClasses.HeatTransfer.Interfaces.HeatPort_aT_room
Modelica.Blocks.Interfaces.RealOutputPthThermal power demand
Modelica.Blocks.Interfaces.RealOutputkWh_thThermal kWh cumulated
Modelica.Blocks.Interfaces.RealInputT_spSetpoint temperature [K]

Components

TypeNameDefaultDescription
Modelica.Blocks.Continuous.LimPIDPID
BaseClasses.HeatTransfer.Sources.PrescribedHeatFlowprescribedHeatFlow
BaseClasses.HeatTransfer.Sensors.TemperatureSensortemperatureSensor
Modelica.Blocks.Sources.CombiTimeTablecombiTimeTable1
Modelica.Blocks.Continuous.Integratorintegrator
Modelica.Blocks.Math.Gaingain

Revisions

Modification en 10/2013 par A.Lindsay : les consignes de température ne doivent plus être renseignées en degrés Celsius mais en degrés Kelvin !!! Ajout de la possibilité de calculer les besoins de froid et non pas que les besoins de chaud

04/2014 A. Lindsay : modification du gain avant intégration pour bien obtenir des kWh !