1 #ifndef __CS_GWF_SOIL_H__ 2 #define __CS_GWF_SOIL_H__ 171 double saturated_permeability[3][3];
209 double saturated_permeability[3][3];
262 cs_gwf_soil_hydraulic_model_t
model;
370 cs_gwf_soil_hydraulic_model_t model,
372 double saturated_moisture,
373 double bulk_density);
void cs_gwf_build_cell2soil(cs_lnum_t n_cells)
Build an array storing the associated soil for each cell.
Definition: cs_gwf_soil.c:482
Definition: cs_field_pointer.h:196
int zone_id
Definition: cs_gwf_soil.h:257
int cs_gwf_get_n_soils(void)
Get the number of allocated soils.
Definition: cs_gwf_soil.c:222
Definition: cs_gwf_soil.h:125
void cs_gwf_soil_set_aniso_genuchten(cs_gwf_soil_t *soil, double k_s[3][3], double theta_r, double alpha, double n, double L)
Set a soil defined by a Van Genuchten-Mualen hydraulic model and attached to an anisotropic saturated...
Definition: cs_gwf_soil.c:833
cs_real_t * moisture_values
Definition: cs_gwf_soil.h:185
cs_real_t * capacity_values
Definition: cs_gwf_soil.h:186
double precision, dimension(ncharm), save alpha
Definition: cpincl.f90:99
cs_gwf_soil_update_t * update_properties
Definition: cs_gwf_soil.h:268
void() cs_gwf_soil_free_context_t(void **p_context)
Generic function to set free the soil context of a soil structure.
Definition: cs_gwf_soil.h:85
cs_gwf_soil_t * cs_gwf_soil_create(const cs_zone_t *zone, cs_gwf_soil_hydraulic_model_t model, cs_property_type_t perm_type, double saturated_moisture, double bulk_density)
Create a new cs_gwf_soil_t structure and add it to the array of soils. An initialization by default o...
Definition: cs_gwf_soil.c:366
double bulk_density
Definition: cs_gwf_soil.h:259
void cs_gwf_soil_update(cs_real_t time_eval, const cs_mesh_t *mesh, const cs_cdo_connect_t *connect, const cs_cdo_quantities_t *quant)
Update the soil properties.
Definition: cs_gwf_soil.c:1022
cs_gwf_soil_free_context_t * free_context
Definition: cs_gwf_soil.h:269
#define BEGIN_C_DECLS
Definition: cs_defs.h:510
void cs_gwf_soil_set_iso_saturated(cs_gwf_soil_t *soil, double k_s)
Set a soil defined by a saturated hydraulic model and attached to an isotropic permeability.
Definition: cs_gwf_soil.c:698
double scale
Definition: cs_gwf_soil.h:175
Definition: cs_gwf_soil.h:123
Definition: cs_cdo_connect.h:79
bool cs_gwf_soil_all_saturated(void)
Check if all soils have been set as CS_GWF_SOIL_SATURATED.
Definition: cs_gwf_soil.c:305
double saturated_moisture
Definition: cs_gwf_soil.h:170
Structure to handle the Van Genuchten-Mualen model of soil.
Definition: cs_gwf_soil.h:138
Main structure to handle a soil in the groundawater flow module. Store a set of parameters and pointe...
Definition: cs_gwf_soil.h:221
double cs_real_t
Floating-point value.
Definition: cs_defs.h:322
Definition: cs_cdo_quantities.h:129
void cs_gwf_soil_uspf_set_arrays(cs_real_t head[], cs_real_t permeability[], cs_real_t moisture_content[], cs_real_t capacity[])
Set the different arrays used in soil context for a GWF model set to unsaturated single-phase flows i...
Definition: cs_gwf_soil.c:979
cs_gwf_soil_hydraulic_model_t model
Definition: cs_gwf_soil.h:262
void * context
Definition: cs_gwf_soil.h:264
cs_gwf_soil_t * cs_gwf_soil_by_name(const char *name)
Retrieve a soil structure from its name.
Definition: cs_gwf_soil.c:257
cs_real_t * head_values
Definition: cs_gwf_soil.h:184
Definition: cs_gwf_soil.h:121
void cs_gwf_soil_saturated_set_properties(cs_property_t *permeability, cs_property_t *moisture_content)
Set the properties of the groundwater flow module in the case where all soils are considered as satur...
Definition: cs_gwf_soil.c:909
cs_gwf_soil_t * cs_gwf_soil_by_id(int id)
Retrieve a soil structure from its id.
Definition: cs_gwf_soil.c:238
double saturated_moisture
Definition: cs_gwf_soil.h:208
cs_real_t * permeability_values
Definition: cs_gwf_soil.h:183
const short int * cs_gwf_get_cell2soil(void)
Get the array storing the associated soil for each cell.
Definition: cs_gwf_soil.c:528
double residual_moisture
Definition: cs_gwf_soil.h:169
void() cs_gwf_soil_update_t(const cs_real_t t_eval, const cs_mesh_t *mesh, const cs_cdo_connect_t *connect, const cs_cdo_quantities_t *quant, const cs_zone_t *zone, void *soil_context)
Generic function to update the physical properties related to a hydraulic model. The soil context dep...
Definition: cs_gwf_soil.h:69
int id
Definition: cs_gwf_soil.h:256
void cs_gwf_soil_check(void)
Check that at least one soil has been defined and the model of soil exists. Raise an error if a probl...
Definition: cs_gwf_soil.c:327
int cs_lnum_t
local mesh entity id
Definition: cs_defs.h:316
void cs_gwf_soil_free_all(void)
Free all cs_gwf_soil_t structures.
Definition: cs_gwf_soil.c:540
void cs_gwf_soil_log_setup(void)
Summary of the settings related to all cs_gwf_soil_t structures.
Definition: cs_gwf_soil.c:599
double saturated_moisture
Definition: cs_gwf_soil.h:260
cs_gwf_soil_hydraulic_model_t
Predefined hydraulic model of soils used in the groundwater flow module.
Definition: cs_gwf_soil.h:119
double m
Definition: cs_gwf_soil.h:174
#define END_C_DECLS
Definition: cs_defs.h:511
void cs_gwf_soil_set_user(cs_gwf_soil_t *soil, void *context, cs_gwf_soil_update_t *update_func, cs_gwf_soil_free_context_t *free_context_func)
Set a soil defined by a user-defined hydraulic model.
Definition: cs_gwf_soil.c:881
Definition: cs_gwf_soil.h:122
cs_flag_t cs_property_type_t
Definition: cs_property.h:102
Parameters defining a saturated soil in a given zone.
Definition: cs_gwf_soil.h:206
double tortuosity
Definition: cs_gwf_soil.h:176
cs_real_t cs_gwf_soil_get_saturated_moisture(int soil_id)
Get the saturated moisture for the given soil id.
Definition: cs_gwf_soil.c:286
double n
Definition: cs_gwf_soil.h:173
void cs_gwf_soil_set_aniso_saturated(cs_gwf_soil_t *soil, double k_s[3][3])
Set a soil defined by a saturated hydraulic model and attached to an anisotropic permeability.
Definition: cs_gwf_soil.c:729
Structure associated to the definition of a property relying on the cs_xdef_t structure.
void cs_gwf_soil_set_iso_genuchten(cs_gwf_soil_t *soil, double k_s, double theta_r, double alpha, double n, double L)
Set a soil defined by a Van Genuchten-Mualen hydraulic model and attached to an isotropic saturated p...
Definition: cs_gwf_soil.c:772