1 #ifndef __CS_GWF_SOIL_H__
2 #define __CS_GWF_SOIL_H__
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:866
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:672
cs_gwf_soil_update_t * update_properties
Definition: cs_gwf_soil.h:174
int cs_gwf_get_n_soils(void)
Get the number of allocated soils.
Definition: cs_gwf_soil.c:480
Definition: cs_gwf_soil.h:108
double saturated_moisture
Definition: cs_gwf_soil.h:148
cs_real_33_t saturated_permeability
Definition: cs_gwf_soil.h:149
double m
Definition: cs_gwf_soil.h:125
Definition: cs_gwf_soil.h:104
Field descriptor.
Definition: cs_field.h:124
double bulk_density
Definition: cs_gwf_soil.h:118
Definition: cs_gwf_soil.h:116
int id
Definition: cs_gwf_soil.h:163
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:721
double residual_moisture
Definition: cs_gwf_soil.h:119
#define BEGIN_C_DECLS
Definition: cs_defs.h:453
cs_gwf_soil_hydraulic_model_t model
Definition: cs_gwf_soil.h:168
double bulk_density
Definition: cs_gwf_soil.h:147
int zone_id
Definition: cs_gwf_soil.h:164
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:796
Definition: cs_cdo_connect.h:55
void * input
Definition: cs_gwf_soil.h:171
Definition: cs_gwf_soil.h:161
double cs_real_t
Floating-point value.
Definition: cs_defs.h:297
Definition: cs_cdo_quantities.h:89
cs_gwf_soil_t * cs_gwf_soil_by_name(const char *name)
Retrieve a soil structure from its name.
Definition: cs_gwf_soil.c:515
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:931
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:767
cs_gwf_soil_t * cs_gwf_soil_by_id(int id)
Retrieve a soil structure from its id.
Definition: cs_gwf_soil.c:496
double saturated_moisture
Definition: cs_gwf_soil.h:120
cs_real_33_t saturated_permeability
Definition: cs_gwf_soil.h:121
double scale
Definition: cs_gwf_soil.h:126
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:544
const short int * cs_gwf_get_cell2soil(void)
Get the array storing the associated soil for each cell.
Definition: cs_gwf_soil.c:908
double n
Definition: cs_gwf_soil.h:124
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:593
double tortuosity
Definition: cs_gwf_soil.h:127
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:450
cs_gwf_soil_finalize_t * free_input
Definition: cs_gwf_soil.h:175
Definition: cs_gwf_soil.h:107
void cs_gwf_soil_log_setup(void)
Summary of the settings related to all cs_gwf_soil_t structures.
Definition: cs_gwf_soil.c:954
cs_gwf_soil_hydraulic_model_t
Definition: cs_gwf_soil.h:102
#define END_C_DECLS
Definition: cs_defs.h:454
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_volume_zone_t *zone, void *input)
Generic function to update the physical properties related to a hydraulic model. At least...
Definition: cs_gwf_soil.h:74
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:370
cs_real_t cs_real_33_t[3][3]
3x3 matrix of floating-point values
Definition: cs_defs.h:315
void( cs_gwf_soil_finalize_t)(void *input)
Generic function to set free the input of a soil structure.
Definition: cs_gwf_soil.h:91
Definition: cs_field_pointer.h:100
Definition: cs_volume_zone.h:85
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:633
Definition: cs_gwf_soil.h:106
Definition: cs_property.h:62
Definition: cs_gwf_soil.h:145