9.0
general documentation
Loading...
Searching...
No Matches
cs_ctwr.cpp File Reference
#include "base/cs_defs.h"
#include <assert.h>
#include <math.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include "bft/bft_mem.h"
#include "bft/bft_error.h"
#include "bft/bft_printf.h"
#include "atmo/cs_air_props.h"
#include "atmo/cs_atmo.h"
#include "base/cs_base.h"
#include "base/cs_boundary_conditions.h"
#include "base/cs_boundary_zone.h"
#include "base/cs_field.h"
#include "base/cs_field_default.h"
#include "base/cs_field_operator.h"
#include "base/cs_field_pointer.h"
#include "base/cs_log.h"
#include "base/cs_math.h"
#include "mesh/cs_mesh.h"
#include "mesh/cs_mesh_location.h"
#include "mesh/cs_mesh_quantities.h"
#include "base/cs_parameters.h"
#include "base/cs_parall.h"
#include "base/cs_physical_constants.h"
#include "pprt/cs_physical_model.h"
#include "base/cs_post.h"
#include "base/cs_prototypes.h"
#include "base/cs_thermal_model.h"
#include "base/cs_volume_zone.h"
#include "ctwr/cs_ctwr.h"
#include "ctwr/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.
void cs_ctwr_define_zones (void)
 Define cooling tower zones.
void cs_ctwr_build_all (void)
 Define the cells belonging to the different packing zones.
void cs_ctwr_all_destroy (void)
 Destroy cs_ctwr_t structures.
void cs_ctwr_log_setup (void)
 Log Packing zone definition setup information.
void cs_ctwr_log_balance (void)
 Perform balances in packing zones.

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 )