1#ifndef __CS_GWF_TRACER_H__
2#define __CS_GWF_TRACER_H__
196 const char *var_name,
231 const char *soil_name,
236 double reaction_rate);
#define BEGIN_C_DECLS
Definition cs_defs.h:467
double cs_real_t
Floating-point value.
Definition cs_defs.h:302
#define END_C_DECLS
Definition cs_defs.h:468
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:419
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:167
void() cs_gwf_tracer_update_t(void *input, const cs_mesh_t *mesh, const cs_cdo_connect_t *connect, const cs_cdo_quantities_t *quant, cs_real_t t_eval)
Generic function to update the phisical properties related to a tracer modelling.
Definition cs_gwf_tracer.h:65
void cs_gwf_tracer_standard_add_terms(cs_gwf_tracer_t *tracer)
Add terms to the algebraic system related to a tracer equation according to the settings....
Definition cs_gwf_tracer.c:612
cs_gwf_tracer_model_t
Definition cs_gwf_tracer.h:87
@ CS_GWF_N_TRACER_MODELS
Definition cs_gwf_tracer.h:92
@ CS_GWF_TRACER_STANDARD
Definition cs_gwf_tracer.h:89
@ CS_GWF_TRACER_USER
Definition cs_gwf_tracer.h:91
void cs_gwf_set_standard_tracer(cs_gwf_tracer_t *tracer, const char *soil_name, double wmd, double alpha_l, double alpha_t, double distrib_coef, double reaction_rate)
Set a tracer for a specified soil when the tracer is attached to the default model.
Definition cs_gwf_tracer.c:544
void() cs_gwf_tracer_free_input_t(void *input)
Generic function to free the input of a tracer model.
Definition cs_gwf_tracer.h:80
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:153
void cs_gwf_tracer_standard_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:706
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:512
Definition cs_advection_field.h:149
Definition cs_cdo_connect.h:74
Definition cs_cdo_quantities.h:94
Main structure to handle the discretization and the resolution of an equation.
Field descriptor.
Definition cs_field.h:124
Definition cs_gwf_tracer.h:116
cs_field_t * diffusivity
Definition cs_gwf_tracer.h:124
cs_gwf_tracer_model_t model
Definition cs_gwf_tracer.h:122
int reaction_id
Definition cs_gwf_tracer.h:126
int id
Definition cs_gwf_tracer.h:118
void * input
Definition cs_gwf_tracer.h:130
cs_gwf_tracer_free_input_t * free_input
Definition cs_gwf_tracer.h:134
cs_gwf_tracer_update_t * update_properties
Definition cs_gwf_tracer.h:133
cs_equation_t * eq
Definition cs_gwf_tracer.h:119