1 #ifndef __CS_GWF_TRACER_H__ 2 #define __CS_GWF_TRACER_H__ 240 cs_gwf_tracer_t *tracer);
281 const char *var_name,
316 const char *soil_name,
321 double reaction_rate);
338 const char *soil_name,
368 cs_gwf_tracer_t *tracer);
int id
Definition: cs_gwf_tracer.h:202
cs_equation_t * eq
Definition: cs_gwf_tracer.h:203
Definition: cs_advection_field.h:149
cs_gwf_tracer_model_t model
Definition: cs_gwf_tracer.h:206
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:687
Field descriptor.
Definition: cs_field.h:125
cs_flag_t cs_gwf_tracer_model_t
Definition: cs_gwf_tracer.h:47
#define BEGIN_C_DECLS
Definition: cs_defs.h:495
int reaction_id
Definition: cs_gwf_tracer.h:210
void() cs_gwf_tracer_setup_t(const cs_cdo_connect_t *connect, const cs_cdo_quantities_t *quant, cs_gwf_tracer_t *tracer)
Generic function to set the parameters related to a tracer equation.
Definition: cs_gwf_tracer.h:238
cs_gwf_tracer_free_input_t * free_input
Definition: cs_gwf_tracer.h:219
Definition: cs_cdo_connect.h:76
Definition: cs_gwf_tracer.h:125
double cs_real_t
Floating-point value.
Definition: cs_defs.h:307
Definition: cs_cdo_quantities.h:124
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:1078
cs_field_t * diffusivity
Definition: cs_gwf_tracer.h:208
cs_gwf_tracer_update_t * update_precipitation
Definition: cs_gwf_tracer.h:218
cs_gwf_tracer_model_bit_t
elemental modelling choice either from the physical viewpoint or the numerical viewpoint for the tran...
Definition: cs_gwf_tracer.h:117
Definition: cs_gwf_tracer.h:124
cs_gwf_tracer_update_t * update_diff_tensor
Definition: cs_gwf_tracer.h:217
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:655
void() cs_gwf_tracer_free_input_t(cs_gwf_tracer_t *tracer)
Generic function to free the input of a tracer model.
Definition: cs_gwf_tracer.h:83
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:68
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:544
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:756
Definition: cs_gwf_tracer.h:128
#define END_C_DECLS
Definition: cs_defs.h:496
void cs_gwf_tracer_setup(const cs_cdo_connect_t *connect, const cs_cdo_quantities_t *quant, cs_gwf_tracer_t *tracer)
Set the parameters related to a standard tracer equation.
Definition: cs_gwf_tracer.c:916
void * input
Definition: cs_gwf_tracer.h:214
unsigned short int cs_flag_t
Definition: cs_defs.h:309
Definition: cs_gwf_tracer.h:119
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:804
Main structure to handle the discretization and the resolution of an equation.
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:252
Definition: cs_gwf_tracer.h:200