Introduction
User functions for the atmospheric model.
Atmospheric definition
Activate 1-D radiative transfer model
Is define in cs_user_model function
at_opt->radiative_model_1d = 1;
at_opt->rad_1d_nvert = 1;
at_opt->rad_1d_nlevels = 50;
at_opt->rad_1d_nlevels_max = at_opt->rad_1d_nlevels;
if (at_opt->rad_1d_nvert > 0) {
for (
cs_real_t zzmax = (((
int) zvmax)/1000)*1000.;
zzmax <= (ztop -1000);
zzmax += 1000.) {
(at_opt->rad_1d_nlevels_max)++;
}
}
double cs_real_t
Floating-point value.
Definition: cs_defs.h:342
define 1-D radiative transfer mesh
Is define in cs_user_parameters function
}
}
for (
cs_real_t zzmax = (((
int) zvmax)/1000)*1000.;
zzmax <= (ztop -1000);
i++) {
zzmax += 1000.;
}
}
}
cs_atmo_option_t * cs_glob_atmo_option
Definition: cs_atmo.h:143
cs_real_t * rad_1d_qw0
Definition: cs_atmo.h:257
cs_real_t * rad_1d_p0
Definition: cs_atmo.h:259
cs_real_t * soil_cat_thermal_inertia
Definition: cs_atmo.h:461
cs_real_t * rad_1d_emissi0
Definition: cs_atmo.h:251
cs_real_t * rad_1d_temp0
Definition: cs_atmo.h:253
cs_real_t * rad_1d_rho0
Definition: cs_atmo.h:261
cs_real_t * rad_1d_albedo0
Definition: cs_atmo.h:249
cs_real_t * soil_cat_thermal_roughness
Definition: cs_atmo.h:465
int soil_model
Definition: cs_atmo.h:425
cs_real_t * rad_1d_z
Definition: cs_atmo.h:200
cs_real_t * rad_1d_xy
Definition: cs_atmo.h:197
int rad_1d_nvert
Definition: cs_atmo.h:187
cs_real_t * soil_cat_roughness
Definition: cs_atmo.h:463
int rad_1d_nlevels
Definition: cs_atmo.h:189
Data Entry for the atmospheric soil model
To activate the model, the user has to set the and to specify the zone id on which the soil model is applied in cs_user_parameters.cpp, routine cs_user_model:
@ CS_ATMO_SOIL_5_CAT
Definition: cs_atmo.h:106
const cs_zone_t * cs_boundary_zone_by_name(const char *name)
Return a pointer to a boundary zone based on its name if present.
Definition: cs_boundary_zone.cpp:711
int soil_zone_id
Definition: cs_atmo.h:432
cs_atmo_soil_cat_t soil_cat
Definition: cs_atmo.h:430
int id
Definition: cs_zone.h:59
Then the user may change default coefficient values for soil categories in cs_user_parameters.cpp
Initialization of atmospheric
The user has to specify the percentage of each categories for all faces of the soil zone in cs_user_initialization.cpp:
f->
val[soil_id + f->
dim * elt_id] = 0.;
f->
val[4 + f->
dim * elt_id] = 100.;
}
}
const cs_zone_t * cs_boundary_zone_by_id(int id)
Return a pointer to a boundary zone based on its id.
Definition: cs_boundary_zone.cpp:687
int cs_lnum_t
local mesh entity id
Definition: cs_defs.h:335
cs_field_t * cs_field_by_name(const char *name)
Return a pointer to a field based on its name.
Definition: cs_field.cpp:2489
Field descriptor.
Definition: cs_field.h:131
cs_real_t * val
Definition: cs_field.h:152
int dim
Definition: cs_field.h:138
cs_lnum_t n_elts
Definition: cs_zone.h:64