#include "base/cs_defs.h"#include <assert.h>#include <errno.h>#include <ctype.h>#include <stdio.h>#include <stdarg.h>#include <stdlib.h>#include <string.h>#include <math.h>#include <float.h>#include "bft/bft_error.h"#include "bft/bft_printf.h"#include "atmo/cs_air_props.h"#include "base/cs_base.h"#include "base/cs_boundary_conditions.h"#include "cdo/cs_domain.h"#include "base/cs_field.h"#include "base/cs_field_default.h"#include "base/cs_field_pointer.h"#include "base/cs_log.h"#include "base/cs_math.h"#include "base/cs_mem.h"#include "base/cs_scalar_clipping.h"#include "mesh/cs_mesh.h"#include "mesh/cs_mesh_location.h"#include "mesh/cs_mesh_quantities.h"#include "base/cs_parall.h"#include "base/cs_parameters.h"#include "base/cs_parameters_check.h"#include "base/cs_physical_constants.h"#include "base/cs_prototypes.h"#include "base/cs_thermal_model.h"#include "pprt/cs_physical_model.h"#include "atmo/cs_atmo.h"#include "atmo/cs_atmo_aerosol_ssh.h"#include "atmo/cs_atmo_chemistry.h"
Include dependency graph for cs_atmo_chemistry.cpp:Functions | |
| void | cs_atmo_aerosol_initialize (void) |
| This function initializes the external aerosol code. More... | |
| void | cs_atmo_aerosol_finalize (void) |
| This function finalizes the external aerosol code. More... | |
| void | cs_atmo_aerosol_get_gas (cs_real_t *array) |
| This function fills the given array with gas concentrations from the external aerosol code. More... | |
| void | cs_atmo_aerosol_time_advance (void) |
| This function computes a time step of gaseous chemistry and aerosols dynamic using the external aerosol code. More... | |
| void | cs_atmo_aerosol_nuclea (cs_real_t *nc, const cs_real_t *rom, const cs_real_t *qldia, const cs_real_t *pphy, const cs_real_t *refrad) |
| Compute aerosol cloud droplets nucleation when using the atmospheric humid model using a microphysical model. More... | |
| void | cs_atmo_read_aerosol (void) |
| Reads initial aerosol concentration and number. More... | |
| void | cs_atmo_read_chemistry_profile (int mode) |
| Reads the chemistry profile data for the atmospheric chemistry. More... | |
| void | cs_atmo_set_chem_conc_file_name (const char *file_name) |
| This function set the file name of the chemistry file. More... | |
| void | cs_atmo_set_aero_conc_file_name (const char *file_name) |
| This function set the file name of the aerosol file. More... | |
| void | cs_atmo_init_chemistry (void) |
| Initialize chemistry array. More... | |
| void | cs_atmo_chemistry_set_spack_file_name (const char *file_name) |
| This function set the file name of the SPACK file. More... | |
| void | cs_atmo_chemistry_set_aerosol_file_name (const char *file_name) |
| This function sets the file name to initialize the aerosol library. More... | |
| void | cs_atmo_declare_chem_from_spack (void) |
| This function declares additional transported variables for atmospheric module for the chemistry defined from SPACK. More... | |
| void | cs_atmo_chemistry_initialization_deactivate (void) |
| Deactivate chemistry initialization procedure. More... | |
| int | cs_atmo_chemistry_need_initialization (void) |
| Check if the chemistry module needs initialization. More... | |
| void | cs_atmo_chemistry_initialize_reacnum (void) |
| Initialize chemistry cell kinetic rates arrays. More... | |
| void | cs_atmo_chemistry_finalize (void) |
| Finalize atmospheric chemistry structures. More... | |
| void | cs_atmo_chemistry_log_setup (void) |
| Print the atmospheric chemistry options to setup.log. More... | |
| void | cs_atmo_aerosol_log_setup (void) |
| Print the atmospheric aerosols options to setup.log. More... | |
| void | cs_atmo_chem_initialize_dlconc0 (void) |
| initialize gaseous and particulate concentrations and aerosol number More... | |
| void | cs_atmo_chemistry_initialize_conc_profiles (void) |
| initialize (allocate) chemistry concentrations profiles More... | |
| void | cs_atmo_chem_exp_source_terms (int f_id, cs_real_t st_exp[]) |
| Computes the explicit chemical source term for atmospheric chemistry in case of a semi-coupled resolution. More... | |
| void | cs_atmo_compute_gaseous_chemistry (void) |
| Calls the rosenbrock resolution for atmospheric chemistry. More... | |
| void cs_atmo_aerosol_finalize | ( | void | ) |
This function finalizes the external aerosol code.
| void cs_atmo_aerosol_get_gas | ( | cs_real_t * | array | ) |
This function fills the given array with gas concentrations from the external aerosol code.
| [out] | array | gas concentrations |
| void cs_atmo_aerosol_initialize | ( | void | ) |
This function initializes the external aerosol code.
| void cs_atmo_aerosol_log_setup | ( | void | ) |
Print the atmospheric aerosols options to setup.log.
| void cs_atmo_aerosol_nuclea | ( | cs_real_t * | nc, |
| const cs_real_t * | rom, | ||
| const cs_real_t * | qldia, | ||
| const cs_real_t * | pphy, | ||
| const cs_real_t * | refrad | ||
| ) |
Compute aerosol cloud droplets nucleation when using the atmospheric humid model using a microphysical model.
It is taken into account as an additional step split from advection-diffusion equation, hence the droplet number is first clipped if necessary.
| [out] | nc | droplet number (scalar) in 1/cm**3 |
| [in] | rom | density of air in kg/m**3 |
| [in] | qldia | mass fraction of liquid water in kg/kg |
| [in] | pphy | true pressure in pascals |
| [in] | refrad | radiative cooling |
| void cs_atmo_aerosol_time_advance | ( | void | ) |
This function computes a time step of gaseous chemistry and aerosols dynamic using the external aerosol code.
| void cs_atmo_chem_exp_source_terms | ( | int | f_id, |
| cs_real_t | st_exp[] | ||
| ) |
Computes the explicit chemical source term for atmospheric chemistry in case of a semi-coupled resolution.
| [in] | f_id | field id |
| [out] | st_exp | explicit part of the source term |
| void cs_atmo_chem_initialize_dlconc0 | ( | void | ) |
initialize gaseous and particulate concentrations and aerosol number
| void cs_atmo_chemistry_finalize | ( | void | ) |
Finalize atmospheric chemistry structures.
| void cs_atmo_chemistry_initialization_deactivate | ( | void | ) |
Deactivate chemistry initialization procedure.
| void cs_atmo_chemistry_initialize_conc_profiles | ( | void | ) |
initialize (allocate) chemistry concentrations profiles
| void cs_atmo_chemistry_initialize_reacnum | ( | void | ) |
Initialize chemistry cell kinetic rates arrays.
| void cs_atmo_chemistry_log_setup | ( | void | ) |
Print the atmospheric chemistry options to setup.log.
| int cs_atmo_chemistry_need_initialization | ( | void | ) |
Check if the chemistry module needs initialization.
| void cs_atmo_chemistry_set_aerosol_file_name | ( | const char * | file_name | ) |
This function sets the file name to initialize the aerosol library.
| [in] | file_name | name of the file. |
| void cs_atmo_chemistry_set_spack_file_name | ( | const char * | file_name | ) |
This function set the file name of the SPACK file.
| [in] | file_name | name of the file. |
| void cs_atmo_compute_gaseous_chemistry | ( | void | ) |
Calls the rosenbrock resolution for atmospheric chemistry.
| void cs_atmo_declare_chem_from_spack | ( | void | ) |
This function declares additional transported variables for atmospheric module for the chemistry defined from SPACK.
| void cs_atmo_init_chemistry | ( | void | ) |
Initialize chemistry array.
| void cs_atmo_read_aerosol | ( | void | ) |
Reads initial aerosol concentration and number.
| void cs_atmo_read_chemistry_profile | ( | int | mode | ) |
Reads the chemistry profile data for the atmospheric chemistry.
| [in] | mode | if false reading of dimensions only else reading of data |
| void cs_atmo_set_aero_conc_file_name | ( | const char * | file_name | ) |
This function set the file name of the aerosol file.
This function set the file name of the aerosol concentration file.
| [in] | file_name | name of the file. |
| void cs_atmo_set_chem_conc_file_name | ( | const char * | file_name | ) |
This function set the file name of the chemistry file.
| [in] | file_name | name of the file. |