My Project
programmer's documentation
Cooling tower parameters definition

Activate the cooling tower module

As with other predefined physical models, the cooling tower module may be activated by setting the matching value in cs_glob_physical_model_flag, in the cs_user_model function (cs_user_parameters.c):

Define exchange zones

Cooling tower exchange zones and their parameters may be defined in the general cs_user_parameters function (cs_user_parameters.c).

The following code block shows an example of definition of a cooling tower exchange zone.

{
/* Evaporation model:
CS_CTWR_NONE None,
CS_CTWR_POPPE Poppe,
CS_CTWR_MERKEL Merkel*/
cs_real_t surface = 0.48 * 6540.; /* 48% of the total disc */
cs_real_t qw = surface * 2.64; /* Water flow rate (kg/s) */
"2 or 3", /* selction criterion */
CS_CTWR_COUNTER_CURRENT counter current,
CS_CTWR_CROSS_CURRENT cross,
CS_CTWR_RAIN rain zone */
-1., /* Imposed delta temperature if positive */
0.1, /* Associated relaxation time */
36., /* Liquid injected water temperature */
qw,
0.2, /* Evaportaion law constant A */
0.5, /* Evaportaion law constant n */
surface,
-1.); /* Leaking factor, not taken into account if negative */
}
cs_ctwr_define
void cs_ctwr_define(const char zone_criteria[], cs_ctwr_zone_type_t zone_type, cs_real_t delta_t, cs_real_t relax, cs_real_t t_l_bc, cs_real_t q_l_bc, cs_real_t xap, cs_real_t xnp, cs_real_t surface, cs_real_t xleak_fac)
Define a cooling tower exchange zone.
Definition: cs_ctwr.c:349
CS_COOLING_TOWERS
Definition: cs_physical_model.h:73
cs_ctwr_option_t
Definition: cs_ctwr.h:92
cs_real_t
double cs_real_t
Floating-point value.
Definition: cs_defs.h:302
cs_glob_physical_model_flag
int cs_glob_physical_model_flag[CS_N_PHYSICAL_MODEL_TYPES]
Definition: cs_physical_model.c:109
cs_ctwr_option_t::evap_model
int evap_model
Definition: cs_ctwr.h:93
CS_CTWR_POPPE
Definition: cs_ctwr.h:68
CS_CTWR_COUNTER_CURRENT
Definition: cs_ctwr.h:77
atimbr::qw
double precision, dimension(:,:,:), allocatable qw
Definition: atimbr.f90:109
cs_get_glob_ctwr_option
cs_ctwr_option_t * cs_get_glob_ctwr_option(void)
Definition: cs_ctwr.c:325