Lethe Open-Source Library version 1.2.0
Developer Guide
Loading...
Searching...
No Matches
tracer_reaction_model.h File Reference
#include <core/physical_property_model.h>
#include <algorithm>
#include <cmath>
Include dependency graph for tracer_reaction_model.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  TracerReactionPrefactorModel
class  NoneTracerReactionPrefactor
class  ConstantTracerReactionPrefactor
class  TanhLevelsetTracerReactionPrefactor
class  GaussianLevelsetTracerReactionPrefactor

Functions

double calculate_effective_concentration (const double C, const double threshold)
double calculate_d_effective_concentration_dC (const double C, const double threshold)

Function Documentation

◆ calculate_d_effective_concentration_dC()

double calculate_d_effective_concentration_dC ( const double C,
const double threshold )
inline

Computes the derivative of effective concentration in regards to the input concentration.

Parameters
[in]CConcentration value
[in]thresholdThreshold value above which effective concentration will be

Definition at line 39 of file tracer_reaction_model.h.

References calculate_effective_concentration().

◆ calculate_effective_concentration()

double calculate_effective_concentration ( const double C,
const double threshold )
inline

Computes the effective concentration above the threshold and with a smooth transition.

This function prevents NaN in the reaction rate computations when the reaction order is lower than 1 by introducing a small threshold value, to be set above 0.

Parameters
[in]CConcentration value
[in]thresholdThreshold value above which effective concentration will be

Definition at line 25 of file tracer_reaction_model.h.