8.3
general documentation
cs_ctwr.h File Reference
#include "fvm_nodal.h"
#include "cs_base.h"
#include "cs_halo.h"
#include "cs_mesh.h"
#include "cs_mesh_quantities.h"
+ Include dependency graph for cs_ctwr.h:

Go to the source code of this file.

Data Structures

struct  cs_ctwr_zone_t
 
struct  cs_ctwr_option_t
 

Enumerations

enum  cs_ctwr_model_t { CS_CTWR_NONE = 0 , CS_CTWR_POPPE = 1 , CS_CTWR_MERKEL = 2 }
 
enum  cs_ctwr_zone_type_t { CS_CTWR_COUNTER_CURRENT = 1 , CS_CTWR_CROSS_CURRENT = 2 , CS_CTWR_INJECTION = 3 }
 

Functions

cs_ctwr_option_tcs_get_glob_ctwr_option (void)
 
cs_ctwr_zone_t ** cs_get_glob_ctwr_zone (void)
 
int * cs_get_glob_ctwr_n_zones (void)
 
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. More...
 
void cs_ctwr_field_pointer_map (void)
 Map fields used by the cooling tower module to pointers. More...
 
void cs_ctwr_define_zones (void)
 Define zones. More...
 
void cs_ctwr_build_all (void)
 Define the cells belonging to the different packing zones. More...
 
void cs_ctwr_all_destroy (void)
 Destroy cs_ctwr_t structures. More...
 
void cs_ctwr_log_setup (void)
 Log Packing zone definition setup information. More...
 
void cs_ctwr_log_balance (void)
 Perform balances in packing zones. More...
 
void cs_ctwr_transport_vars (int iflag)
 Convert injected liquid scalars from and to their transported form. More...
 
cs_ctwr_zone_t * cs_ctwr_by_id (int ct_id)
 

Variables

const cs_ctwr_option_tcs_glob_ctwr_option
 

Enumeration Type Documentation

◆ cs_ctwr_model_t

Type of cooling tower model

Enumerator
CS_CTWR_NONE 

no cooling tower model

CS_CTWR_POPPE 

Poppe's model

CS_CTWR_MERKEL 

Merkel's model

◆ cs_ctwr_zone_type_t

Type of cooling tower exchange zone

Enumerator
CS_CTWR_COUNTER_CURRENT 

counter-current zone

CS_CTWR_CROSS_CURRENT 

cross-current zone

CS_CTWR_INJECTION 

water injection zone

Function Documentation

◆ cs_ctwr_all_destroy()

void cs_ctwr_all_destroy ( void  )

Destroy cs_ctwr_t structures.

◆ cs_ctwr_build_all()

void cs_ctwr_build_all ( void  )

Define the cells belonging to the different packing zones.

◆ cs_ctwr_by_id()

cs_ctwr_zone_t * cs_ctwr_by_id ( int  ct_id)

◆ cs_ctwr_define()

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.

Parameters
[in]zone_criteriazone selection criteria
[in]z_idz_id if zone already created (-1 otherwise)
[in]zone_typeexchange zone type
[in]delta_timposed delta temperature delta between inlet and oulet of the zone
[in]relaxrelaxation of the imposed delta temperature
[in]t_l_bcliquid water temperature at the inlet
[in]q_l_bcmass flow rate at the inlet
[in]xapbeta_x_0 of the exchange law
[in]xnpexponent n of the exchange law
[in]surfacetotal Surface of ingoing water
[in]xleak_facleakage factor (ratio of outlet/inlet flow rate)
[in]zone_criteriazone selection criteria (or nullptr)
[in]z_idz_id if zone already created (-1 otherwise)
[in]zone_typeexchange zone type
[in]delta_timposed delta temperature delta between inlet and outlet of the zone
[in]relaxrelaxation of the imposed delta temperature
[in]t_l_bcliquid water temperature at the inlet
[in]q_l_bcmass flow rate at the inlet
[in]xapbeta_x_0 of the exchange law
[in]xnpexponent n of the exchange law
[in]surfacetotal Surface of ingoing water
[in]xleak_facleakage factor (ratio of outlet/inlet flow rate)

◆ cs_ctwr_define_zones()

void cs_ctwr_define_zones ( void  )

Define zones.

Define zones.

TODO rename this: definition (at setup stage) and build (instanciation on actual mesh are not the same).

◆ cs_ctwr_field_pointer_map()

void cs_ctwr_field_pointer_map ( void  )

Map fields used by the cooling tower module to pointers.

◆ cs_ctwr_log_balance()

void cs_ctwr_log_balance ( void  )

Perform balances in packing zones.

◆ cs_ctwr_log_setup()

void cs_ctwr_log_setup ( void  )

Log Packing zone definition setup information.

◆ cs_ctwr_transport_vars()

void cs_ctwr_transport_vars ( int  iflag)

Convert injected liquid scalars from and to their transported form.

Parameters
[in]iflag1: Convert transported variables to physical variables 2: Convert physical variables to transported variables

◆ cs_get_glob_ctwr_n_zones()

int * cs_get_glob_ctwr_n_zones ( void  )

◆ cs_get_glob_ctwr_option()

cs_ctwr_option_t * cs_get_glob_ctwr_option ( void  )

◆ cs_get_glob_ctwr_zone()

cs_ctwr_zone_t ** cs_get_glob_ctwr_zone ( void  )

Variable Documentation

◆ cs_glob_ctwr_option

const cs_ctwr_option_t* cs_glob_ctwr_option
extern