1#ifndef __CS_ATMO_CHEMISTRY_H__
2#define __CS_ATMO_CHEMISTRY_H__
void cs_atmo_declare_chem_from_spack(void)
This function declares additional transported variables for atmospheric module for the chemistry defi...
Definition: cs_atmo_chemistry.cpp:1707
void cs_atmo_aerosol_time_advance(void)
This function computes a time step of gaseous chemistry and aerosols dynamic using the external aeros...
Definition: cs_atmo_chemistry.cpp:697
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 resolu...
Definition: cs_atmo_chemistry.cpp:2039
void cs_atmo_aerosol_get_gas(cs_real_t *array)
This function fills the given array with gas concentrations from the external aerosol code.
Definition: cs_atmo_chemistry.cpp:681
void cs_atmo_aerosol_initialize(void)
This function initializes the external aerosol code.
Definition: cs_atmo_chemistry.cpp:646
int cs_atmo_chemistry_need_initialization(void)
Check if the chemistry module needs initialization.
Definition: cs_atmo_chemistry.cpp:1814
void cs_atmo_aerosol_log_setup(void)
Print the atmospheric aerosols options to setup.log.
Definition: cs_atmo_chemistry.cpp:1937
void cs_atmo_chemistry_initialization_deactivate(void)
Deactivate chemistry initialization procedure.
Definition: cs_atmo_chemistry.cpp:1800
void cs_atmo_set_aero_conc_file_name(const char *file_name)
This function set the file name of the aerosol concentration file.
Definition: cs_atmo_chemistry.cpp:1382
void cs_atmo_read_aerosol(void)
Reads initial aerosol concentration and number.
Definition: cs_atmo_chemistry.cpp:1033
void cs_atmo_chemistry_set_spack_file_name(const char *file_name)
This function set the file name of the SPACK file.
Definition: cs_atmo_chemistry.cpp:1658
cs_atmo_chemistry_t * cs_glob_atmo_chemistry
void cs_atmo_chemistry_finalize(void)
Finalize atmospheric chemistry structures.
Definition: cs_atmo_chemistry.cpp:1843
void cs_atmo_read_chemistry_profile(int mode)
Reads the chemistry profile data for the atmospheric chemistry.
Definition: cs_atmo_chemistry.cpp:1119
void cs_atmo_chemistry_initialize_reacnum(void)
Initialize chemistry cell kinetic rates arrays.
Definition: cs_atmo_chemistry.cpp:1826
cs_atmo_aerosol_type_t
Definition: cs_atmo_chemistry.h:52
@ CS_ATMO_AEROSOL_SSH
Definition: cs_atmo_chemistry.h:55
@ CS_ATMO_AEROSOL_OFF
Definition: cs_atmo_chemistry.h:54
void cs_atmo_chem_initialize_dlconc0(void)
initialize gaseous and particulate concentrations and aerosol number
Definition: cs_atmo_chemistry.cpp:1983
void cs_atmo_set_chem_conc_file_name(const char *file_name)
This function set the file name of the chemistry file.
Definition: cs_atmo_chemistry.cpp:1353
void cs_atmo_chemistry_log_setup(void)
Print the atmospheric chemistry options to setup.log.
Definition: cs_atmo_chemistry.cpp:1872
void cs_atmo_chemistry_set_aerosol_file_name(const char *file_name)
This function sets the file name to initialize the aerosol library.
Definition: cs_atmo_chemistry.cpp:1683
void cs_atmo_chemistry_initialize_conc_profiles(void)
initialize (allocate) chemistry concentrations profiles
Definition: cs_atmo_chemistry.cpp:2002
void cs_atmo_init_chemistry(void)
Initialize chemistry array.
Definition: cs_atmo_chemistry.cpp:1412
void cs_atmo_aerosol_finalize(void)
This function finalizes the external aerosol code.
Definition: cs_atmo_chemistry.cpp:661
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 microphysica...
Definition: cs_atmo_chemistry.cpp:722
void cs_atmo_compute_gaseous_chemistry(void)
Calls the rosenbrock resolution for atmospheric chemistry.
Definition: cs_atmo_chemistry.cpp:2134
#define BEGIN_C_DECLS
Definition: cs_defs.h:554
double cs_real_t
Floating-point value.
Definition: cs_defs.h:357
#define END_C_DECLS
Definition: cs_defs.h:555
Definition: cs_atmo_chemistry.h:63
bool init_gas_with_lib
Definition: cs_atmo_chemistry.h:90
int model
Definition: cs_atmo_chemistry.h:72
cs_real_t * molar_mass
Definition: cs_atmo_chemistry.h:101
cs_real_t * dlconc0
Definition: cs_atmo_chemistry.h:109
int n_species
Definition: cs_atmo_chemistry.h:73
cs_atmo_aerosol_type_t aerosol_model
Definition: cs_atmo_chemistry.h:85
char * aero_file_name
Definition: cs_atmo_chemistry.h:111
cs_real_t * x_conc_profiles
Definition: cs_atmo_chemistry.h:136
bool chemistry_with_photolysis
Definition: cs_atmo_chemistry.h:80
bool frozen_gas_chem
Definition: cs_atmo_chemistry.h:88
int * species_to_field_id
Definition: cs_atmo_chemistry.h:98
cs_real_t * t_conc_profiles
Definition: cs_atmo_chemistry.h:134
cs_real_t * y_conc_profiles
Definition: cs_atmo_chemistry.h:138
int n_species_profiles
Definition: cs_atmo_chemistry.h:127
int n_reactions
Definition: cs_atmo_chemistry.h:74
int * species_profiles_to_field_id
Definition: cs_atmo_chemistry.h:99
cs_real_t * conc_profiles
Definition: cs_atmo_chemistry.h:130
bool init_aero_with_lib
Definition: cs_atmo_chemistry.h:92
char * aero_conc_file_name
Definition: cs_atmo_chemistry.h:117
cs_real_t * z_conc_profiles
Definition: cs_atmo_chemistry.h:132
char * chem_conc_file_name
Definition: cs_atmo_chemistry.h:114
int nt_step_profiles
Definition: cs_atmo_chemistry.h:122
int n_layer
Definition: cs_atmo_chemistry.h:94
int n_z_profiles
Definition: cs_atmo_chemistry.h:124
int chemistry_sep_mode
Definition: cs_atmo_chemistry.h:77
int * chempoint
Definition: cs_atmo_chemistry.h:102
int n_size
Definition: cs_atmo_chemistry.h:96
cs_real_t * conv_factor_jac
Definition: cs_atmo_chemistry.h:104
char * spack_file_name
Definition: cs_atmo_chemistry.h:97
cs_real_t * reacnum
Definition: cs_atmo_chemistry.h:106
cs_real_t dt_chemistry_max
Definition: cs_atmo_chemistry.h:140