#include "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_mem.h"
#include "bft_error.h"
#include "bft_printf.h"
#include "cs_air_props.h"
#include "cs_array.h"
#include "cs_atmo_profile_std.h"
#include "cs_base.h"
#include "cs_boundary_conditions.h"
#include "cs_boundary_conditions_set_coeffs.h"
#include "cs_boundary_zone.h"
#include "cs_domain.h"
#include "cs_field.h"
#include "cs_field_default.h"
#include "cs_field_pointer.h"
#include "cs_halo.h"
#include "cs_log.h"
#include "cs_math.h"
#include "cs_mesh.h"
#include "cs_mesh_location.h"
#include "cs_mesh_quantities.h"
#include "cs_measures_util.h"
#include "cs_parall.h"
#include "cs_equation_iterative_solve.h"
#include "cs_physical_constants.h"
#include "cs_physical_model.h"
#include "cs_post.h"
#include "cs_prototypes.h"
#include "cs_rad_transfer.h"
#include "cs_thermal_model.h"
#include "cs_turbulence_bc.h"
#include "cs_turbulence_model.h"
#include "cs_volume_zone.h"
#include "cs_balance.h"
#include "cs_blas.h"
#include "cs_convection_diffusion.h"
#include "cs_parameters.h"
#include "cs_porous_model.h"
#include "cs_timer.h"
#include "cs_matrix_building.h"
#include "cs_sles.h"
#include "cs_sles_default.h"
#include "cs_face_viscosity.h"
#include "cs_divergence.h"
#include "cs_restart.h"
#include "cs_restart_default.h"
#include "cs_velocity_pressure.h"
#include "cs_intprf.h"
#include "cs_atmo.h"
#include "cs_atmo_aerosol.h"
Functions | |
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. More... | |
void | cs_atmo_fields_init0 (void) |
void | cs_atmo_bcond (void) |
void | cs_soil_model (void) |
Deardorff force restore model. More... | |
void | cs_atmo_init_meteo_profiles (void) |
Initialize meteo profiles if no meteo file is given. More... | |
void | cs_atmo_compute_meteo_profiles (void) |
Compute meteo profiles if no meteo file is given. More... | |
void | cs_atmo_z_ground_compute (void) |
Compute the ground elevation. More... | |
void | cs_atmo_hydrostatic_profiles_compute (void) |
Compute hydrostatic profiles of density and pressure. More... | |
void | cs_atmo_set_meteo_file_name (const char *file_name) |
This function set the file name of the meteo file. 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_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) 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_log_setup (void) |
Print the atmospheric module options to setup.log. 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_finalize (void) |
Deallocate arrays for atmo module. More... | |
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] | 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 declares 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 :
where is the gravity field and
is the potential temperature.
The boundary conditions on read:
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_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.
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 | ) |
Compute the ground elevation.
This function computes the ground elevation.
This function solves the following transport equation on :
where is the gravity field
The boundary conditions on read:
Remarks:
void cs_soil_model | ( | void | ) |
Deardorff force restore model.
Compute soil and interface values using Deardorff force restore method.