1 #ifndef __CS_GWF_TRACER_H__ 2 #define __CS_GWF_TRACER_H__ 259 cs_gwf_tracer_t *tracer);
300 const char *var_name,
335 const char *soil_name,
340 double reaction_rate);
357 const char *soil_name,
392 cs_gwf_tracer_t *tracer);
412 cs_gwf_tracer_t *tracer);
443 const cs_gwf_tracer_t *tracer,
465 const cs_gwf_tracer_t *tracer,
double * k0_plus
Definition: cs_gwf_tracer.h:192
double * rho_kd
Definition: cs_gwf_tracer.h:159
int id
Definition: cs_gwf_tracer.h:214
cs_equation_t * eq
Definition: cs_gwf_tracer.h:215
Definition: cs_advection_field.h:149
cs_gwf_tracer_model_t model
Definition: cs_gwf_tracer.h:219
double * conc_w_star
Definition: cs_gwf_tracer.h:172
void cs_gwf_set_main_tracer_param(cs_gwf_tracer_t *tracer, const char *soil_name, double wmd, double alpha_l, double alpha_t, double distrib_coef, double reaction_rate)
For a specified soil set the main parameters corresponding to a default modelling of a tracer transpo...
Definition: cs_gwf_tracer.c:1079
Field descriptor.
Definition: cs_field.h:125
cs_field_t * precip_field
Definition: cs_gwf_tracer.h:187
double * alpha_t
Definition: cs_gwf_tracer.h:162
cs_real_t * conc_precip
Definition: cs_gwf_tracer.h:182
cs_flag_t cs_gwf_tracer_model_t
Definition: cs_gwf_tracer.h:47
#define BEGIN_C_DECLS
Definition: cs_defs.h:510
int reaction_id
Definition: cs_gwf_tracer.h:223
const cs_field_t * darcy_velocity_field
Definition: cs_gwf_tracer.h:201
Definition: cs_cdo_connect.h:79
EK model with 5 parameters.
Definition: cs_gwf_tracer.h:132
Definition: cs_gwf_tracer.h:147
double cs_real_t
Floating-point value.
Definition: cs_defs.h:322
Definition: cs_cdo_quantities.h:129
void cs_gwf_tracer_log_setup(const cs_gwf_tracer_t *tracer)
Display the main features related to a tracer.
Definition: cs_gwf_tracer.c:1496
cs_field_t * diffusivity
Definition: cs_gwf_tracer.h:221
double * kd0
Definition: cs_gwf_tracer.h:157
double * alpha_l
Definition: cs_gwf_tracer.h:161
cs_gwf_tracer_update_t * update_precipitation
Definition: cs_gwf_tracer.h:233
double * reaction_rate
Definition: cs_gwf_tracer.h:166
cs_gwf_tracer_model_bit_t
Flags specifying the general behavior of a tracer associated to the groundwater flow module...
Definition: cs_gwf_tracer.h:101
EK model with 3 parameters.
Definition: cs_gwf_tracer.h:121
const cs_real_t * l_saturation
Definition: cs_gwf_tracer.h:205
cs_gwf_tracer_update_t * update_diff_tensor
Definition: cs_gwf_tracer.h:232
cs_real_t * conc_site2
Definition: cs_gwf_tracer.h:197
cs_real_t cs_gwf_tracer_integrate_sat(const cs_cdo_connect_t *connect, const cs_cdo_quantities_t *cdoq, const cs_gwf_tracer_t *tracer, const cs_zone_t *z)
Compute the integral over a given set of cells of the field related to a tracer equation. This integral turns out to be exact for linear functions. Case of a fully saturated model.
Definition: cs_gwf_tracer.c:1644
cs_gwf_tracer_t * cs_gwf_tracer_free(cs_gwf_tracer_t *tracer)
Free a cs_gwf_tracer_t structure.
Definition: cs_gwf_tracer.c:1047
void cs_gwf_tracer_saturated_setup(const cs_cdo_connect_t *connect, const cs_cdo_quantities_t *quant, const cs_adv_field_t *adv, const cs_real_t *l_saturation, cs_gwf_tracer_t *tracer)
Set the parameters related to a standard tracer equation case of a fully saturated flow model...
Definition: cs_gwf_tracer.c:1309
void() cs_gwf_tracer_update_t(cs_gwf_tracer_t *tracer, cs_real_t t_eval, const cs_mesh_t *mesh, const cs_cdo_connect_t *connect, const cs_cdo_quantities_t *quant)
Generic function to update the phisical properties related to a tracer modelling. ...
Definition: cs_gwf_tracer.h:69
double * k0_minus
Definition: cs_gwf_tracer.h:194
double * wmd
Definition: cs_gwf_tracer.h:164
cs_gwf_tracer_t * cs_gwf_tracer_init(int tracer_id, const char *eq_name, const char *var_name, cs_adv_field_t *adv_field, cs_gwf_tracer_model_t model)
Create a new cs_gwf_tracer_t structure and initialize its members by default. Add a new equation rela...
Definition: cs_gwf_tracer.c:923
void cs_gwf_set_precip_tracer_param(cs_gwf_tracer_t *tracer, const char *soil_name, double conc_w_star)
For a specified soil set the parameters corresponding to a precipitation modelling of a tracer transp...
Definition: cs_gwf_tracer.c:1147
cs_real_t * conc_satura
Definition: cs_gwf_tracer.h:178
Add the precipitation phenomena to the default tracer equation.
Definition: cs_gwf_tracer.h:138
#define END_C_DECLS
Definition: cs_defs.h:511
unsigned short int cs_flag_t
Definition: cs_defs.h:324
void * context
Definition: cs_gwf_tracer.h:228
User-defined tracer.
Definition: cs_gwf_tracer.h:109
void cs_gwf_tracer_add_terms(cs_gwf_tracer_t *tracer)
Add terms to the algebraic system related to a tracer equation according to the settings. Case of the standard tracer modelling Rely on the generic function: cs_gwf_tracer_add_terms_t.
Definition: cs_gwf_tracer.c:1195
cs_gwf_tracer_free_context_t * free_context
Definition: cs_gwf_tracer.h:234
Main structure to handle the discretization and the resolution of an equation.
cs_real_t cs_gwf_tracer_integrate(const cs_cdo_connect_t *connect, const cs_cdo_quantities_t *cdoq, const cs_gwf_tracer_t *tracer, const cs_zone_t *z)
Compute the integral over a given set of cells of the field related to a tracer equation. This integral turns out to be exact for linear functions.
Definition: cs_gwf_tracer.c:1540
double * rho_bulk
Definition: cs_gwf_tracer.h:156
void() cs_gwf_tracer_free_context_t(cs_gwf_tracer_t *tracer)
Generic function to free the input of a tracer model.
Definition: cs_gwf_tracer.h:84
void() cs_gwf_tracer_add_terms_t(cs_gwf_tracer_t *tracer)
Generic function to update the terms to build in the algebraic system for a tracer equation according...
Definition: cs_gwf_tracer.h:271
void cs_gwf_tracer_unsaturated_setup(const cs_cdo_connect_t *connect, const cs_cdo_quantities_t *quant, const cs_adv_field_t *adv, const cs_real_t *l_saturation, cs_gwf_tracer_t *tracer)
Set the parameters related to a standard tracer equation in case of an unsaturated flow model...
Definition: cs_gwf_tracer.c:1406
Definition: cs_gwf_tracer.h:212
void() cs_gwf_tracer_setup_t(const cs_cdo_connect_t *connect, const cs_cdo_quantities_t *quant, const cs_adv_field_t *adv, const cs_real_t *l_saturation, cs_gwf_tracer_t *tracer)
Generic function to set the parameters related to a tracer equation.
Definition: cs_gwf_tracer.h:255