cs_atmo_model_t
Definition: cs_atmo.h:52
@ CS_ATMO_DRY
Definition: cs_atmo.h:56
@ CS_ATMO_CONSTANT_DENSITY
Definition: cs_atmo.h:55
@ CS_ATMO_OFF
Definition: cs_atmo.h:54
@ CS_ATMO_HUMID
Definition: cs_atmo.h:57
void cs_atmo_declare_chem_from_spack(void)
This function declare additional transported variables for atmospheric module for the chemistry defin...
Definition: cs_atmo.cpp:5362
void cs_atmo_phyvar_update(void)
cs_atmo_soil_cat_t
Definition: cs_atmo.h:103
@ CS_ATMO_SOIL_23_CAT
Definition: cs_atmo.h:112
@ CS_ATMO_SOIL_5_CAT
Definition: cs_atmo.h:106
@ CS_ATMO_SOIL_7_CAT
Definition: cs_atmo.h:109
void cs_atmo_log_setup(void)
Print the atmospheric module options to setup.log.
Definition: cs_atmo.cpp:5604
cs_atmo_soil_meb_model_t
Definition: cs_atmo.h:120
@ CS_ATMO_SOIL_GENUINE
Definition: cs_atmo.h:123
@ CS_ATMO_SOIL_VEGETATION
Definition: cs_atmo.h:127
@ CS_ATMO_SOIL_PHOTOVOLTAICS
Definition: cs_atmo.h:125
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.
cs_atmo_nucleation_type_t
Definition: cs_atmo.h:65
@ CS_ATMO_NUC_OFF
Definition: cs_atmo.h:67
@ CS_ATMO_NUC_ABDUL_RAZZAK
Definition: cs_atmo.h:70
@ CS_ATMO_NUC_COHARD
Definition: cs_atmo.h:69
@ CS_ATMO_NUC_PRUPPACHER_KLETT
Definition: cs_atmo.h:68
int cs_atmo_chemistry_need_initialization(void)
Check if the chemistry module needs initialization.
Definition: cs_atmo.cpp:5593
void cs_atmo_aerosol_log_setup(void)
Print the atmospheric aerosols options to setup.log.
Definition: cs_atmo.cpp:5790
void cs_atmo_chemistry_initialization_deactivate(void)
Deactivate chemistry initialization procedure.
Definition: cs_atmo.cpp:5579
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.
void cs_atmo_fields_init0(void)
Definition: cs_atmo.cpp:2688
void cs_atmo_z_ground_compute(void)
This function computes the ground elevation.
Definition: cs_atmo.cpp:4518
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.cpp:5022
cs_atmo_universal_functions_t
Definition: cs_atmo.h:89
@ CS_ATMO_UNIV_FN_BUSINGER
Definition: cs_atmo.h:93
@ CS_ATMO_UNIV_FN_CARL
Definition: cs_atmo.h:95
@ CS_ATMO_UNIV_FN_CHENG
Definition: cs_atmo.h:91
@ CS_ATMO_UNIV_FN_HARTOGENSIS
Definition: cs_atmo.h:94
@ CS_ATMO_UNIV_FN_HOGSTROM
Definition: cs_atmo.h:92
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 Moni...
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.cpp:5313
cs_atmo_option_t * cs_glob_atmo_option
cs_atmo_chemistry_t * cs_glob_atmo_chemistry
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 Obuk...
void cs_atmo_finalize(void)
Deallocate arrays for atmo module.
Definition: cs_atmo.cpp:5836
cs_real_t cs_mo_phim(cs_real_t z, cs_real_t dlmo)
Universal function phim for neutral, stable and unstable.
cs_atmo_aerosol_type_t
Definition: cs_atmo.h:78
@ CS_ATMO_AEROSOL_SSH
Definition: cs_atmo.h:81
@ CS_ATMO_AEROSOL_OFF
Definition: cs_atmo.h:80
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)
Definition: cs_atmo.cpp:5475
void cs_soil_model(void)
Compute soil and interface values using Deardorff force restore method.
Definition: cs_atmo.cpp:3593
void cs_atmo_bcond(void)
Definition: cs_atmo.cpp:2945
void cs_atmo_set_chem_conc_file_name(const char *file_name)
This function set the file name of the chemistry concentration file.
Definition: cs_atmo.cpp:4993
void cs_atmo_chemistry_log_setup(void)
Print the atmospheric chemistry options to setup.log.
Definition: cs_atmo.cpp:5725
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.cpp:5338
void cs_atmo_init_meteo_profiles(void)
Initialize meteo profiles if no meteo file is given.
Definition: cs_atmo.cpp:3957
void cs_user_soil_model(void)
Allow call of cs_user fonctions during soil model computation.
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 t...
Definition: cs_atmo.cpp:2528
void cs_atmo_init_chemistry(void)
Initialize chemistry array.
Definition: cs_atmo.cpp:5052
cs_atmo_imbrication_t * cs_glob_atmo_imbrication
void cs_atmo_compute_meteo_profiles(void)
Compute meteo profiles if no meteo file is given.
Definition: cs_atmo.cpp:4259
void cs_atmo_hydrostatic_profiles_compute(void)
Compute hydrostatic profiles of density and pressure.
Definition: cs_atmo.cpp:4726
void cs_atmo_set_meteo_file_name(const char *file_name)
This function set the file name of the meteo file.
Definition: cs_atmo.cpp:4964
cs_atmo_constants_t * cs_glob_atmo_constants
cs_real_t cs_mo_phih(cs_real_t z, cs_real_t dlmo)
Universal function phih for neutral, stable and unstable.
#define BEGIN_C_DECLS
Definition: cs_defs.h:542
double cs_real_t
Floating-point value.
Definition: cs_defs.h:342
cs_real_t cs_real_3_t[3]
vector of 3 floating-point values
Definition: cs_defs.h:359
#define END_C_DECLS
Definition: cs_defs.h:543
@ dt
Definition: cs_field_pointer.h:65
real(c_double), pointer, save xlat
latitude of the domain origin
Definition: atincl.f90:185
Definition: cs_atmo.h:509
bool init_gas_with_lib
Definition: cs_atmo.h:536
int model
Definition: cs_atmo.h:518
int * species_to_scalar_id
Definition: cs_atmo.h:544
cs_real_t * molar_mass
Definition: cs_atmo.h:547
cs_real_t * dlconc0
Definition: cs_atmo.h:553
int n_species
Definition: cs_atmo.h:519
cs_atmo_aerosol_type_t aerosol_model
Definition: cs_atmo.h:531
char * aero_file_name
Definition: cs_atmo.h:555
cs_real_t * x_conc_profiles
Definition: cs_atmo.h:580
bool chemistry_with_photolysis
Definition: cs_atmo.h:526
bool frozen_gas_chem
Definition: cs_atmo.h:534
int * species_to_field_id
Definition: cs_atmo.h:545
cs_real_t * t_conc_profiles
Definition: cs_atmo.h:578
cs_real_t * y_conc_profiles
Definition: cs_atmo.h:582
int n_species_profiles
Definition: cs_atmo.h:571
int n_reactions
Definition: cs_atmo.h:520
cs_real_t * conc_profiles
Definition: cs_atmo.h:574
bool init_aero_with_lib
Definition: cs_atmo.h:538
char * aero_conc_file_name
Definition: cs_atmo.h:561
cs_real_t * z_conc_profiles
Definition: cs_atmo.h:576
char * chem_conc_file_name
Definition: cs_atmo.h:558
int nt_step_profiles
Definition: cs_atmo.h:566
int n_layer
Definition: cs_atmo.h:540
int n_z_profiles
Definition: cs_atmo.h:568
int chemistry_sep_mode
Definition: cs_atmo.h:523
int * chempoint
Definition: cs_atmo.h:548
int n_size
Definition: cs_atmo.h:542
char * spack_file_name
Definition: cs_atmo.h:543
cs_real_t * reacnum
Definition: cs_atmo.h:550
Definition: cs_atmo.h:498
cs_real_t ps
Definition: cs_atmo.h:501
Definition: cs_atmo.h:590
bool cressman_theta
Definition: cs_atmo.h:604
int id_tke
Definition: cs_atmo.h:615
int id_qw
Definition: cs_atmo.h:613
int id_v
Definition: cs_atmo.h:612
cs_real_t horizontal_influence_radius
Definition: cs_atmo.h:608
bool cressman_u
Definition: cs_atmo.h:598
bool cressman_eps
Definition: cs_atmo.h:603
int id_u
Definition: cs_atmo.h:611
bool cressman_v
Definition: cs_atmo.h:599
bool cressman_qw
Definition: cs_atmo.h:600
cs_real_t vertical_influence_radius
Definition: cs_atmo.h:607
int id_nc
Definition: cs_atmo.h:614
int id_eps
Definition: cs_atmo.h:616
bool imbrication_verbose
Definition: cs_atmo.h:594
bool cressman_nc
Definition: cs_atmo.h:601
bool imbrication_flag
Definition: cs_atmo.h:593
bool cressman_tke
Definition: cs_atmo.h:602
int id_theta
Definition: cs_atmo.h:617
Definition: cs_atmo.h:143
cs_real_t meteo_t1
Definition: cs_atmo.h:343
cs_real_t domain_orientation
Definition: cs_atmo.h:265
int nbmetm
Definition: cs_atmo.h:176
cs_real_t meteo_zi
Definition: cs_atmo.h:319
cs_real_t * z_dyn_met
Definition: cs_atmo.h:402
cs_real_t * rad_1d_zray
Definition: cs_atmo.h:223
int squant
Definition: cs_atmo.h:148
cs_real_t * soil_cat_r2
Definition: cs_atmo.h:480
cs_real_t * rho_met
Definition: cs_atmo.h:390
cs_real_t meteo_dlmo
Definition: cs_atmo.h:313
int qv_profile
Definition: cs_atmo.h:422
cs_real_t * hyd_p_met
Definition: cs_atmo.h:408
int infrared_1D_profile
Definition: cs_atmo.h:484
int distribution_model
Definition: cs_atmo.h:300
cs_real_t * rad_1d_dacinfe
Definition: cs_atmo.h:204
int hydrostatic_pressure_model
Definition: cs_atmo.h:418
int radiative_model_1d
Definition: cs_atmo.h:185
cs_real_t ssec
Definition: cs_atmo.h:154
cs_real_t * rad_1d_tauzq
Definition: cs_atmo.h:217
cs_real_t * rad_1d_qw0
Definition: cs_atmo.h:257
cs_real_t * rad_1d_aco2
Definition: cs_atmo.h:206
cs_real_t * rad_1d_ql
Definition: cs_atmo.h:238
cs_real_t * rad_1d_p0
Definition: cs_atmo.h:259
bool rupture
Definition: cs_atmo.h:447
int syear
Definition: cs_atmo.h:146
int sedimentation_model
Definition: cs_atmo.h:275
cs_real_t * soil_cat_thermal_inertia
Definition: cs_atmo.h:461
cs_real_t soil_w1_ini
Definition: cs_atmo.h:457
cs_atmo_soil_meb_model_t soil_meb_model
Definition: cs_atmo.h:437
cs_real_t * rad_1d_emissi0
Definition: cs_atmo.h:251
cs_real_t aod_h2o_tot
Definition: cs_atmo.h:490
bool accretion
Definition: cs_atmo.h:441
bool compute_z_ground
Definition: cs_atmo.h:268
cs_real_t * rad_1d_sol_div
Definition: cs_atmo.h:227
cs_real_t * rad_1d_ird
Definition: cs_atmo.h:231
int shour
Definition: cs_atmo.h:150
cs_real_t meteo_qwstar
Definition: cs_atmo.h:354
cs_real_t meteo_zt1
Definition: cs_atmo.h:325
bool autocollection_cloud
Definition: cs_atmo.h:443
cs_real_t meteo_t0
Definition: cs_atmo.h:341
int deposition_model
Definition: cs_atmo.h:277
cs_real_t * rad_1d_daco2
Definition: cs_atmo.h:209
int smin
Definition: cs_atmo.h:152
cs_real_t * rad_1d_acsups
Definition: cs_atmo.h:213
cs_real_t meteo_qw1
Definition: cs_atmo.h:356
bool autocollection_rain
Definition: cs_atmo.h:444
cs_real_t * rad_1d_qw
Definition: cs_atmo.h:236
int nbmaxt
Definition: cs_atmo.h:182
cs_real_t * ndrop_met
Definition: cs_atmo.h:394
int cloud_type
Definition: cs_atmo.h:440
cs_real_t * rad_1d_tauz
Definition: cs_atmo.h:219
cs_real_t * v_met
Definition: cs_atmo.h:380
cs_real_t meteo_u1
Definition: cs_atmo.h:331
cs_real_t y_l93
Definition: cs_atmo.h:162
int meteo_phih_s
Definition: cs_atmo.h:368
cs_real_t * rad_1d_ir_div
Definition: cs_atmo.h:225
int subgrid_model
Definition: cs_atmo.h:295
cs_real_t * rad_1d_acsup
Definition: cs_atmo.h:212
cs_real_t * soil_cat_albedo
Definition: cs_atmo.h:467
cs_real_t * ek_met
Definition: cs_atmo.h:384
cs_real_t soil_humidity
Definition: cs_atmo.h:455
cs_real_t * u_met
Definition: cs_atmo.h:378
cs_real_t meteo_zu2
Definition: cs_atmo.h:323
cs_real_t meteo_uref
Definition: cs_atmo.h:329
cs_real_t * soil_cat_r1
Definition: cs_atmo.h:478
cs_real_t meteo_ustar0
Definition: cs_atmo.h:335
int soil_zone_id
Definition: cs_atmo.h:432
cs_real_t meteo_z0
Definition: cs_atmo.h:315
int rad_1d_nlevels_max
Definition: cs_atmo.h:192
int nbmetd
Definition: cs_atmo.h:166
cs_real_t soil_w2_ini
Definition: cs_atmo.h:459
cs_real_t * rad_1d_theta0
Definition: cs_atmo.h:255
cs_real_t * rad_1d_temp0
Definition: cs_atmo.h:253
cs_real_t * rad_1d_dacsups
Definition: cs_atmo.h:215
char * meteo_file_name
Definition: cs_atmo.h:310
cs_real_t * rad_1d_sold
Definition: cs_atmo.h:233
cs_real_t * z_temp_met
Definition: cs_atmo.h:404
cs_real_t * xyp_met
Definition: cs_atmo.h:376
cs_real_t latitude
Definition: cs_atmo.h:158
bool autoconversion
Definition: cs_atmo.h:442
int meteo_phim_s
Definition: cs_atmo.h:366
cs_real_t * soil_cat_emissi
Definition: cs_atmo.h:469
cs_real_t meteo_wstar0
Definition: cs_atmo.h:337
int met_1d_nlevels_t
Definition: cs_atmo.h:170
int met_1d_nlevels_d
Definition: cs_atmo.h:165
cs_real_t meteo_sensi
Definition: cs_atmo.h:364
cs_real_t soil_temperature
Definition: cs_atmo.h:453
int meteo_phih_u
Definition: cs_atmo.h:372
cs_real_t * rad_1d_rho0
Definition: cs_atmo.h:261
cs_real_t meteo_t2
Definition: cs_atmo.h:345
cs_real_t * rad_1d_solu
Definition: cs_atmo.h:232
int met_1d_nlevels_max_t
Definition: cs_atmo.h:181
cs_real_t * rad_1d_albedo0
Definition: cs_atmo.h:249
cs_real_t * w_met
Definition: cs_atmo.h:382
cs_real_t * time_met
Definition: cs_atmo.h:406
cs_real_t meteo_zu1
Definition: cs_atmo.h:321
cs_real_t meteo_tstar
Definition: cs_atmo.h:347
int theo_interp
Definition: cs_atmo.h:271
cs_real_t * soil_cat_thermal_roughness
Definition: cs_atmo.h:465
cs_real_t longitude
Definition: cs_atmo.h:156
cs_atmo_soil_cat_t soil_cat
Definition: cs_atmo.h:430
cs_real_t meteo_qw2
Definition: cs_atmo.h:358
cs_real_t aod_o3_tot
Definition: cs_atmo.h:488
int met_1d_ntimes
Definition: cs_atmo.h:175
int nbmett
Definition: cs_atmo.h:171
cs_real_t meteo_evapor
Definition: cs_atmo.h:362
int open_bcs_treatment
Definition: cs_atmo.h:270
cs_real_t soil_surf_temp
Definition: cs_atmo.h:451
int soil_model
Definition: cs_atmo.h:425
int solar_1D_profile
Definition: cs_atmo.h:486
cs_real_t meteo_u2
Definition: cs_atmo.h:333
cs_real_t * rad_1d_iru
Definition: cs_atmo.h:230
cs_real_t * rad_1d_z
Definition: cs_atmo.h:200
cs_real_t * temp_met
Definition: cs_atmo.h:388
cs_real_t * rad_1d_aco2s
Definition: cs_atmo.h:207
int meteo_profile
Definition: cs_atmo.h:307
cs_real_t * rad_1d_dacsup
Definition: cs_atmo.h:214
int meteo_phim_u
Definition: cs_atmo.h:370
cs_real_t * qw_met
Definition: cs_atmo.h:392
cs_real_t * soil_cat_vegeta
Definition: cs_atmo.h:471
cs_real_t * rad_1d_xy
Definition: cs_atmo.h:197
cs_real_t sigc
Definition: cs_atmo.h:482
int rad_1d_frequency
Definition: cs_atmo.h:194
cs_real_t x_l93
Definition: cs_atmo.h:160
cs_real_t meteo_zref
Definition: cs_atmo.h:317
cs_real_t * ep_met
Definition: cs_atmo.h:386
cs_real_t * rad_1d_aerosols
Definition: cs_atmo.h:246
int rad_1d_nvert
Definition: cs_atmo.h:187
cs_real_t meteo_ql0
Definition: cs_atmo.h:360
bool precipitation
Definition: cs_atmo.h:445
cs_real_t * soil_cat_roughness
Definition: cs_atmo.h:463
int nucleation_model
Definition: cs_atmo.h:287
cs_real_t meteo_qw0
Definition: cs_atmo.h:352
cs_real_t * rad_1d_fn
Definition: cs_atmo.h:244
cs_real_t * soil_cat_w2
Definition: cs_atmo.h:476
cs_real_t * dpdt_met
Definition: cs_atmo.h:413
int rad_1d_nlevels
Definition: cs_atmo.h:189
cs_real_t * rad_1d_zq
Definition: cs_atmo.h:221
cs_real_t * rad_1d_daco2s
Definition: cs_atmo.h:210
cs_real_t * pot_t_met
Definition: cs_atmo.h:410
cs_real_t * rad_1d_acinfe
Definition: cs_atmo.h:202
bool rain
Definition: cs_atmo.h:439
bool evaporation
Definition: cs_atmo.h:446
cs_real_t meteo_zt2
Definition: cs_atmo.h:327
cs_real_t * rad_1d_nc
Definition: cs_atmo.h:242
cs_real_t * soil_cat_w1
Definition: cs_atmo.h:473
cs_real_t * rad_1d_qv
Definition: cs_atmo.h:240
cs_real_t meteo_psea
Definition: cs_atmo.h:349
cs_real_t meteo_angle
Definition: cs_atmo.h:339
cs_real_3_t * mom_met
Definition: cs_atmo.h:415
cs_real_3_t * mom_cs
Definition: cs_atmo.h:417