![]() |
OGS
|
Sigmoid function with scalar argument and two constant parameters
The sigmoid function is a smooth step function with the range \([0,1]\) defined by the following formula
\[ (1-S_r) \left[1 + \exp(k(T - T_\mathrm{c})) \right]^{-1} \]
where \(S_r\) is residual saturation, representing the amount of liquid water remaining after the water-ice phase transition is complete. \(T_\mathrm{c}\) is the critical value (e.g. a phase change temperature). The parameter \(k\) is proportional to the slope at the characteristic value and controls thus the steepness. Letting \(k\) go to infinity, the heaviside step function is obtained.
Definition at line 38 of file SigmoidFunction.h.
#include <SigmoidFunction.h>
Public Member Functions | |
SigmoidFunction (double const k, double const T_c, double const S_r) | |
double | value (double const &T) const |
double | dValue (double const &T) const |
double | d2Value (double const &T) const |
Private Attributes | |
double const | k_ |
double const | T_c_ |
double const | S_r |
MaterialPropertyLib::SigmoidFunction::SigmoidFunction | ( | double const | k, |
double const | T_c, | ||
double const | S_r ) |
Definition at line 17 of file SigmoidFunction.cpp.
double MaterialPropertyLib::SigmoidFunction::d2Value | ( | double const & | T | ) | const |
Definition at line 49 of file SigmoidFunction.cpp.
References dValue(), k_, and value().
Referenced by MaterialPropertyLib::TemperatureDependentFraction::d2Value().
double MaterialPropertyLib::SigmoidFunction::dValue | ( | double const & | T | ) | const |
Definition at line 38 of file SigmoidFunction.cpp.
References k_, S_r, T_c_, and value().
Referenced by d2Value(), and MaterialPropertyLib::TemperatureDependentFraction::dValue().
double MaterialPropertyLib::SigmoidFunction::value | ( | double const & | T | ) | const |
Definition at line 23 of file SigmoidFunction.cpp.
Referenced by d2Value(), dValue(), and MaterialPropertyLib::TemperatureDependentFraction::value().
|
private |
Definition at line 50 of file SigmoidFunction.h.
|
private |
Definition at line 53 of file SigmoidFunction.h.
|
private |
Definition at line 51 of file SigmoidFunction.h.