94 typedef struct _gwf_t cs_gwf_t;
302 const char *varname);
331 double reaction_rate);
405 cs_equation_t **equations,
428 cs_equation_t *eqs[],
void cs_gwf_richards_setup(cs_gwf_t *gw, cs_equation_t *richards)
Predefined settings for the Richards equation.
Definition: cs_gwf.c:1837
time step descriptor
Definition: cs_time_step.h:51
Definition: cs_advection_field.h:59
void cs_gwf_add_iso_soil_by_value(cs_gwf_t *gw, cs_gwf_hydraulic_model_t model, const char *ml_name, double k_s, double theta_s, double rho)
Add a new soil attached to an isotropic permeability.
Definition: cs_gwf.c:1466
cs_gwf_t * cs_gwf_create(void)
Create a structure dedicated to manage groundwater flows.
Definition: cs_gwf.c:1124
cs_gwf_hydraulic_model_t
Definition: cs_gwf.h:65
double h_r
Definition: cs_gwf.h:89
#define BEGIN_C_DECLS
Definition: cs_defs.h:451
double scale
Definition: cs_gwf.h:82
Definition: cs_cdo_connect.h:56
double m
Definition: cs_gwf.h:81
void cs_gwf_extra_post(void *input, int mesh_id, int cat_id, int ent_flag[5], cs_lnum_t n_cells, cs_lnum_t n_i_faces, cs_lnum_t n_b_faces, const cs_lnum_t cell_list[], const cs_lnum_t i_face_list[], const cs_lnum_t b_face_list[], const cs_time_step_t *time_step)
Predefined post-processing output for the groundwater flow module prototype of this function is fixed...
Definition: cs_gwf.c:2535
double h_s
Definition: cs_gwf.h:90
cs_equation_t * cs_gwf_add_tracer(cs_gwf_t *gw, int tracer_eq_id, const char *eqname, const char *varname)
Add a new equation related to the groundwater flow module This equation is a specific unsteady advect...
Definition: cs_gwf.c:1692
void cs_gwf_tracer_setup(int tracer_eq_id, cs_equation_t *eq, cs_gwf_t *gw)
Predefined settings for a tracer equation.
Definition: cs_gwf.c:2078
void cs_gwf_set_gravity_vector(cs_gwf_t *gw, const cs_real_3_t gvec)
Activate the gravity and set the gravitaty vector.
Definition: cs_gwf.c:1221
double cs_real_t
Floating-point value.
Definition: cs_defs.h:297
Definition: cs_cdo_quantities.h:102
cs_gwf_t * cs_gwf_finalize(cs_gwf_t *gw)
Free the main structure related to groundwater flows.
Definition: cs_gwf.c:1166
int cs_gwf_get_n_soils(const cs_gwf_t *gw)
Get the number of requested soils.
Definition: cs_gwf.c:1203
double tortuosity
Definition: cs_gwf.h:83
double n
Definition: cs_gwf.h:80
void cs_gwf_set_soil_param(cs_gwf_t *gw, const char *ml_name, cs_gwf_soilkey_t key, const cs_real_t val)
Set parameters related to a cs_gwf_t structure.
Definition: cs_gwf.c:1551
void cs_gwf_compute(const cs_mesh_t *mesh, const cs_time_step_t *time_step, double dt_cur, const cs_cdo_connect_t *connect, const cs_cdo_quantities_t *cdoq, cs_equation_t *eqs[], cs_gwf_t *gw)
Compute the system related to groundwater flows module.
Definition: cs_gwf.c:2408
cs_real_t cs_real_3_t[3]
vector of 3 floating-point values
Definition: cs_defs.h:309
bool cs_gwf_tracer_needs_reaction(const cs_gwf_t *gw, int eq_id)
Check if one needs to add a reaction term for a given tracer.
Definition: cs_gwf.c:2019
void cs_gwf_summary(const cs_gwf_t *gw)
Summary of a cs_gwf_t structure.
Definition: cs_gwf.c:1261
void cs_gwf_add_ortho_soil_by_value(cs_gwf_t *gw, cs_gwf_hydraulic_model_t model, const char *ml_name, cs_real_t *ks, double theta_s, double rho)
Add a new soil attached to an orthotropic permeability.
Definition: cs_gwf.c:1494
void cs_gwf_final_initialization(const cs_cdo_connect_t *connect, int n_equations, cs_equation_t **equations, cs_gwf_t *gw)
Last initialization step of the groundwater flow module.
Definition: cs_gwf.c:2165
int cs_lnum_t
local mesh entity id
Definition: cs_defs.h:293
void cs_gwf_set_tracer_param(cs_gwf_t *gw, int tracer_eq_id, const char *ml_name, double wmd, double alpha_l, double alpha_t, double distrib_coef, double reaction_rate)
Add a new equation related to the groundwater flow module This equation is a specific unsteady advect...
Definition: cs_gwf.c:1758
#define END_C_DECLS
Definition: cs_defs.h:452
unsigned short int cs_flag_t
Definition: cs_defs.h:299
Definition: cs_field_pointer.h:98
bool cs_gwf_tracer_needs_diffusion(const cs_gwf_t *gw, int eq_id)
Check if one needs to add a diffusion term for a given tracer.
Definition: cs_gwf.c:2048
subroutine richards(icvrge, dt)
Definition: richards.f90:82
cs_gwf_soilkey_t
Definition: cs_gwf.h:49
void cs_gwf_set_darcian_flux_location(cs_gwf_t *gw, cs_flag_t location_flag)
Advanced setting: indicate where the darcian flux is stored cs_cdo_primal_cell is the default setting...
Definition: cs_gwf.c:1244
Definition: cs_property.h:66
cs_equation_t * cs_gwf_initialize(int richards_eq_id, int n_soils, int n_tracer_eqs, cs_property_t *permeability, cs_property_t *soil_capacity, cs_adv_field_t *adv_field, cs_gwf_t *gw)
Initialize the module dedicated to groundwater flows.
Definition: cs_gwf.c:1399
void cs_gwf_add_aniso_soil_by_value(cs_gwf_t *gw, cs_gwf_hydraulic_model_t model, const char *ml_name, cs_real_t *ks, double theta_s, double rho)
Add a new soil attached to an orthotropic permeability.
Definition: cs_gwf.c:1523