Buildings.Fluid.HeatExchangers.CoolingTowers.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 Buildings.Fluid.HeatExchangers.CoolingTowers.

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

Package Content

Name Description
Buildings.Fluid.HeatExchangers.CoolingTowers.Examples.FixedApproachDryBulb FixedApproachDryBulb Test model for cooling tower with fixed approach temperature using the dry-bulb temperature
Buildings.Fluid.HeatExchangers.CoolingTowers.Examples.FixedApproachWetBulb FixedApproachWetBulb Test model for cooling tower with fixed approach temperature using the wet-bulb temperature
Buildings.Fluid.HeatExchangers.CoolingTowers.Examples.Merkel Merkel Test model for cooling tower using the Merkel theory
Buildings.Fluid.HeatExchangers.CoolingTowers.Examples.YorkCalc YorkCalc Test model for cooling tower using the York performance correlation
Buildings.Fluid.HeatExchangers.CoolingTowers.Examples.BaseClasses BaseClasses Package with base classes for Buildings.Fluid.HeatExchangers.CoolingTowers.Examples

Buildings.Fluid.HeatExchangers.CoolingTowers.Examples.FixedApproachDryBulb Buildings.Fluid.HeatExchangers.CoolingTowers.Examples.FixedApproachDryBulb

Test model for cooling tower with fixed approach temperature using the dry-bulb temperature

Buildings.Fluid.HeatExchangers.CoolingTowers.Examples.FixedApproachDryBulb

Information

This example illustrates the use of the cooling tower model Buildings.Fluid.HeatExchangers.CoolingTowers.FixedApproach, using the outdoor dry-bulb temperature as the potential for heat transfer. Heat is injected into the volume vol. An on/off controller switches the cooling loop water pump on or off based on the temperature of this volume. The cooling tower outlet temperature has a fixed approach temperature to the outdoor dry-bulb temperature.

Extends from Modelica.Icons.Example (Icon for runnable examples), BaseClasses.PartialStaticTwoPortCoolingTower (Base class for test models of cooling towers).

Parameters

TypeNameDefaultDescription
Nominal condition
MassFlowRatem_flow_nominal0.5Design water flow rate [kg/s]

Connectors

TypeNameDescription
BusweaBusWeather data bus

Modelica definition

model FixedApproachDryBulb "Test model for cooling tower with fixed approach temperature using the dry-bulb temperature" extends Modelica.Icons.Example; extends BaseClasses.PartialStaticTwoPortCoolingTower( redeclare CoolingTowers.FixedApproach tow( m_flow_nominal=m_flow_nominal), vol(energyDynamics=Modelica.Fluid.Types.Dynamics.FixedInitial)); equation connect(weaBus.TDryBul, tow.TAir); end FixedApproachDryBulb;

Buildings.Fluid.HeatExchangers.CoolingTowers.Examples.FixedApproachWetBulb Buildings.Fluid.HeatExchangers.CoolingTowers.Examples.FixedApproachWetBulb

Test model for cooling tower with fixed approach temperature using the wet-bulb temperature

Buildings.Fluid.HeatExchangers.CoolingTowers.Examples.FixedApproachWetBulb

Information

This example illustrates the use of the cooling tower model Buildings.Fluid.HeatExchangers.CoolingTowers.FixedApproach, using the outdoor wet-bulb temperature as the potential for heat transfer. Heat is injected into the volume vol. An on/off controller switches the cooling loop water pump on or off based on the temperature of this volume. The cooling tower outlet temperature has a fixed approach temperature to the outdoor wet-bulb temperature.

Extends from Modelica.Icons.Example (Icon for runnable examples), BaseClasses.PartialStaticTwoPortCoolingTower (Base class for test models of cooling towers).

Parameters

TypeNameDefaultDescription
Nominal condition
MassFlowRatem_flow_nominal0.5Design water flow rate [kg/s]

Connectors

TypeNameDescription
BusweaBusWeather data bus

Modelica definition

model FixedApproachWetBulb "Test model for cooling tower with fixed approach temperature using the wet-bulb temperature" extends Modelica.Icons.Example; extends BaseClasses.PartialStaticTwoPortCoolingTower( redeclare CoolingTowers.FixedApproach tow( m_flow_nominal=m_flow_nominal), weaDat( final computeWetBulbTemperature=true)); equation connect(weaBus.TWetBul, tow.TAir); end FixedApproachWetBulb;

