Main functions dedicated to soil management in groundwater flows when using CDO schemes.
More...
|
int | cs_gwf_get_n_soils (void) |
| Get the number of allocated soils. More...
|
|
cs_gwf_soil_t * | cs_gwf_soil_by_id (int id) |
| Retrieve a soil structure from its id. More...
|
|
cs_gwf_soil_t * | cs_gwf_soil_by_name (const char *name) |
| Retrieve a soil structure from its name. More...
|
|
cs_real_t | cs_gwf_soil_get_saturated_moisture (int soil_id) |
| Get the saturated moisture for the given soil id. More...
|
|
bool | cs_gwf_soil_all_saturated (void) |
| Check if all soils have been set as CS_GWF_SOIL_SATURATED. More...
|
|
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 problem is encoutered. More...
|
|
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 sat_moisture, double bulk_density) |
| Create a new cs_gwf_soil_t structure and add it to the array of soils. An initialization by default of all members is performed. More...
|
|
void | cs_gwf_build_cell2soil (cs_lnum_t n_cells) |
| Build an array storing the associated soil for each cell. More...
|
|
const short int * | cs_gwf_get_cell2soil (void) |
| Get the array storing the associated soil for each cell. More...
|
|
void | cs_gwf_soil_free_all (void) |
| Free all cs_gwf_soil_t structures. More...
|
|
void | cs_gwf_soil_log_setup (void) |
| Summary of the settings related to all cs_gwf_soil_t structures. More...
|
|
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. More...
|
|
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. More...
|
|
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 permeability. More...
|
|
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 permeability. More...
|
|
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. More...
|
|
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 saturated. More...
|
|
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 in a porous media. More...
|
|
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. More...
|
|
Main functions dedicated to soil management in groundwater flows when using CDO schemes.
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 permeability.
The (effective) liquid saturation (also called moisture content) follows the identity S_l,eff = (S_l - theta_r)/(theta_s - theta_r) = (1 + |alpha . h|^n)^(-m)
The isotropic relative permeability is defined as: k_r = S_l,eff^L * (1 - (1 - S_l,eff^(1/m))^m))^2 where m = 1 - 1/n
- Parameters
-
[in,out] | soil | pointer to a cs_gwf_soil_t structure |
[in] | k_s | value of the isotropic saturated permeability |
[in] | theta_r | residual moisture/liquid saturation |
[in] | alpha | scale parameter (in m^-1) |
[in] | n | shape parameter |
[in] | L | turtuosity parameter |
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 permeability.
The (effective) liquid saturation (also called moisture content) follows the identity S_l,eff = (S_l - theta_r)/(theta_s - theta_r) = (1 + |alpha . h|^n)^(-m)
The isotropic relative permeability is defined as: k_r = S_l,eff^L * (1 - (1 - S_l,eff^(1/m))^m))^2 where m = 1 - 1/n
- Parameters
-
[in,out] | soil | pointer to a cs_gwf_soil_t structure |
[in] | k_s | value of the isotropic saturated permeability |
[in] | theta_r | residual moisture |
[in] | alpha | scale parameter (in m^-1) |
[in] | n | shape parameter |
[in] | L | turtuosity parameter |