1 #ifndef __CS_GWF_SOIL_H__ 2 #define __CS_GWF_SOIL_H__ 174 cs_gwf_soil_hydraulic_model_t
model;
220 cs_gwf_soil_hydraulic_model_t model);
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:865
void cs_gwf_set_iso_genuchten_soil(cs_gwf_soil_t *soil, double k_s, double theta_s, double theta_r, double rho)
Set a soil defined by a Van Genuchten hydraulic model and attached to an anisotropic permeability...
Definition: cs_gwf_soil.c:678
cs_gwf_soil_update_t * update_properties
Definition: cs_gwf_soil.h:180
int cs_gwf_get_n_soils(void)
Get the number of allocated soils.
Definition: cs_gwf_soil.c:486
Definition: cs_gwf_soil.h:108
double saturated_moisture
Definition: cs_gwf_soil.h:152
cs_real_33_t saturated_permeability
Definition: cs_gwf_soil.h:153
double m
Definition: cs_gwf_soil.h:127
Definition: cs_gwf_soil.h:103
void() cs_gwf_soil_finalize_t(void *input)
Generic function to set free the input of a soil structure.
Definition: cs_gwf_soil.h:89
Field descriptor.
Definition: cs_field.h:125
double bulk_density
Definition: cs_gwf_soil.h:119
Definition: cs_gwf_soil.h:117
int id
Definition: cs_gwf_soil.h:169
void cs_gwf_set_aniso_genuchten_soil(cs_gwf_soil_t *soil, double *k_s, double theta_s, double theta_r, double rho)
Set a soil defined by a Van Genuchten hydraulic model and attached to an anisotropic permeability...
Definition: cs_gwf_soil.c:727
double residual_moisture
Definition: cs_gwf_soil.h:120
#define BEGIN_C_DECLS
Definition: cs_defs.h:495
cs_gwf_soil_hydraulic_model_t model
Definition: cs_gwf_soil.h:174
double bulk_density
Definition: cs_gwf_soil.h:151
int zone_id
Definition: cs_gwf_soil.h:170
void cs_gwf_soil_set_all_saturated(cs_property_t *permeability, cs_property_t *moisture_content, cs_field_t *moisture_field)
Set the properties of the groundwater flow module all soils are considered as saturated.
Definition: cs_gwf_soil.c:802
Definition: cs_cdo_connect.h:76
void * input
Definition: cs_gwf_soil.h:177
Definition: cs_gwf_soil.h:167
double cs_real_t
Floating-point value.
Definition: cs_defs.h:307
Definition: cs_cdo_quantities.h:124
void cs_user_gwf_get_soil_density(const cs_gwf_soil_t *soil, cs_real_t *density)
Retrieve the bulk density related to a soil structure.
Definition: cs_user_gwf.c:99
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_real_t *head_values, const cs_zone_t *zone, void *input)
Generic function to update the physical properties related to a hydraulic model. At least...
Definition: cs_gwf_soil.h:72
cs_gwf_soil_t * cs_gwf_soil_by_name(const char *name)
Retrieve a soil structure from its name.
Definition: cs_gwf_soil.c:521
void cs_gwf_soil_set_by_field(cs_property_t *permeability, cs_field_t *permea_field, cs_property_t *moisture_content, cs_field_t *moisture_field, cs_property_t *soil_capacity, cs_field_t *capacity_field)
Set the properties of the groundwater flow module thanks to cs_field_t structure. The consequence is ...
Definition: cs_gwf_soil.c:937
void cs_gwf_set_user_soil(cs_gwf_soil_t *soil, void *input, cs_gwf_soil_update_t *update_func, cs_gwf_soil_finalize_t *free_func)
Set a soil defined by a user-defined hydraulic model and attached to an anisotropic permeability...
Definition: cs_gwf_soil.c:773
cs_gwf_soil_t * cs_gwf_soil_by_id(int id)
Retrieve a soil structure from its id.
Definition: cs_gwf_soil.c:502
double saturated_moisture
Definition: cs_gwf_soil.h:121
cs_real_33_t saturated_permeability
Definition: cs_gwf_soil.h:122
double scale
Definition: cs_gwf_soil.h:128
cs_real_t cs_gwf_soil_get_bulk_density(const cs_gwf_soil_t *soil)
Retrieve the bulk density associated to the given soil structure.
Definition: cs_gwf_soil.c:550
double precision, dimension(:,:,:), allocatable density
Definition: atimbr.f90:124
const short int * cs_gwf_get_cell2soil(void)
Get the array storing the associated soil for each cell.
Definition: cs_gwf_soil.c:914
double n
Definition: cs_gwf_soil.h:126
void cs_gwf_set_iso_saturated_soil(cs_gwf_soil_t *soil, double k_s, double theta_s, double rho)
Set a soil defined by a saturated hydraulic model and attached to an isotropic permeability.
Definition: cs_gwf_soil.c:599
double tortuosity
Definition: cs_gwf_soil.h:129
int cs_lnum_t
local mesh entity id
Definition: cs_defs.h:301
void cs_gwf_soil_free_all(void)
Free all cs_gwf_soil_t structures.
Definition: cs_gwf_soil.c:456
cs_gwf_soil_finalize_t * free_input
Definition: cs_gwf_soil.h:181
Definition: cs_gwf_soil.h:106
void cs_gwf_soil_log_setup(void)
Summary of the settings related to all cs_gwf_soil_t structures.
Definition: cs_gwf_soil.c:960
cs_gwf_soil_hydraulic_model_t
Definition: cs_gwf_soil.h:101
#define END_C_DECLS
Definition: cs_defs.h:496
cs_gwf_soil_t * cs_gwf_soil_add(const char *z_name, cs_gwf_soil_hydraulic_model_t model)
Create and add a new cs_gwf_soil_t structure. A first initialization of all members by default is per...
Definition: cs_gwf_soil.c:381
cs_real_t cs_real_33_t[3][3]
3x3 matrix of floating-point values
Definition: cs_defs.h:327
Definition: cs_field_pointer.h:103
void cs_gwf_set_aniso_saturated_soil(cs_gwf_soil_t *soil, double *k_s, double theta_s, double rho)
Set a soil defined by a saturated hydraulic model and attached to an isotropic permeability.
Definition: cs_gwf_soil.c:639
Definition: cs_gwf_soil.h:105
Structure associated to the definition of a property relying on the cs_xdef_t structure.
Definition: cs_gwf_soil.h:149