Buildings.Fluid.HeatExchangers.CoolingTowers.Examples.Merkel Buildings.Fluid.HeatExchangers.CoolingTowers.Examples.Merkel

Test model for cooling tower using the Merkel theory

Buildings.Fluid.HeatExchangers.CoolingTowers.Examples.Merkel

Information

This example illustrates the use of the cooling tower model Buildings.Fluid.HeatExchangers.CoolingTowers.Merkel. Heat is injected into the volume vol. An on/off controller switches the cooling loop water pump on or off based on the temperature of this volume. The cooling tower outlet temperature is controlled to track a fixed temperature.

Extends from Modelica.Icons.Example (Icon for runnable examples), BaseClasses.PartialStaticTwoPortCoolingTower (Base class for test models of cooling towers).

Parameters

TypeNameDefaultDescription
Nominal condition
MassFlowRatem_flow_nominal0.5Design water flow rate [kg/s]
RealratWatAir_nominal0.625Design water-to-air ratio

Connectors

TypeNameDescription
BusweaBusWeather data bus

Modelica definition

model Merkel "Test model for cooling tower using the Merkel theory" extends Modelica.Icons.Example; extends BaseClasses.PartialStaticTwoPortCoolingTower( redeclare Buildings.Fluid.HeatExchangers.CoolingTowers.Merkel tow( ratWatAir_nominal=ratWatAir_nominal, TAirInWB_nominal=273.15 + 25.55, TWatIn_nominal=273.15 + 35, TWatOut_nominal=273.15 + 35 - 5.56, PFan_nominal=4800), weaDat(final computeWetBulbTemperature=true)); parameter Real ratWatAir_nominal = 0.625 "Design water-to-air ratio"; Modelica.Blocks.Sources.Constant TSetLea(k=273.15 + 18) "Setpoint for leaving temperature"; Buildings.Controls.OBC.CDL.Continuous.PID conFan( k=1, Ti=60, Td=10, reverseActing=false, u_s(unit="K", displayUnit="degC"), u_m(unit="K", displayUnit="degC")) "Controller for tower fan"; equation connect(TSetLea.y, conFan.u_s); connect(conFan.y, tow.y); connect(tow.TLvg, conFan.u_m); connect(weaBus.TWetBul, tow.TAir); end Merkel;

Buildings.Fluid.HeatExchangers.CoolingTowers.Examples.YorkCalc Buildings.Fluid.HeatExchangers.CoolingTowers.Examples.YorkCalc

Test model for cooling tower using the York performance correlation

Buildings.Fluid.HeatExchangers.CoolingTowers.Examples.YorkCalc

Information

This example illustrates the use of the cooling tower model Buildings.Fluid.HeatExchangers.CoolingTowers.YorkCalc. Heat is injected into the volume vol. An on/off controller switches the cooling loop water pump on or off based on the temperature of this volume. The cooling tower outlet temperature is controlled to track a fixed temperature.

Extends from Modelica.Icons.Example (Icon for runnable examples), BaseClasses.PartialStaticTwoPortCoolingTower (Base class for test models of cooling towers).

Parameters

TypeNameDefaultDescription
Nominal condition
MassFlowRatem_flow_nominal0.5Design water flow rate [kg/s]

Connectors

TypeNameDescription
BusweaBusWeather data bus

Modelica definition

model YorkCalc "Test model for cooling tower using the York performance correlation" extends Modelica.Icons.Example; extends BaseClasses.PartialStaticTwoPortCoolingTower( redeclare CoolingTowers.YorkCalc tow, weaDat( final computeWetBulbTemperature=true)); Modelica.Blocks.Sources.Constant TSetLea(k=273.15 + 18) "Setpoint for leaving temperature"; Controls.Continuous.LimPID conFan( k=1, Ti=60, Td=10, reverseActing=false, initType=Modelica.Blocks.Types.Init.InitialState) "Controller for tower fan"; equation connect(TSetLea.y, conFan.u_s); connect(conFan.y, tow.y); connect(tow.TLvg, conFan.u_m); connect(weaBus.TWetBul, tow.TAir); end YorkCalc;