#include "cs_base.h"Go to the source code of this file.
Data Structures | |
| struct | cs_atmo_option_t |
| struct | cs_atmo_constants_t |
| struct | cs_atmo_chemistry_t |
| struct | cs_atmo_imbrication_t |
Enumerations | |
| enum | cs_atmo_model_t { CS_ATMO_OFF = -1 , CS_ATMO_CONSTANT_DENSITY = 0 , CS_ATMO_DRY = 1 , CS_ATMO_HUMID = 2 } |
| enum | cs_atmo_nucleation_type_t { CS_ATMO_NUC_OFF = 0 , CS_ATMO_NUC_PRUPPACHER_KLETT = 1 , CS_ATMO_NUC_COHARD = 2 , CS_ATMO_NUC_ABDUL_RAZZAK = 3 } |
| enum | cs_atmo_aerosol_type_t { CS_ATMO_AEROSOL_OFF = 0 , CS_ATMO_AEROSOL_SSH = 1 } |
| enum | cs_atmo_universal_functions_t { CS_ATMO_UNIV_FN_CHENG = 0 , CS_ATMO_UNIV_FN_HOGSTROM = 1 , CS_ATMO_UNIV_FN_BUSINGER = 2 , CS_ATMO_UNIV_FN_HARTOGENSIS = 3 , CS_ATMO_UNIV_FN_CARL = 4 } |
| enum | cs_atmo_soil_cat_t { CS_ATMO_SOIL_5_CAT = 0 , CS_ATMO_SOIL_7_CAT = 1 , CS_ATMO_SOIL_23_CAT = 2 } |
| enum | cs_atmo_soil_meb_model_t { CS_ATMO_SOIL_GENUINE = 0 , CS_ATMO_SOIL_PHOTOVOLTAICS = 1 , CS_ATMO_SOIL_VEGETATION = 2 } |
Functions | |
| void | cs_atmo_phyvar_update (void) |
| void | cs_atmo_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. | |
| void | cs_atmo_fields_init0 (void) |
| void | cs_atmo_bcond (void) |
| void | cs_atmo_init_chemistry (void) |
| Initialize chemistry array. | |
| void | cs_atmo_init_meteo_profiles (void) |
| Initialize meteo profiles if no meteo file is given. | |
| void | cs_atmo_compute_meteo_profiles (void) |
| Compute meteo profiles if no meteo file is given. | |
| void | cs_atmo_z_ground_compute (void) |
| This function computes the ground elevation. | |
| void | cs_atmo_hydrostatic_profiles_compute (void) |
| Compute hydrostatic profiles of density and pressure. | |
| cs_real_t | cs_mo_phim (cs_real_t z, cs_real_t dlmo) |
| Universal function phim for neutral, stable and unstable. | |
| cs_real_t | cs_mo_phih (cs_real_t z, cs_real_t dlmo) |
| Universal function phih for neutral, stable and unstable. | |
| cs_real_t | cs_mo_psim (cs_real_t z, cs_real_t z0, cs_real_t dlmo) |
| Universal function psim for neutral, stable and unstable. | |
| cs_real_t | cs_mo_psih (cs_real_t z, cs_real_t z0, cs_real_t dlmo) |
| Universal function psih for neutral, stable and unstable. | |
| void | cs_mo_compute_from_thermal_diff (cs_real_t z, cs_real_t z0, cs_real_t du, cs_real_t dt, cs_real_t beta, cs_real_t gredu, cs_real_t *dlmo, cs_real_t *ustar) |
| Compute LMO, friction velocity ustar, friction temperature tstar from a thermal difference using Monin Obukhov. | |
| void | cs_mo_compute_from_thermal_flux (cs_real_t z, cs_real_t z0, cs_real_t du, cs_real_t flux, cs_real_t beta, cs_real_t gredu, cs_real_t *dlmo, cs_real_t *ustar) |
| Compute LMO, friction velocity ustar, friction temperature tstar from a thermal flux using Monin Obukhov. | |
| void | cs_atmo_set_meteo_file_name (const char *file_name) |
| This function set the file name of the meteo file. | |
| void | cs_atmo_set_chem_conc_file_name (const char *file_name) |
| This function set the file name of the chemistry concentration file. | |
| void | cs_atmo_set_aero_conc_file_name (const char *file_name) |
| This function set the file name of the aerosol concentration file. | |
| void | cs_atmo_chemistry_set_spack_file_name (const char *file_name) |
| This function set the file name of the SPACK file. | |
| void | cs_atmo_chemistry_set_aerosol_file_name (const char *file_name) |
| This function sets the file name to initialize the aerosol library. | |
| void | cs_atmo_declare_chem_from_spack (void) |
| This function declare additional transported variables for atmospheric module for the chemistry defined from SPACK. | |
| void | cs_atmo_compute_solar_angles (cs_real_t xlat, cs_real_t xlong, cs_real_t jour, cs_real_t heurtu, int imer, cs_real_t *albe, cs_real_t *za, cs_real_t *muzero, cs_real_t *omega, cs_real_t *fo) |
| 1D Radiative scheme - Solar data + zenithal angle) | |
| void | cs_atmo_chemistry_initialization_deactivate (void) |
| Deactivate chemistry initialization procedure. | |
| int | cs_atmo_chemistry_need_initialization (void) |
| Check if the chemistry module needs initialization. | |
| void | cs_atmo_log_setup (void) |
| Print the atmospheric module options to setup.log. | |
| void | cs_atmo_chemistry_log_setup (void) |
| Print the atmospheric chemistry options to setup.log. | |
| void | cs_atmo_aerosol_log_setup (void) |
| Print the atmospheric aerosols options to setup.log. | |
| void | cs_atmo_finalize (void) |
| Deallocate arrays for atmo module. | |
| void | cs_user_soil_model (void) |
| Allow call of cs_user fonctions during soil model computation. | |
| void | cs_soil_model (void) |
| Compute soil and interface values using Deardorff force restore method. | |
Variables | |
| cs_atmo_option_t * | cs_glob_atmo_option |
| cs_atmo_constants_t * | cs_glob_atmo_constants |
| cs_atmo_chemistry_t * | cs_glob_atmo_chemistry |
| cs_atmo_imbrication_t * | cs_glob_atmo_imbrication |
| enum cs_atmo_model_t |
| enum cs_atmo_soil_cat_t |
| void cs_atmo_aerosol_log_setup | ( | void | ) |
Print the atmospheric aerosols options to setup.log.
| void cs_atmo_bcond | ( | void | ) |
| void cs_atmo_chemistry_initialization_deactivate | ( | void | ) |
Deactivate chemistry initialization procedure.
| 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_meteo_profiles | ( | void | ) |
Compute meteo profiles if no meteo file is given.
| void cs_atmo_compute_solar_angles | ( | cs_real_t | latitude, |
| cs_real_t | longitude, | ||
| cs_real_t | squant, | ||
| cs_real_t | utc, | ||
| int | sea_id, | ||
| cs_real_t * | albedo, | ||
| cs_real_t * | za, | ||
| cs_real_t * | muzero, | ||
| cs_real_t * | omega, | ||
| cs_real_t * | fo ) |
1D Radiative scheme - Solar data + zenithal angle)
Compute:
| [in] | xlat | latitude |
| [in] | xlong | longitude |
| [in] | jour | day in the year |
| [in] | heurtu | Universal time (hour) |
| [in] | imer | sea index |
| [out] | albe | albedo |
| [out] | za | zenithal angle |
| [out] | muzero | cosin of zenithal angle (+ correction due to Earth curvature) |
| [out] | omega | solar azimut angle |
| [out] | fo | solar constant |
| [in] | latitude | latitude |
| [in] | longitude | longitude |
| [in] | squant | start day in the year |
| [in] | utc | Universal time (hour) |
| [in] | sea_id | sea index |
| [out] | albedo | albedo |
| [out] | za | zenithal angle |
| [out] | muzero | cosin of zenithal angle |
| [out] | omega | solar azimut angle |
| [out] | fo | solar constant |
| void cs_atmo_declare_chem_from_spack | ( | void | ) |
This function declare additional transported variables for atmospheric module for the chemistry defined from SPACK.
This function declare additional transported variables for atmospheric module for the chemistry defined from SPACK.
| void cs_atmo_fields_init0 | ( | void | ) |
| void cs_atmo_finalize | ( | void | ) |
Deallocate arrays for atmo module.
| void cs_atmo_hydrostatic_profiles_compute | ( | void | ) |
Compute hydrostatic profiles of density and pressure.
This function solves the following transport equation on 
![\[ \divs \left( \grad \varia \right)
= \divs \left( \dfrac{\vect{g}}{c_p \theta} \right)
\]](form_81.png)
where 

