IEA EBC Annex 60 EBC logo

Annex60.Fluid.HeatExchangers.Examples

Collection of models that illustrate model use and test models

Information

This package contains examples for the use of models that can be found in Annex60.Fluid.HeatExchangers.

Extends from Modelica.Icons.ExamplesPackage (Icon for packages containing runnable examples).

Package Content

Name Description
Annex60.Fluid.HeatExchangers.Examples.AirHeater_T AirHeater_T Example model for the heater with prescribed outlet temperature and air as the medium
Annex60.Fluid.HeatExchangers.Examples.AirHeater_u AirHeater_u Example model for the heater with prescribed heat input and air as the medium
Annex60.Fluid.HeatExchangers.Examples.WaterHeater_T WaterHeater_T Example model for the heater with prescribed outlet temperature and water as the medium
Annex60.Fluid.HeatExchangers.Examples.WaterHeater_u WaterHeater_u Example model for the heater with prescribed heat input and water as the medium
Annex60.Fluid.HeatExchangers.Examples.BaseClasses BaseClasses Package with base classes for Annex60.Fluid.HeatExchangers.Examples

Annex60.Fluid.HeatExchangers.Examples.AirHeater_T Annex60.Fluid.HeatExchangers.Examples.AirHeater_T

Example model for the heater with prescribed outlet temperature and air as the medium

Annex60.Fluid.HeatExchangers.Examples.AirHeater_T

Information

This example illustrates how to use the heater model that takes as an input the leaving fluid temperature.

The model consist of an air volume with heat loss to the ambient. The set point of the air temperature is different between night and day. The heater tracks the set point temperature, except for the periods in which the air temperature is above the set point.

See Annex60.Fluid.HeatExchangers.Examples.AirHeater_u for a model that takes the heating power as an input.

Extends from Modelica.Icons.Example (Icon for runnable examples), Annex60.Fluid.HeatExchangers.Examples.BaseClasses.Heater (Base class for example model for the heater and cooler).

Parameters

TypeNameDefaultDescription
replaceable package MediumPartialMediumMedium model
VolumeV6*6*2.7Volume [m3]
MassFlowRatem_flow_nominalV*1.2*6/3600Nominal mass flow rate [kg/s]
HeatFlowRateQ_flow_nominal30*6*6Nominal heat loss of the room [W]

Connectors

TypeNameDescription
replaceable package MediumMedium model

Modelica definition

model AirHeater_T "Example model for the heater with prescribed outlet temperature and air as the medium" extends Modelica.Icons.Example; extends Annex60.Fluid.HeatExchangers.Examples.BaseClasses.Heater( redeclare package Medium = Annex60.Media.Air, m_flow_nominal=V*1.2*6/3600, Q_flow_nominal=30*6*6, mov(dp_nominal=1200, nominalValuesDefineDefaultPressureCurve=true)); Annex60.Fluid.HeatExchangers.HeaterCooler_T hea( redeclare package Medium = Medium, m_flow_nominal=m_flow_nominal, dp_nominal=1000, Q_flow_maxCool=0, energyDynamics=Modelica.Fluid.Types.Dynamics.FixedInitial, Q_flow_maxHeat=Q_flow_nominal) "Heater"; Controls.SetPoints.Table tab(table=[0,273.15 + 15; 1,273.15 + 30]); equation connect(hea.port_b, THeaOut.port_a); connect(conPI.y, tab.u); connect(tab.y, hea.TSet); connect(mov.port_b, hea.port_a); end AirHeater_T;

Annex60.Fluid.HeatExchangers.Examples.AirHeater_u Annex60.Fluid.HeatExchangers.Examples.AirHeater_u

Example model for the heater with prescribed heat input and air as the medium

Annex60.Fluid.HeatExchangers.Examples.AirHeater_u

Information

This example illustrates how to use the heater model that takes as an input the heat added to the medium.

The model consist of an air volume with heat loss to the ambient. The set point of the air temperature is different between night and day. The heater tracks the set point temperature, except for the periods in which the air temperature is above the set point.

See Annex60.Fluid.HeatExchangers.Examples.AirHeater_T for a model that takes the leaving air temperature as an input.

Extends from Modelica.Icons.Example (Icon for runnable examples), Annex60.Fluid.HeatExchangers.Examples.BaseClasses.Heater (Base class for example model for the heater and cooler).

Parameters

TypeNameDefaultDescription
replaceable package MediumPartialMediumMedium model
VolumeV6*6*2.7Volume [m3]
MassFlowRatem_flow_nominalV*1.2*6/3600Nominal mass flow rate [kg/s]
HeatFlowRateQ_flow_nominal30*6*6Nominal heat loss of the room [W]

Connectors

TypeNameDescription
replaceable package MediumMedium model

Modelica definition

