#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 "base/cs_array.h"#include "atmo/cs_atmo.h"#include "ctwr/cs_ctwr_physical_properties.h"#include "base/cs_field.h"#include "base/cs_field_pointer.h"#include "lagr/cs_lagr.h"#include "base/cs_math.h"#include "mesh/cs_mesh.h"#include "mesh/cs_mesh_quantities.h"#include "base/cs_physical_constants.h"#include "pprt/cs_physical_model.h"#include "base/cs_volume_mass_injection.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_source_terms.cpp:Functions | |
| static cs_real_t | _lewis_factor (const int evap_model, const cs_real_t molmassrat, const cs_real_t x, const cs_real_t x_s_tl) |
| static void | _evap_packing (cs_ctwr_zone_t *ct, cs_real_t pref, cs_real_t t_h, cs_real_t t_l_p, cs_real_3_t vel_h, cs_real_t rho_h, cs_real_t ym_w, cs_real_t x, cs_real_t rho_l, cs_real_t y_l_p, cs_real_t vel_l, cs_real_t *beta_x_ai, cs_real_t *mass_source, cs_real_t *mass_source_oy) |
| static void | _evap_rain (cs_air_fluid_props_t *air_prop, cs_real_t visc, cs_real_t pref, cs_real_t t_h, cs_real_t t_l_r, cs_real_3_t drift_vel_rain, cs_real_t x, cs_real_t x_s, cs_real_t rho_h, cs_real_t y_rain, cs_real_t rho_ref, cs_real_t rho_l, cs_real_t *beta_x_ai, cs_real_t *mass_source, cs_real_t *mass_source_oy) |
| void | cs_ctwr_volume_mass_injection_packing_dof_func (cs_lnum_t n_elts, const cs_lnum_t *elt_ids, bool dense_output, void *input, cs_real_t *retval) |
| cs_dof_func_t function to compute volume mass injection for pressure (mass) equation resulting from water evaporation in the packing zones or rain injection. More... | |
| void | cs_ctwr_volume_mass_injection_evap_rain_dof_func (cs_lnum_t n_elts, const cs_lnum_t *elt_ids, bool dense_output, void *input, cs_real_t *retval) |
| cs_dof_func_t function to compute volume mass injection for pressure (mass) equation resulting from water evaporation of the rain. More... | |
| void | cs_ctwr_volume_mass_injection_rain_dof_func (cs_lnum_t n_elts, const cs_lnum_t *elt_ids, bool dense_output, void *input, cs_real_t *retval) |
| cs_dof_func_t function to compute volume mass injection for pressure (mass) equation for the leaking rain form packings if mixture model is on. More... | |
| void | cs_ctwr_volume_mass_injection_yh_rain_dof_func (cs_lnum_t n_elts, const cs_lnum_t *elt_ids, bool dense_output, void *input, cs_real_t *retval) |
| cs_dof_func_t function to compute volume mass injection for yphp rain equation (enthalpy) if mixture model is on. More... | |
| void | cs_ctwr_source_term (int f_id, 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 the bulk, humid air. More... | |
|
static |
|
static |
|
static |
Phase change source terms - Exchange terms between the injected liquid and the water vapor phase in the bulk, humid air.
| [in] | f_id | field id |
| [in,out] | exp_st | Explicit source term |
| [in,out] | imp_st | Implicit source term |
| void cs_ctwr_volume_mass_injection_evap_rain_dof_func | ( | cs_lnum_t | n_elts, |
| const cs_lnum_t * | elt_ids, | ||
| bool | dense_output, | ||
| void * | input, | ||
| cs_real_t * | retval | ||
| ) |
cs_dof_func_t function to compute volume mass injection for pressure (mass) equation resulting from water evaporation of the rain.
cs_dof_func_t function to compute volume mass injection for pressure (mass) equation resulting from evaporation of the rain.
| [in] | n_elts | number of elements to consider |
| [in] | elt_ids | list of elements ids |
| [in] | dense_output | perform an indirection in retval or not |
| [in] | input | null or pointer to a structure cast on-the-fly |
| [in,out] | retval | resulting value(s). Must be allocated. |
| void cs_ctwr_volume_mass_injection_packing_dof_func | ( | cs_lnum_t | n_elts, |
| const cs_lnum_t * | elt_ids, | ||
| bool | dense_output, | ||
| void * | input, | ||
| cs_real_t * | retval | ||
| ) |
cs_dof_func_t function to compute volume mass injection for pressure (mass) equation resulting from water evaporation in the packing zones or rain injection.
cs_dof_func_t function to compute volume mass injection for pressure (mass) equation resulting from water evaporatin in the packing zones.
| [in] | n_elts | number of elements to consider |
| [in] | elt_ids | list of elements ids |
| [in] | dense_output | perform an indirection in retval or not |
| [in] | input | null or pointer to a structure cast on-the-fly |
| [in,out] | retval | resulting value(s). Must be allocated. |
| void cs_ctwr_volume_mass_injection_rain_dof_func | ( | cs_lnum_t | n_elts, |
| const cs_lnum_t * | elt_ids, | ||
| bool | dense_output, | ||
| void * | input, | ||
| cs_real_t * | retval | ||
| ) |
cs_dof_func_t function to compute volume mass injection for pressure (mass) equation for the leaking rain form packings if mixture model is on.
cs_dof_func_t function to compute volume mass injection for pressure (mass) equation for the rain.
| [in] | n_elts | number of elements to consider |
| [in] | elt_ids | list of elements ids |
| [in] | dense_output | perform an indirection in retval or not |
| [in] | input | null or pointer to a structure cast on-the-fly |
| [in,out] | retval | resulting value(s). Must be allocated. |
| void cs_ctwr_volume_mass_injection_yh_rain_dof_func | ( | cs_lnum_t | n_elts, |
| const cs_lnum_t * | elt_ids, | ||
| bool | dense_output, | ||
| void * | input, | ||
| cs_real_t * | retval | ||
| ) |
cs_dof_func_t function to compute volume mass injection for yphp rain equation (enthalpy) if mixture model is on.
cs_dof_func_t function to compute volume mass injection for yphp rain equation (enthalpy).
| [in] | n_elts | number of elements to consider |
| [in] | elt_ids | list of elements ids |
| [in] | dense_output | perform an indirection in retval or not |
| [in] | input | null or pointer to a structure cast on-the-fly |
| [in,out] | retval | resulting value(s). Must be allocated. |