7.2
general documentation
cs_wall_condensation.c File Reference
#include "cs_defs.h"
#include <assert.h>
#include <math.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include "bft_error.h"
#include "bft_mem.h"
#include "bft_printf.h"
#include "cs_field.h"
#include "cs_field_pointer.h"
#include "cs_log.h"
#include "cs_map.h"
#include "cs_mesh_location.h"
#include "cs_parall.h"
#include "cs_parameters.h"
#include "cs_time_step.h"
#include "cs_gas_mix.h"
#include "cs_log_iteration.h"
#include "cs_math.h"
#include "cs_physical_constants.h"
#include "cs_restart.h"
#include "cs_thermal_model.h"
#include "cs_velocity_pressure.h"
#include "cs_wall_functions.h"
#include "cs_1d_wall_thermal.h"
#include "cs_wall_condensation.h"
#include "cs_wall_condensation_1d_thermal.h"
+ Include dependency graph for cs_wall_condensation.c:

Functions

void cs_f_wall_condensation_get_model_pointers (int **icondb, cs_wall_cond_natural_conv_model_t **icondb_model)
 
void cs_f_wall_condensation_get_size_pointers (cs_lnum_t **nfbpcd, cs_lnum_t **nzones)
 
void cs_f_wall_condensation_get_pointers (cs_lnum_t **ifbpcd, cs_lnum_t **itypcd, cs_lnum_t **izzftcd, cs_real_t **spcond, cs_real_t **hpcond, cs_real_t **twall_cond, cs_real_t **thermflux, cs_real_t **flthr, cs_real_t **dflthr, cs_lnum_t **izcophc, cs_lnum_t **izcophg, cs_lnum_t **iztag1d, cs_real_t **ztpar, cs_real_t **xrefcond, cs_real_t **projcond)
 
void cs_wall_condensation_set_model (cs_wall_cond_natural_conv_model_t model)
 
void cs_wall_condensation_set_onoff_state (int icondb)
 
static cs_real_t _compute_psat (cs_real_t temperature)
 
static cs_real_t _compute_mole_fraction (cs_real_t mass_fraction, cs_real_t mix_mol_mas, cs_real_t mol_mas)
 
static cs_real_t _get_wall_temperature (cs_lnum_t ieltcd)
 
static cs_real_t _compute_mac_adams (cs_real_t theta, cs_real_t grashof, cs_real_t schmidt_or_prandtl)
 
static cs_real_t _compute_schlichting (cs_real_t theta, cs_real_t reynolds, cs_real_t schmidt_or_prandtl)
 
static cs_real_t _compute_grashof (cs_real_t gravity, cs_real_t drho, cs_real_t length, cs_real_t kin_viscosity)
 
static cs_real_t _compute_characteristic_length (const cs_real_3_t point, const cs_real_3_t ref_point, const cs_real_3_t ref_direction)
 
static cs_real_t _compute_tangential_velocity (const cs_real_3_t velocity, const cs_real_3_t normal_vector, const cs_real_t coeff)
 
static void _compute_exchange_forced_convection (cs_lnum_t ieltcd, cs_real_t *hconv, cs_real_t *hcond)
 
static void _compute_exchange_natural_convection (cs_lnum_t ieltcd, cs_real_t *hconv, cs_real_t *hcond)
 
static void _compute_exchange_mixed_convection (cs_lnum_t ieltcd, cs_real_t *hconv, cs_real_t *hcond)
 
static void _compute_exchange_coefficients (cs_lnum_t ieltcd, cs_real_t *hconv, cs_real_t *hcond)
 

Variables

static const cs_real_t pr_c = 221.2e+5
 
static const cs_real_t t_c = 647.3e0
 
static const cs_real_t C_k1 = -7.691234564e0
 
static const cs_real_t C_k2 = -26.08023696e0
 
static const cs_real_t C_k3 = -168.1706546e0
 
static const cs_real_t C_k4 = 64.23285504e0
 
static const cs_real_t C_k5 = -118.9646225e0
 
static const cs_real_t C_k6 = 4.16711732e0
 
static const cs_real_t C_k7 = 20.9750676e0
 
static const cs_real_t C_k8 = -1.e+9
 
static const cs_real_t C_k9 = 6.e0
 
static const cs_real_t lcar_nc = 1.0
 
static const cs_real_t Pr_tur = 0.9
 
static const cs_real_t lcond = 2278.0e+3
 
static cs_wall_cond_t _wall_cond
 
const cs_wall_cond_tcs_glob_wall_cond = &_wall_cond
 

Function Documentation

◆ _compute_characteristic_length()

static cs_real_t _compute_characteristic_length ( const cs_real_3_t  point,
const cs_real_3_t  ref_point,
const cs_real_3_t  ref_direction 
)
static

◆ _compute_exchange_coefficients()

static void _compute_exchange_coefficients ( cs_lnum_t  ieltcd,
cs_real_t hconv,
cs_real_t hcond 
)
static

◆ _compute_exchange_forced_convection()

static void _compute_exchange_forced_convection ( cs_lnum_t  ieltcd,
cs_real_t hconv,
cs_real_t hcond 
)
static

◆ _compute_exchange_mixed_convection()