model AirHeater_u "Example model for the heater with prescribed heat input and air as the medium" extends Modelica.Icons.Example; extends Annex60.Fluid.HeatExchangers.Examples.BaseClasses.Heater( redeclare package Medium = Annex60.Media.Air, m_flow_nominal=V*1.2*6/3600, Q_flow_nominal=30*6*6, mov(nominalValuesDefineDefaultPressureCurve=true, dp_nominal=1200)); HeaterCooler_u hea( redeclare package Medium = Medium, m_flow_nominal=m_flow_nominal, dp_nominal=1000, energyDynamics=Modelica.Fluid.Types.Dynamics.FixedInitial, Q_flow_nominal=Q_flow_nominal) "Heater"; equation connect(hea.port_b, THeaOut.port_a); connect(conPI.y, hea.u); connect(mov.port_b, hea.port_a); end AirHeater_u;

Annex60.Fluid.HeatExchangers.Examples.WaterHeater_T Annex60.Fluid.HeatExchangers.Examples.WaterHeater_T

Example model for the heater with prescribed outlet temperature and water as the medium

Annex60.Fluid.HeatExchangers.Examples.WaterHeater_T

Information

This example illustrates how to use the heater model that takes as an input the leaving fluid temperature.

The model consist of a water volume with heat loss to the ambient. The set point of the water temperature is different between night and day. The heater tracks the set point temperature, except for the periods in which the water temperature is above the set point.

See Annex60.Fluid.HeatExchangers.Examples.WaterHeater_u for a model that takes the heating power as an input.

Extends from Modelica.Icons.Example (Icon for runnable examples), Annex60.Fluid.HeatExchangers.Examples.BaseClasses.Heater (Base class for example model for the heater and cooler).

Parameters

TypeNameDefaultDescription
replaceable package MediumPartialMediumMedium model
VolumeV6*6*2.7Volume [m3]
MassFlowRatem_flow_nominalV*1000/3600Nominal mass flow rate [kg/s]
HeatFlowRateQ_flow_nominal100Nominal heat loss of the room [W]

Connectors

TypeNameDescription
replaceable package MediumMedium model

Modelica definition

model WaterHeater_T "Example model for the heater with prescribed outlet temperature and water as the medium" extends Modelica.Icons.Example; extends Annex60.Fluid.HeatExchangers.Examples.BaseClasses.Heater( redeclare package Medium = Annex60.Media.Water, m_flow_nominal=V*1000/3600, Q_flow_nominal=100, vol(V=V/1000), mov(nominalValuesDefineDefaultPressureCurve=true)); Annex60.Fluid.HeatExchangers.HeaterCooler_T hea( redeclare package Medium = Medium, m_flow_nominal=m_flow_nominal, dp_nominal=1000, Q_flow_maxCool=0, energyDynamics=Modelica.Fluid.Types.Dynamics.FixedInitial, Q_flow_maxHeat=Q_flow_nominal) "Heater"; Controls.SetPoints.Table tab(table=[0,273.15 + 10; 1,273.15 + 30]); equation connect(hea.port_b, THeaOut.port_a); connect(conPI.y, tab.u); connect(tab.y, hea.TSet); connect(mov.port_b, hea.port_a); end WaterHeater_T;

Annex60.Fluid.HeatExchangers.Examples.WaterHeater_u Annex60.Fluid.HeatExchangers.Examples.WaterHeater_u

Example model for the heater with prescribed heat input and water as the medium

Annex60.Fluid.HeatExchangers.Examples.WaterHeater_u

Information

This example illustrates how to use the heater model that takes as an input the heat added to the medium.

The model consist of a water volume with heat loss to the ambient. The set point of the water temperature is different between night and day. The heater tracks the set point temperature, except for the periods in which the water temperature is above the set point.

See Annex60.Fluid.HeatExchangers.Examples.WaterHeater_T for a model that takes the leaving water temperature as an input.

Extends from Modelica.Icons.Example (Icon for runnable examples), Annex60.Fluid.HeatExchangers.Examples.BaseClasses.Heater (Base class for example model for the heater and cooler).

Parameters

TypeNameDefaultDescription
replaceable package MediumPartialMediumMedium model
VolumeV6*6*2.7Volume [m3]
MassFlowRatem_flow_nominalV*1000/3600Nominal mass flow rate [kg/s]
HeatFlowRateQ_flow_nominal100Nominal heat loss of the room [W]

Connectors

TypeNameDescription
replaceable package MediumMedium model

Modelica definition

model WaterHeater_u "Example model for the heater with prescribed heat input and water as the medium" extends Modelica.Icons.Example; extends Annex60.Fluid.HeatExchangers.Examples.BaseClasses.Heater( redeclare package Medium = Annex60.Media.Water, m_flow_nominal=V*1000/3600, Q_flow_nominal=100, conPI(k=10), vol(V=V/1000), mov(nominalValuesDefineDefaultPressureCurve=true)); HeaterCooler_u hea( redeclare package Medium = Medium, m_flow_nominal=m_flow_nominal, dp_nominal=1000, energyDynamics=Modelica.Fluid.Types.Dynamics.FixedInitial, Q_flow_nominal=10*Q_flow_nominal) "Heater"; equation connect(hea.port_b, THeaOut.port_a); connect(conPI.y, hea.u); connect(mov.port_b, hea.port_a); end WaterHeater_u;

http://iea-annex60.org