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
\[ \left[1 + \exp(k(T - T_\mathrm{c})) \right]^{-1} \]
where \(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 36 of file SigmoidFunction.h.
#include <SigmoidFunction.h>
Public Member Functions | |
SigmoidFunction (double const k, double const T_c) | |
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_ |
MaterialPropertyLib::SigmoidFunction::SigmoidFunction | ( | double const | k, |
double const | T_c ) |
Definition at line 17 of file SigmoidFunction.cpp.
double MaterialPropertyLib::SigmoidFunction::d2Value | ( | double const & | T | ) | const |
Definition at line 50 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 37 of file SigmoidFunction.cpp.
References k_, T_c_, and value().
Referenced by d2Value(), and MaterialPropertyLib::TemperatureDependentFraction::dValue().
double MaterialPropertyLib::SigmoidFunction::value | ( | double const & | T | ) | const |
Definition at line 22 of file SigmoidFunction.cpp.
Referenced by d2Value(), dValue(), and MaterialPropertyLib::TemperatureDependentFraction::value().
|
private |
Definition at line 48 of file SigmoidFunction.h.
|
private |
Definition at line 49 of file SigmoidFunction.h.