1 #ifndef __CS_GWF_SOIL_H__ 2 #define __CS_GWF_SOIL_H__ 167 cs_gwf_soil_hydraulic_model_t
model;
196 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:875
time step descriptor
Definition: cs_time_step.h:51
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:681
cs_gwf_soil_update_t * update_properties
Definition: cs_gwf_soil.h:173
int cs_gwf_get_n_soils(void)
Get the number of allocated soils.
Definition: cs_gwf_soil.c:489
Definition: cs_gwf_soil.h:107
double saturated_moisture
Definition: cs_gwf_soil.h:147
cs_real_33_t saturated_permeability
Definition: cs_gwf_soil.h:148
double m
Definition: cs_gwf_soil.h:124
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:90
Field descriptor.
Definition: cs_field.h:124
double bulk_density
Definition: cs_gwf_soil.h:117
Definition: cs_gwf_soil.h:115
int id
Definition: cs_gwf_soil.h:162
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:730
double residual_moisture
Definition: cs_gwf_soil.h:118
#define BEGIN_C_DECLS
Definition: cs_defs.h:461
cs_gwf_soil_hydraulic_model_t model
Definition: cs_gwf_soil.h:167
double bulk_density
Definition: cs_gwf_soil.h:146
int zone_id
Definition: cs_gwf_soil.h:163
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:805
Definition: cs_cdo_connect.h:69
void * input
Definition: cs_gwf_soil.h:170
Definition: cs_gwf_soil.h:160
double cs_real_t
Floating-point value.
Definition: cs_defs.h:297
Definition: cs_cdo_quantities.h:94
void() cs_gwf_soil_update_t(const cs_mesh_t *mesh, const cs_cdo_connect_t *connect, const cs_cdo_quantities_t *quant, const cs_time_step_t *ts, 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:73
cs_gwf_soil_t * cs_gwf_soil_by_name(const char *name)
Retrieve a soil structure from its name.
Definition: cs_gwf_soil.c:524
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:940
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:776
cs_gwf_soil_t * cs_gwf_soil_by_id(int id)
Retrieve a soil structure from its id.
Definition: cs_gwf_soil.c:505
double saturated_moisture
Definition: cs_gwf_soil.h:119
cs_real_33_t saturated_permeability
Definition: cs_gwf_soil.h:120
double scale
Definition: cs_gwf_soil.h:125
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:553
const short int * cs_gwf_get_cell2soil(void)
Get the array storing the associated soil for each cell.
Definition: cs_gwf_soil.c:917
double n
Definition: cs_gwf_soil.h:123
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:602
double tortuosity
Definition: cs_gwf_soil.h:126
int cs_lnum_t
local mesh entity id
Definition: cs_defs.h:293
void cs_gwf_soil_free_all(void)
Free all cs_gwf_soil_t structures.
Definition: cs_gwf_soil.c:459
cs_gwf_soil_finalize_t * free_input
Definition: cs_gwf_soil.h:174
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:963
cs_gwf_soil_hydraulic_model_t
Definition: cs_gwf_soil.h:101
#define END_C_DECLS
Definition: cs_defs.h:462
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:379
cs_real_t cs_real_33_t[3][3]
3x3 matrix of floating-point values
Definition: cs_defs.h:315
Definition: cs_field_pointer.h:100
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:642
Definition: cs_gwf_soil.h:105
Definition: cs_property.h:63
Definition: cs_gwf_soil.h:144