8.1
general 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):

{
/* Activate cooling tower model */
/* Evaporation model */
}
cs_ctwr_option_t * cs_get_glob_ctwr_option(void)
Definition: cs_ctwr.c:1230
@ CS_CTWR_POPPE
Definition: cs_ctwr.h:62
int cs_glob_physical_model_flag[CS_N_PHYSICAL_MODEL_TYPES]
Definition: cs_physical_model.c:108
@ CS_COOLING_TOWERS
Definition: cs_physical_model.h:67
Definition: cs_ctwr.h:87
cs_ctwr_model_t evap_model
Definition: cs_ctwr.h:89

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.

{
cs_real_t surface = 0.48 * 6540.; /* 48% of the total disc */
cs_real_t qw = surface * 2.64; /* Water flow rate (kg/s) */
cs_ctwr_define("2 or 3", /* selection criteria (or NULL) */
-1, /* zone_id (or -1) */
CS_CTWR_COUNTER_CURRENT, /* Zone type */
-1., /* Imposed temperature delta if positive */
0.1, /* Associated relaxation time */
36., /* Liquid injected water temperature */
qw,
0.2, /* Evaporation law constant A */
0.5, /* Evaporation law constant n */
surface,
-1.); /* Leaking factor, ignored if negative */
}
void cs_ctwr_define(const char zone_criteria[], int z_id, 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:1255
@ CS_CTWR_COUNTER_CURRENT
Definition: cs_ctwr.h:71
double cs_real_t
Floating-point value.
Definition: cs_defs.h:319
double precision, dimension(:,:,:), allocatable qw
Definition: atimbr.f90:109