![]() |
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 29 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 8 of file SigmoidFunction.cpp.
References k_, S_r, MaterialPropertyLib::T_c, and T_c_.
| double MaterialPropertyLib::SigmoidFunction::d2Value | ( | double const & | T | ) | const |
Definition at line 40 of file SigmoidFunction.cpp.
| double MaterialPropertyLib::SigmoidFunction::dValue | ( | double const & | T | ) | const |
| double MaterialPropertyLib::SigmoidFunction::value | ( | double const & | T | ) | const |
Definition at line 14 of file SigmoidFunction.cpp.
|
private |
Definition at line 41 of file SigmoidFunction.h.
Referenced by SigmoidFunction(), d2Value(), dValue(), and value().
|
private |
Definition at line 44 of file SigmoidFunction.h.
Referenced by SigmoidFunction(), dValue(), and value().
|
private |
Definition at line 42 of file SigmoidFunction.h.
Referenced by SigmoidFunction(), dValue(), and value().