static void _compute_exchange_mixed_convection ( cs_lnum_t  ieltcd,
cs_real_t hconv,
cs_real_t hcond 
)
static

◆ _compute_exchange_natural_convection()

static void _compute_exchange_natural_convection ( cs_lnum_t  ieltcd,
cs_real_t hconv,
cs_real_t hcond 
)
static

◆ _compute_grashof()

static cs_real_t _compute_grashof ( cs_real_t  gravity,
cs_real_t  drho,
cs_real_t  length,
cs_real_t  kin_viscosity 
)
static

◆ _compute_mac_adams()

static cs_real_t _compute_mac_adams ( cs_real_t  theta,
cs_real_t  grashof,
cs_real_t  schmidt_or_prandtl 
)
static

◆ _compute_mole_fraction()

static cs_real_t _compute_mole_fraction ( cs_real_t  mass_fraction,
cs_real_t  mix_mol_mas,
cs_real_t  mol_mas 
)
static

◆ _compute_psat()

static cs_real_t _compute_psat ( cs_real_t  temperature)
static

◆ _compute_schlichting()

static cs_real_t _compute_schlichting ( cs_real_t  theta,
cs_real_t  reynolds,
cs_real_t  schmidt_or_prandtl 
)
static

◆ _compute_tangential_velocity()

static cs_real_t _compute_tangential_velocity ( const cs_real_3_t  velocity,
const cs_real_3_t  normal_vector,
const cs_real_t  coeff 
)
static

◆ _get_wall_temperature()

static cs_real_t _get_wall_temperature ( cs_lnum_t  ieltcd)
static

◆ cs_f_wall_condensation_get_model_pointers()

void cs_f_wall_condensation_get_model_pointers ( int **  icondb,
cs_wall_cond_natural_conv_model_t **  icondb_model 
)

◆ cs_f_wall_condensation_get_pointers()

void cs_f_wall_condensation_get_pointers ( cs_lnum_t **  ifbpcd,
cs_lnum_t **  itypcd,
cs_lnum_t **  izzftcd,
cs_real_t **  spcond,
cs_real_t **  hpcond,
cs_real_t **  twall_cond,
cs_real_t **  thermflux,
cs_real_t **  flthr,
cs_real_t **  dflthr,
cs_lnum_t **  izcophc,
cs_lnum_t **  izcophg,
cs_lnum_t **  iztag1d,
cs_real_t **  ztpar,
cs_real_t **  xrefcond,
cs_real_t **  projcond 
)

◆ cs_f_wall_condensation_get_size_pointers()

void cs_f_wall_condensation_get_size_pointers ( cs_lnum_t **  nfbpcd,
cs_lnum_t **  nzones 
)

◆ cs_wall_condensation_set_model()

void cs_wall_condensation_set_model ( cs_wall_cond_natural_conv_model_t  model)

◆ cs_wall_condensation_set_onoff_state()

void cs_wall_condensation_set_onoff_state ( int  icondb)

Variable Documentation

◆ _wall_cond

cs_wall_cond_t _wall_cond
static
Initial value:
= { .icondb = -1,
.natural_conv_model = CS_WALL_COND_MODEL_COPAIN,
.forced_conv_model = CS_WALL_COND_MODEL_WALL_LAW,
.mixed_conv_model = CS_WALL_COND_MIXED_MAX,
.nfbpcd = 0,
.ifbpcd = NULL,
.itypcd = NULL,
.izzftcd = NULL,
.spcond = NULL,
.hpcond = NULL,
.twall_cond = NULL,
.thermal_condensation_flux = NULL,
.convective_htc = NULL,
.condensation_htc = NULL,
.total_htc = NULL,
.flthr = NULL,
.dflthr = NULL,
.nzones = -1,
.izcophc = NULL,
.izcophg = NULL,
.iztag1d = NULL,
.ztpar = NULL,
.zxrefcond = NULL,
.zprojcond = NULL }
Definition: cs_wall_condensation.h:45
Definition: cs_wall_condensation.h:52
Definition: cs_wall_condensation.h:57

◆ C_k1

const cs_real_t C_k1 = -7.691234564e0
static

◆ C_k2

const cs_real_t C_k2 = -26.08023696e0
static

◆ C_k3

const cs_real_t C_k3 = -168.1706546e0
static

◆ C_k4

const cs_real_t C_k4 = 64.23285504e0
static

◆ C_k5

const cs_real_t C_k5 = -118.9646225e0
static

◆ C_k6

const cs_real_t C_k6 = 4.16711732e0
static

◆ C_k7

const cs_real_t C_k7 = 20.9750676e0
static

◆ C_k8

const cs_real_t C_k8 = -1.e+9
static

◆ C_k9

const cs_real_t C_k9 = 6.e0
static

◆ cs_glob_wall_cond

const cs_wall_cond_t* cs_glob_wall_cond = &_wall_cond

◆ lcar_nc

const cs_real_t lcar_nc = 1.0
static

◆ lcond

const cs_real_t lcond = 2278.0e+3
static

◆ pr_c

const cs_real_t pr_c = 221.2e+5
static

◆ Pr_tur

const cs_real_t Pr_tur = 0.9
static

◆ t_c

const cs_real_t t_c = 647.3e0
static