8.3
general documentation
cs_ctwr.cpp File Reference
#include "cs_defs.h"
#include <assert.h>
#include <math.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include "bft_mem.h"
#include "bft_error.h"
#include "bft_printf.h"
#include "cs_air_props.h"
#include "cs_atmo.h"
#include "cs_base.h"
#include "cs_boundary_conditions.h"
#include "cs_boundary_zone.h"
#include "cs_field.h"
#include "cs_field_default.h"
#include "cs_field_operator.h"
#include "cs_field_pointer.h"
#include "cs_halo.h"
#include "cs_halo_perio.h"
#include "cs_log.h"
#include "cs_math.h"
#include "cs_mesh.h"
#include "cs_mesh_location.h"
#include "cs_mesh_quantities.h"
#include "cs_parameters.h"
#include "cs_parall.h"
#include "cs_physical_constants.h"
#include "cs_physical_model.h"
#include "cs_post.h"
#include "cs_prototypes.h"
#include "cs_thermal_model.h"
#include "cs_velocity_pressure.h"
#include "cs_volume_zone.h"
#include "cs_ctwr.h"
#include "cs_ctwr_source_terms.h"
+ Include dependency graph for cs_ctwr.cpp:

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_define_zones (void)
 Define cooling tower 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...
 

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_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 (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 cooling tower zones.

Define zones.

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

◆ 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_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  )