8.0
general documentation
cs_gwf_toolbox.h File Reference
#include "cs_defs.h"
#include "cs_gwf_tracer.h"
+ Include dependency graph for cs_gwf_toolbox.h:

Go to the source code of this file.

Functions

void cs_gwf_toolbox_bateman (double time_eval, const cs_gwf_tracer_decay_chain_t *tdc, const double init_inv[], double eval_inv[])
 Define the values of the inventory for each tracer at the time time_eval given as parameter from an initial inventory. The evolution of the inventory follows the Bateman's solution without source term. More...
 

Function Documentation

◆ cs_gwf_toolbox_bateman()

void cs_gwf_toolbox_bateman ( double  time_eval,
const cs_gwf_tracer_decay_chain_t tdc,
const double  init_inv[],
double  eval_inv[] 
)

Define the values of the inventory for each tracer at the time time_eval given as parameter from an initial inventory. The evolution of the inventory follows the Bateman's solution without source term.

The decay coefficient is automatically retrieved from the data settings given when creating the decay chain. One assumes that the inventory values are given in mol. The time unit (s, hour, year...) has to be consistent with the unit given as parameter at the definition of the decay chain and with the value of time_eval.

Parameters
[in]time_evaltime at which one evaluates the new inventory
[in]tdcdecay chain to consider
[in]init_invinitial inventory for each tracer in the chain
[in,out]eval_invresulting inventory at the given time