Weighted transition between two functions of one variable. More...
#include <WeightedTransition.h>
Public Member Functions | |
WeightedTransition (const Real &x_center, const Real &transition_width) | |
Constructor. More... | |
virtual Real | value (const Real &x, const Real &f1, const Real &f2) const override |
Computes the transition value. More... | |
Real | derivative (const Real &x, const Real &f1, const Real &f2, const Real &df1dx, const Real &df2dx) const |
Computes the derivative of the transition value. More... | |
Real | weight (const Real &x) const |
Computes the weight of the first function. More... | |
const Real & | leftEnd () const |
Returns the coordinate of the left end of the transition. More... | |
const Real & | rightEnd () const |
Returns the coordinate of the right end of the transition. More... | |
Protected Attributes | |
const Real | _x_center |
Center point of transition. More... | |
const Real | _transition_width |
Width of transition. More... | |
const Real | _x1 |
Left end point of transition. More... | |
const Real | _x2 |
Right end point of transition. More... | |
Weighted transition between two functions of one variable.
Definition at line 17 of file WeightedTransition.h.
Constructor.
[in] | x_center | Center point of transition |
[in] | transition_width | Width of transition |
Definition at line 12 of file WeightedTransition.C.
Real WeightedTransition::derivative | ( | const Real & | x, |
const Real & | f1, | ||
const Real & | f2, | ||
const Real & | df1dx, | ||
const Real & | df2dx | ||
) | const |
Computes the derivative of the transition value.
[in] | x | Point at which to evaluate transition |
[in] | f1 | First function value |
[in] | f2 | Second function value |
[in] | df1dx | First function derivative |
[in] | df2dx | Second function derivative |
Definition at line 32 of file WeightedTransition.C.
Referenced by SmoothTransitionTestMaterial::computeQpProperties().
|
inlineinherited |
Returns the coordinate of the left end of the transition.
Definition at line 40 of file SmoothTransition.h.
Referenced by CubicTransitionFunction::CubicTransitionFunction(), and SmoothTransitionTestMaterial::SmoothTransitionTestMaterial().
|
inlineinherited |
Returns the coordinate of the right end of the transition.
Definition at line 45 of file SmoothTransition.h.
Referenced by CubicTransitionFunction::CubicTransitionFunction(), and SmoothTransitionTestMaterial::SmoothTransitionTestMaterial().
|
overridevirtual |
Computes the transition value.
[in] | x | Point at which to evaluate function |
[in] | f1 | Left function |
[in] | f2 | Right function |
Implements SmoothTransition.
Definition at line 18 of file WeightedTransition.C.
Referenced by SmoothTransitionTestMaterial::computeQpProperties(), and CosineTransitionFunction::value().
Computes the weight of the first function.
[in] | x | Point at which to evaluate weight |
Definition at line 48 of file WeightedTransition.C.
Referenced by derivative(), and value().
|
protectedinherited |
Width of transition.
Definition at line 51 of file SmoothTransition.h.
|
protectedinherited |
Left end point of transition.
Definition at line 54 of file SmoothTransition.h.
Referenced by CubicTransition::derivative(), derivative(), CubicTransition::initialize(), SmoothTransition::leftEnd(), value(), CubicTransition::value(), and weight().
|
protectedinherited |
Right end point of transition.
Definition at line 56 of file SmoothTransition.h.
Referenced by CubicTransition::derivative(), derivative(), CubicTransition::initialize(), SmoothTransition::rightEnd(), value(), CubicTransition::value(), and weight().
|
protectedinherited |
Center point of transition.
Definition at line 49 of file SmoothTransition.h.