The boundary conditions on 
![\[ \varia = \left(\dfrac{P_{sea}}{p_s}\right)^{R/C_p} \textrm{on the ground}
\]](form_83.png)
and Neumann elsewhere.
This function solves the following transport equation on 
![\[ \divs \left( \grad \varia \right)
= \divs \left( \dfrac{\vect{g}}{c_p \theta} \right)
\]](form_81.png)
where 

The boundary conditions on 
![\[ \varia = \left(\dfrac{P_{sea}}{p_s}\right)^{R/C_p} \textrm{on the ground}
\]](form_83.png)
and Neumann elsewhere.
| void cs_atmo_init_chemistry | ( | void | ) |
Initialize chemistry array.
| void cs_atmo_init_meteo_profiles | ( | void | ) |
Initialize meteo profiles if no meteo file is given.
| void cs_atmo_log_setup | ( | void | ) |
Print the atmospheric module options to setup.log.
| void cs_atmo_phyvar_update | ( | void | ) |
| void cs_atmo_set_aero_conc_file_name | ( | const char * | file_name | ) |
This function set the file name of the aerosol concentration file.
| [in] | file_name | name of the 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 concentration file.
| [in] | file_name | name of the file. |
This function set the file name of the chemistry concentration file.
| [in] | file_name | name of the file. |
| void cs_atmo_set_meteo_file_name | ( | const char * | file_name | ) |
This function set the file name of the meteo file.
| [in] | file_name | name of the file. |
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_atmo_z_ground_compute | ( | void | ) |
This function computes the ground elevation.
This function solves the following transport equation on 
![\[ \dfrac{\partial \varia}{\partial t} + \divs \left( \varia \vect{g} \right)
- \divs \left( \vect{V} \right) \varia = 0
\]](form_77.png)
where 
The boundary conditions on 
![\[ \varia = z \textrm{ on walls}
\]](form_79.png)
![\[ \dfrac{\partial \varia}{\partial n} = 0 \textrm{ elsewhere}
\]](form_80.png)
Remarks:
This function computes the ground elevation.
This function solves the following transport equation on 
![\[ \dfrac{\partial \varia}{\partial t} + \divs \left( \varia \vect{g} \right)
- \divs \left( \vect{V} \right) \varia = 0
\]](form_77.png)
where 
The boundary conditions on 
![\[ \varia = z \textrm{ on walls}
\]](form_79.png)
![\[ \dfrac{\partial \varia}{\partial n} = 0 \textrm{ elsewhere}
\]](form_80.png)
Remarks:
| void cs_mo_compute_from_thermal_diff | ( | cs_real_t | z, |
| cs_real_t | z0, | ||
| cs_real_t | du, | ||
| cs_real_t | dt, | ||
| cs_real_t | beta, | ||
| cs_real_t | gredu, | ||
| cs_real_t * | dlmo, | ||
| cs_real_t * | ustar ) |
Compute LMO, friction velocity ustar, friction temperature tstar from a thermal difference using Monin Obukhov.
| [in] | z | altitude |
| [in] | z0 | |
| [in] | du | velocity difference |
| [in] | dt | thermal difference |
| [in] | beta | thermal expansion |
| [in] | gredu | |
| [out] | dlmo | Inverse Monin Obukhov length |
| [out] | ustar | friction velocity |
| void cs_mo_compute_from_thermal_flux | ( | cs_real_t | z, |
| cs_real_t | z0, | ||
| cs_real_t | du, | ||
| cs_real_t | flux, | ||
| cs_real_t | beta, | ||
| cs_real_t | gredu, | ||
| cs_real_t * | dlmo, | ||
| cs_real_t * | ustar ) |
Compute LMO, friction velocity ustar, friction temperature tstar from a thermal flux using Monin Obukhov.
| [in] | z | altitude |
| [in] | z0 | |
| [in] | du | velocity difference |
| [in] | flux | thermal flux |
| [in] | beta | thermal expansion |
| [in] | gredu | |
| [out] | dlmo | Inverse Monin Obukhov length |
| [out] | ustar | friction velocity |
Universal function phih for neutral, stable and unstable.
| [in] | z | altitude |
| [in] | dlmo | Inverse Monin Obukhov length |
Universal function phim for neutral, stable and unstable.
| [in] | z | altitude |
| [in] | dlmo | Inverse Monin Obukhov length |
Universal function psih for neutral, stable and unstable.
| [in] | z | altitude |
| [in] | z0 | roughness |
| [in] | dlmo | Inverse Monin Obukhov length |
Universal function psim for neutral, stable and unstable.
| [in] | z | altitude |
| [in] | z0 | roughness |
| [in] | dlmo | Inverse Monin Obukhov length |
| void cs_soil_model | ( | void | ) |
Compute soil and interface values using Deardorff force restore method.
Compute soil and interface values using Deardorff force restore method.
| void cs_user_soil_model | ( | void | ) |
Allow call of cs_user fonctions during soil model computation.
|
extern |
|
extern |
|
extern |
|
extern |