199 [[deprecated(
"Use met_1d_nlevels_d instead")]]
204 [[deprecated(
"Use met_1d_nlevels_t instead")]]
209 [[deprecated(
"Use met_1d_ntimes instead")]]
214 [[deprecated(
"Use met_1d_nlevels_max_t instead")]]
cs_atmo_model_t
Definition: cs_atmo.h:53
@ CS_ATMO_DRY
Definition: cs_atmo.h:57
@ CS_ATMO_CONSTANT_DENSITY
Definition: cs_atmo.h:56
@ CS_ATMO_OFF
Definition: cs_atmo.h:55
@ CS_ATMO_HUMID
Definition: cs_atmo.h:58
cs_real_t cs_mo_phih(cs_real_t z, cs_real_t dlmo, cs_real_t prt)
Universal function phih for neutral, stable and unstable.
Definition: cs_atmo.cpp:1623
void cs_atmo_phyvar_update(void)
void cs_atmo_log_setup(void)
Print the atmospheric module options to setup.log.
Definition: cs_atmo.cpp:4213
void cs_atmo_get_ground_zone(cs_lnum_t *n_elts, int *n_ground_cat, const cs_lnum_t **elt_ids)
cs_atmo_ground_meb_model_t
Definition: cs_atmo.h:110
@ CS_ATMO_GROUND_PHOTOVOLTAICS
Definition: cs_atmo.h:115
@ CS_ATMO_GROUND_GENUINE
Definition: cs_atmo.h:113
@ CS_ATMO_GROUND_VEGETATION
Definition: cs_atmo.h:117
void cs_mo_compute_from_thermal_diff(cs_real_t z, cs_real_t z0, cs_real_t du, cs_real_t buoyant_param, cs_real_t dt, cs_real_t *dlmo, cs_real_t *ustar)
Compute LMO, friction velocity ustar, friction temperature tstar from a thermal difference using Moni...
Definition: cs_atmo.cpp:1718
cs_atmo_nucleation_type_t
Definition: cs_atmo.h:66
@ CS_ATMO_NUC_OFF
Definition: cs_atmo.h:68
@ CS_ATMO_NUC_ABDUL_RAZZAK
Definition: cs_atmo.h:71
@ CS_ATMO_NUC_COHARD
Definition: cs_atmo.h:70
@ CS_ATMO_NUC_PRUPPACHER_KLETT
Definition: cs_atmo.h:69
cs_atmo_ground_cat_t
Definition: cs_atmo.h:93
@ CS_ATMO_GROUND_23_CAT
Definition: cs_atmo.h:102
@ CS_ATMO_GROUND_5_CAT
Definition: cs_atmo.h:96
@ CS_ATMO_GROUND_7_CAT
Definition: cs_atmo.h:99
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.
Definition: cs_atmo.cpp:1653
void cs_atmo_fields_init0(void)
Definition: cs_atmo.cpp:1870
void cs_atmo_z_ground_compute(void)
This function computes the ground elevation.
Definition: cs_atmo.cpp:3590
void cs_user_ground_model(void)
Allow call of cs_user fonctions during ground model computation.
cs_atmo_universal_functions_t
Definition: cs_atmo.h:79
@ CS_ATMO_UNIV_FN_BUSINGER
Definition: cs_atmo.h:83
@ CS_ATMO_UNIV_FN_CARL
Definition: cs_atmo.h:85
@ CS_ATMO_UNIV_FN_CHENG
Definition: cs_atmo.h:81
@ CS_ATMO_UNIV_FN_HARTOGENSIS
Definition: cs_atmo.h:84
@ CS_ATMO_UNIV_FN_HOGSTROM
Definition: cs_atmo.h:82
void cs_atmo_ground_init_arrays(int *n_ground_cat, cs_real_t **csol, cs_real_t **rugdyn, cs_real_t **rugthe, cs_real_t **albedo, cs_real_t **emissi, cs_real_t **vegeta, cs_real_t **c1w, cs_real_t **c2w, cs_real_t **r1, cs_real_t **r2)
cs_atmo_option_t * cs_glob_atmo_option
void cs_atmo_finalize(void)
Deallocate arrays for atmo module.
Definition: cs_atmo.cpp:4707
cs_real_t cs_mo_phim(cs_real_t z, cs_real_t dlmo)
Universal function phim for neutral, stable and unstable.
Definition: cs_atmo.cpp:1594
void cs_atmo_read_meteo_profile(int mode)
Reads the meteo profile data for the atmospheric.
Definition: cs_atmo.cpp:4340
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:4107
void cs_atmo_bcond(void)
Definition: cs_atmo.cpp:2256
void cs_atmo_init_meteo_profiles(void)
Initialize meteo profiles if no meteo file is given.
Definition: cs_atmo.cpp:2910
void cs_atmo_projection(cs_atmo_projection_t origin_projection, cs_atmo_projection_t target_projection, cs_real_t x_origin, cs_real_t y_origin, cs_real_t *x_target, cs_real_t *y_target, int utm_fixed_zone)
Reproject coordinates between supported atmosphere projections.
Definition: cs_atmo.cpp:5166
cs_real_t cs_mo_psih(cs_real_t z, cs_real_t z0, cs_real_t dlmo, cs_real_t prt)
Universal function psih for neutral, stable and unstable.
Definition: cs_atmo.cpp:1684
cs_atmo_projection_t
Definition: cs_atmo.h:125
@ CS_ATMO_PROJ_LAMBERT_93
Definition: cs_atmo.h:130
@ CS_ATMO_PROJ_TAN
Definition: cs_atmo.h:134
@ CS_ATMO_PROJ_UNDEF
Definition: cs_atmo.h:127
@ CS_ATMO_PROJ_WGS84
Definition: cs_atmo.h:128
@ CS_ATMO_PROJ_UTM
Definition: cs_atmo.h:132
void cs_atmo_compute_meteo_profiles(void)
Compute meteo profiles if no meteo file is given.
Definition: cs_atmo.cpp:3313
void cs_atmo_hydrostatic_profiles_compute(void)
Compute hydrostatic profiles of density and pressure.
Definition: cs_atmo.cpp:3846
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:4070
cs_atmo_constants_t * cs_glob_atmo_constants
void cs_mo_compute_from_thermal_flux(cs_real_t z, cs_real_t z0, cs_real_t du, cs_real_t buoyant_param, cs_real_t flux, cs_real_t *dlmo, cs_real_t *ustar)
Compute LMO, friction velocity ustar, friction temperature tstar from a thermal flux using Monin Obuk...
Definition: cs_atmo.cpp:1804
#define BEGIN_C_DECLS
Definition: cs_defs.h:528
double cs_real_t
Floating-point value.
Definition: cs_defs.h:332
#define DISABLE_WARNING_PUSH
Definition: cs_defs.h:168
cs_real_t cs_real_3_t[3]
vector of 3 floating-point values
Definition: cs_defs.h:349
#define DISABLE_WARNING_POP
Definition: cs_defs.h:170
#define END_C_DECLS
Definition: cs_defs.h:529
int cs_lnum_t
local mesh entity id
Definition: cs_defs.h:325
@ dt
Definition: cs_field_pointer.h:61
static constexpr double cs_dbl_max
Definition: cs_math.h:99
real(c_double), pointer, save xlat
latitude of the domain origin
Definition: atincl.f90:153
Definition: cs_atmo.h:454
cs_real_t ps
Definition: cs_atmo.h:458
Definition: cs_atmo.h:150
cs_real_t meteo_t1
Definition: cs_atmo.h:297
cs_real_t domain_orientation
Definition: cs_atmo.h:219
cs_real_t meteo_zi
Definition: cs_atmo.h:273
cs_real_t * z_dyn_met
Definition: cs_atmo.h:356
int squant
Definition: cs_atmo.h:171
cs_real_t * rho_met
Definition: cs_atmo.h:344
cs_real_t meteo_dlmo
Definition: cs_atmo.h:267
int qv_profile
Definition: cs_atmo.h:376
cs_real_t * hyd_p_met
Definition: cs_atmo.h:362
cs_real_t ground_humidity
Definition: cs_atmo.h:409
int infrared_1D_profile
Definition: cs_atmo.h:438
int distribution_model
Definition: cs_atmo.h:254
cs_atmo_ground_cat_t ground_cat
Definition: cs_atmo.h:384
cs_real_t ground_surf_temp
Definition: cs_atmo.h:405
int hydrostatic_pressure_model
Definition: cs_atmo.h:372
cs_real_t ssec
Definition: cs_atmo.h:177
int & nbmetm
Definition: cs_atmo.h:210
cs_real_t * ground_cat_w2
Definition: cs_atmo.h:430
bool rupture
Definition: cs_atmo.h:401
int sedimentation_model
Definition: cs_atmo.h:229
cs_real_t aod_h2o_tot
Definition: cs_atmo.h:446
bool accretion
Definition: cs_atmo.h:395
cs_real_t x_origin
Definition: cs_atmo.h:191
bool compute_z_ground
Definition: cs_atmo.h:222
int shour
Definition: cs_atmo.h:173
cs_real_t meteo_qwstar
Definition: cs_atmo.h:308
cs_real_t meteo_zt1
Definition: cs_atmo.h:279
bool autocollection_cloud
Definition: cs_atmo.h:397
cs_real_t meteo_t0
Definition: cs_atmo.h:295
int deposition_model
Definition: cs_atmo.h:231
int profiles_grid_id
Definition: cs_atmo.h:442
int smin
Definition: cs_atmo.h:175
cs_real_t meteo_qw1
Definition: cs_atmo.h:310
bool autocollection_rain
Definition: cs_atmo.h:398
cs_real_t * ndrop_met
Definition: cs_atmo.h:348
int cloud_type
Definition: cs_atmo.h:394
cs_real_t * v_met
Definition: cs_atmo.h:334
cs_real_t meteo_u1
Definition: cs_atmo.h:285
int & nbmaxt
Definition: cs_atmo.h:215
cs_real_t y_l93
Definition: cs_atmo.h:187
int meteo_phih_s
Definition: cs_atmo.h:322
int subgrid_model
Definition: cs_atmo.h:249
int & nbmetd
Definition: cs_atmo.h:200
cs_real_t * ground_cat_w1
Definition: cs_atmo.h:427
cs_atmo_projection_t projection_type
Definition: cs_atmo.h:195
int ground_model
Definition: cs_atmo.h:379
cs_real_t * ek_met
Definition: cs_atmo.h:338
int ground_zone_id
Definition: cs_atmo.h:386
cs_real_t * u_met
Definition: cs_atmo.h:332
cs_real_t meteo_zu2
Definition: cs_atmo.h:277
cs_real_t meteo_uref
Definition: cs_atmo.h:283
cs_real_t * ground_cat_r1
Definition: cs_atmo.h:432
cs_real_t meteo_ustar0
Definition: cs_atmo.h:289
cs_real_t meteo_z0
Definition: cs_atmo.h:269
char * meteo_file_name
Definition: cs_atmo.h:264
cs_real_t * z_temp_met
Definition: cs_atmo.h:358
cs_real_t * xyp_met
Definition: cs_atmo.h:330
cs_real_t * ground_cat_roughness
Definition: cs_atmo.h:417
cs_real_t latitude
Definition: cs_atmo.h:181
bool autoconversion
Definition: cs_atmo.h:396
int meteo_phim_s
Definition: cs_atmo.h:320
cs_real_t meteo_wstar0
Definition: cs_atmo.h:291
int met_1d_nlevels_t
Definition: cs_atmo.h:203
cs_real_t ground_w2_ini
Definition: cs_atmo.h:413
int & nbmett
Definition: cs_atmo.h:205
int met_1d_nlevels_d
Definition: cs_atmo.h:198
cs_real_t meteo_sensi
Definition: cs_atmo.h:318
int meteo_phih_u
Definition: cs_atmo.h:326
cs_real_t * ground_cat_thermal_roughness
Definition: cs_atmo.h:419
cs_real_t meteo_t2
Definition: cs_atmo.h:299
int met_1d_nlevels_max_t
Definition: cs_atmo.h:213
cs_real_t * w_met
Definition: cs_atmo.h:336
cs_real_t * time_met
Definition: cs_atmo.h:360
cs_real_t meteo_zu1
Definition: cs_atmo.h:275
cs_real_t meteo_tstar
Definition: cs_atmo.h:301
int theo_interp
Definition: cs_atmo.h:225
cs_real_t longitude
Definition: cs_atmo.h:179
cs_real_t meteo_qw2
Definition: cs_atmo.h:312
cs_real_t aod_o3_tot
Definition: cs_atmo.h:444
int utm_zone
Definition: cs_atmo.h:196
cs_real_t ground_temperature
Definition: cs_atmo.h:407
int met_1d_ntimes
Definition: cs_atmo.h:208
cs_real_t meteo_evapor
Definition: cs_atmo.h:316
int open_bcs_treatment
Definition: cs_atmo.h:224
int solar_1D_profile
Definition: cs_atmo.h:440
cs_real_t meteo_u2
Definition: cs_atmo.h:287
cs_real_t * temp_met
Definition: cs_atmo.h:342
cs_real_t * ground_cat_vegeta
Definition: cs_atmo.h:425
int meteo_profile
Definition: cs_atmo.h:261
cs_real_t * ground_cat_r2
Definition: cs_atmo.h:434
int meteo_phim_u
Definition: cs_atmo.h:324
cs_real_t * qw_met
Definition: cs_atmo.h:346
DISABLE_WARNING_POP int syear
Definition: cs_atmo.h:169
cs_real_t sigc
Definition: cs_atmo.h:436
cs_real_t * ground_cat_emissi
Definition: cs_atmo.h:423
cs_real_t x_l93
Definition: cs_atmo.h:185
cs_real_t * ground_cat_thermal_inertia
Definition: cs_atmo.h:415
cs_real_t altitude
Definition: cs_atmo.h:183
cs_real_t meteo_zref
Definition: cs_atmo.h:271
cs_real_t * ep_met
Definition: cs_atmo.h:340
cs_real_t meteo_ql0
Definition: cs_atmo.h:314
bool precipitation
Definition: cs_atmo.h:399
int nucleation_model
Definition: cs_atmo.h:241
cs_real_t meteo_qw0
Definition: cs_atmo.h:306
cs_atmo_ground_meb_model_t ground_meb_model
Definition: cs_atmo.h:391
cs_real_t ground_w1_ini
Definition: cs_atmo.h:411
cs_real_t * dpdt_met
Definition: cs_atmo.h:367
cs_real_t y_origin
Definition: cs_atmo.h:192
cs_real_t * ground_cat_albedo
Definition: cs_atmo.h:421
cs_real_t * pot_t_met
Definition: cs_atmo.h:364
bool rain
Definition: cs_atmo.h:393
bool evaporation
Definition: cs_atmo.h:400
DISABLE_WARNING_PUSH DISABLE_WARNING(-Wdeprecated-declarations) cs_atmo_option_t()
Default constructor with suppression of deprecated declarations, needed to hide warnings simply induc...
Definition: cs_atmo.h:161
cs_real_t meteo_zt2
Definition: cs_atmo.h:281
cs_real_t meteo_psea
Definition: cs_atmo.h:303
cs_real_t meteo_angle
Definition: cs_atmo.h:293
cs_real_3_t * mom_met
Definition: cs_atmo.h:369
cs_real_3_t * mom_cs
Definition: cs_atmo.h:371