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:1291
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:596
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:1623
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:580
void cs_atmo_aerosol_initialize(void)
This function initializes the external aerosol code.
Definition: cs_atmo_chemistry.cpp:545
int cs_atmo_chemistry_need_initialization(void)
Check if the chemistry module needs initialization.
Definition: cs_atmo_chemistry.cpp:1398
void cs_atmo_aerosol_log_setup(void)
Print the atmospheric aerosols options to setup.log.
Definition: cs_atmo_chemistry.cpp:1521
void cs_atmo_chemistry_initialization_deactivate(void)
Deactivate chemistry initialization procedure.
Definition: cs_atmo_chemistry.cpp:1384
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:960
void cs_atmo_read_aerosol(void)
Reads initial aerosol concentration and number.
Definition: cs_atmo_chemistry.cpp:611
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:1242
cs_atmo_chemistry_t * cs_glob_atmo_chemistry
void cs_atmo_chemistry_finalize(void)
Finalize atmospheric chemistry structures.
Definition: cs_atmo_chemistry.cpp:1427
void cs_atmo_read_chemistry_profile(int mode)
Reads the chemistry profile data for the atmospheric chemistry.
Definition: cs_atmo_chemistry.cpp:697
void cs_atmo_chemistry_initialize_reacnum(void)
Initialize chemistry cell kinetic rates arrays.
Definition: cs_atmo_chemistry.cpp:1410
cs_atmo_aerosol_type_t
Definition: cs_atmo_chemistry.h:48
@ CS_ATMO_AEROSOL_SSH
Definition: cs_atmo_chemistry.h:51
@ CS_ATMO_AEROSOL_OFF
Definition: cs_atmo_chemistry.h:50
void cs_atmo_chem_initialize_dlconc0(void)
initialize gaseous and particulate concentrations and aerosol number
Definition: cs_atmo_chemistry.cpp:1567
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:931
void cs_atmo_chemistry_log_setup(void)
Print the atmospheric chemistry options to setup.log.
Definition: cs_atmo_chemistry.cpp:1456
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:1267
void cs_atmo_chemistry_initialize_conc_profiles(void)
initialize (allocate) chemistry concentrations profiles
Definition: cs_atmo_chemistry.cpp:1586
void cs_atmo_init_chemistry(void)
Initialize chemistry array.
Definition: cs_atmo_chemistry.cpp:990
void cs_atmo_aerosol_finalize(void)
This function finalizes the external aerosol code.
Definition: cs_atmo_chemistry.cpp:560
void cs_atmo_compute_gaseous_chemistry(void)
Calls the rosenbrock resolution for atmospheric chemistry.
Definition: cs_atmo_chemistry.cpp:1724
double cs_real_t
Floating-point value.
Definition: cs_defs.h:332
Definition: cs_atmo_chemistry.h:59
bool init_gas_with_lib
Definition: cs_atmo_chemistry.h:86
int model
Definition: cs_atmo_chemistry.h:68
cs_real_t * molar_mass
Definition: cs_atmo_chemistry.h:97
cs_real_t * dlconc0
Definition: cs_atmo_chemistry.h:105
int n_species
Definition: cs_atmo_chemistry.h:69
cs_atmo_aerosol_type_t aerosol_model
Definition: cs_atmo_chemistry.h:81
char * aero_file_name
Definition: cs_atmo_chemistry.h:107
cs_real_t * x_conc_profiles
Definition: cs_atmo_chemistry.h:132
bool chemistry_with_photolysis
Definition: cs_atmo_chemistry.h:76
bool frozen_gas_chem
Definition: cs_atmo_chemistry.h:84
int * species_to_field_id
Definition: cs_atmo_chemistry.h:94
cs_real_t * t_conc_profiles
Definition: cs_atmo_chemistry.h:130
cs_real_t * y_conc_profiles
Definition: cs_atmo_chemistry.h:134
int n_species_profiles
Definition: cs_atmo_chemistry.h:123
int n_reactions
Definition: cs_atmo_chemistry.h:70
int * species_profiles_to_field_id
Definition: cs_atmo_chemistry.h:95
cs_real_t * conc_profiles
Definition: cs_atmo_chemistry.h:126
bool init_aero_with_lib
Definition: cs_atmo_chemistry.h:88
char * aero_conc_file_name
Definition: cs_atmo_chemistry.h:113
cs_real_t * z_conc_profiles
Definition: cs_atmo_chemistry.h:128
char * chem_conc_file_name
Definition: cs_atmo_chemistry.h:110
int nt_step_profiles
Definition: cs_atmo_chemistry.h:118
int n_layer
Definition: cs_atmo_chemistry.h:90
int n_z_profiles
Definition: cs_atmo_chemistry.h:120
int chemistry_sep_mode
Definition: cs_atmo_chemistry.h:73
int * chempoint
Definition: cs_atmo_chemistry.h:98
int n_size
Definition: cs_atmo_chemistry.h:92
cs_real_t * conv_factor_jac
Definition: cs_atmo_chemistry.h:100
char * spack_file_name
Definition: cs_atmo_chemistry.h:93
cs_real_t * reacnum
Definition: cs_atmo_chemistry.h:102
cs_real_t dt_chemistry_max
Definition: cs_atmo_chemistry.h:136