void cs_ctwr_log_balance(void)
Perform balances in packing zones.
Definition: cs_ctwr.c:702
void cs_ctwr_bulk_mass_source_term(const cs_real_t p0, const cs_real_t molmassrat, cs_real_t mass_source[])
Phase change mass source term from the evaporating liquid to the bulk, humid air.
Definition: cs_ctwr.c:2200
void cs_ctwr_init_flow_vars(cs_real_t liq_mass_flow[])
Initialize the flow variables relevant to the cooling tower scalars inside the packing zones.
Definition: cs_ctwr.c:1060
void cs_ctwr_restart_field_vars(cs_real_t rho0, cs_real_t t0, cs_real_t p0, cs_real_t humidity0, cs_real_t molmassrat)
Reset the field variables based on the restart values.
Definition: cs_ctwr.c:1281
void cs_ctwr_all_destroy(void)
Destroy cs_ctwr_t structures.
Definition: cs_ctwr.c:598
void cs_ctwr_source_term(int f_id, const cs_real_t p0, const cs_real_t molmassrat, cs_real_t exp_st[], cs_real_t imp_st[])
Phase change source terms - Exchange terms between the injected liquid and the water vapor phase in t...
Definition: cs_ctwr.c:1716
cs_ctwr_option_t * cs_get_glob_ctwr_option(void)
Definition: cs_ctwr.c:327
cs_ctwr_zone_t * cs_ctwr_by_id(int ct_id)
Definition: cs_ctwr.c:2238
void cs_ctwr_init_field_vars(cs_real_t rho0, cs_real_t t0, cs_real_t p0, cs_real_t molmassrat)
Initialize the field variables.
Definition: cs_ctwr.c:880
cs_ctwr_zone_type_t
Definition: cs_ctwr.h:75
@ CS_CTWR_COUNTER_CURRENT
Definition: cs_ctwr.h:77
@ CS_CTWR_CROSS_CURRENT
Definition: cs_ctwr.h:78
cs_ctwr_model_t
Definition: cs_ctwr.h:65
@ CS_CTWR_MERKEL
Definition: cs_ctwr.h:69
@ CS_CTWR_NONE
Definition: cs_ctwr.h:67
@ CS_CTWR_POPPE
Definition: cs_ctwr.h:68
void cs_ctwr_field_pointer_map(void)
Map fields used by the cooling tower module to pointers.
Definition: cs_ctwr.c:499
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:351
void cs_ctwr_phyvar_update(cs_real_t rho0, cs_real_t t0, cs_real_t p0, cs_real_t molmassrat)
Update the thermo physical properties fields for the humid air and the liquid.
Definition: cs_ctwr.c:1518
void cs_ctwr_build_all(void)
Define the cells belonging to the different packing zones.
Definition: cs_ctwr.c:568
void cs_ctwr_transport_vars(int iflag)
Convert injected liquid scalars from and to their transported form.
const cs_ctwr_option_t * cs_glob_ctwr_option
void cs_ctwr_log_setup(void)
Log Packing zone definition setup information.
Definition: cs_ctwr.c:628
struct _cs_ctwr_zone_t cs_ctwr_zone_t
Definition: cs_ctwr.h:82
void cs_ctwr_build_zones(void)
Define zones.
Definition: cs_ctwr.c:523
#define BEGIN_C_DECLS
Definition: cs_defs.h:509
double cs_real_t
Floating-point value.
Definition: cs_defs.h:319
#define END_C_DECLS
Definition: cs_defs.h:510
real(c_double), pointer, save p0
reference pressure for the total pressure.
Definition: cstphy.f90:167
real(c_double), pointer, save t0
reference temperature.
Definition: cstphy.f90:214
real(c_double), pointer, save humidity0
Initial absolute humidity in the cooling tower.
Definition: ctincl.f90:45
int evap_model
Definition: cs_ctwr.h:93
bool has_rain
Definition: cs_ctwr.h:94