Description: "Collection of models that illustrate model use and test models"

- Home > Modelica

## 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
--- | ---
FixedApproachDryBulb | Test model for cooling tower with fixed approach temperature using the dry-bulb temperature
FixedApproachWetBulb | Test model for cooling tower with fixed approach temperature using the wet-bulb temperature
YorkCalc | Test model for cooling tower using the York performance correlation
BaseClasses | Package with base classes for Buildings.Fluid.HeatExchangers.CoolingTowers.Examples

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

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

### 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

Type | Name | Default | Description
--- | --- | --- | ---
Nominal condition
MassFlowRate | mWat_flow_nominal | 0.5 | Design water flow rate [kg/s]

### Connectors

Type | Name | Description
--- | --- | ---
Bus | weaBus |

### 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, vol(energyDynamics=Modelica.Fluid.Types.Dynamics.FixedInitial)); equation connect(weaBus.TDryBul, tow.TAir); end FixedApproachDryBulb;

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

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

### 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.PartialStaticTwoPortCoolingTowerWetBulb (Partial test model for cooling tower with wet bulb temperature as potential for heat transfer).

### Parameters

Type | Name | Default | Description
--- | --- | --- | ---
Nominal condition
MassFlowRate | mWat_flow_nominal | 0.5 | Design water flow rate [kg/s]

### Connectors

Type | Name | Description
--- | --- | ---
Bus | weaBus |

### Modelica definition

model FixedApproachWetBulb "Test model for cooling tower with fixed approach temperature using the wet-bulb temperature" extends Modelica.Icons.Example; extends BaseClasses.PartialStaticTwoPortCoolingTowerWetBulb( redeclare CoolingTowers.FixedApproach tow); equation connect(wetBulTem.TWetBul, tow.TAir); end FixedApproachWetBulb;

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

Test model for cooling tower using the York performance correlation

### 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.PartialStaticTwoPortCoolingTowerWetBulb (Partial test model for cooling tower with wet bulb temperature as potential for heat transfer).

### Parameters

Type | Name | Default | Description
--- | --- | --- | ---
Nominal condition
MassFlowRate | mWat_flow_nominal | 0.5 | Design water flow rate [kg/s]

### Connectors

Type | Name | Description
--- | --- | ---
Bus | weaBus |

### Modelica definition

model YorkCalc "Test model for cooling tower using the York performance correlation" extends Modelica.Icons.Example; extends BaseClasses.PartialStaticTwoPortCoolingTowerWetBulb( redeclare CoolingTowers.YorkCalc tow(energyDynamics=Modelica.Fluid.Types.Dynamics.FixedInitial), onOffController(bandwidth=2)); Modelica.Blocks.Sources.Constant TSetLea(k=273.15 + 18) "Setpoint for leaving temperature"; Controls.Continuous.LimPID conFan( k=1, Ti=60, Td=10, reverseAction=true, initType=Modelica.Blocks.Types.InitPID.InitialState) "Controller for tower fan"; equation connect(wetBulTem.TWetBul, tow.TAir); connect(TSetLea.y, conFan.u_s); connect(conFan.y, tow.y); connect(tow.TLvg, conFan.u_m); end YorkCalc;