Base class for smooth transitions between two functions of one variable. More...
#include <SmoothTransition.h>
Public Member Functions | |
SmoothTransition (const Real &x_center, const Real &transition_width) | |
Constructor. More... | |
virtual Real | value (const Real &x, const Real &f1, const Real &f2) const =0 |
Computes the transition value. 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... | |
Base class for smooth transitions between two functions of one variable.
Definition at line 17 of file SmoothTransition.h.
Constructor.
[in] | x_center | Center point of transition |
[in] | transition_width | Width of transition |
Definition at line 12 of file SmoothTransition.C.
|
inline |
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().
|
inline |
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().
|
pure virtual |
Computes the transition value.
[in] | x | Point at which to evaluate function |
[in] | f1 | Left function |
[in] | f2 | Right function |
Implemented in CubicTransition, and WeightedTransition.
|
protected |
Width of transition.
Definition at line 51 of file SmoothTransition.h.
|
protected |
Left end point of transition.
Definition at line 54 of file SmoothTransition.h.
Referenced by CubicTransition::derivative(), WeightedTransition::derivative(), CubicTransition::initialize(), leftEnd(), WeightedTransition::value(), CubicTransition::value(), and WeightedTransition::weight().
|
protected |
Right end point of transition.
Definition at line 56 of file SmoothTransition.h.
Referenced by CubicTransition::derivative(), WeightedTransition::derivative(), CubicTransition::initialize(), rightEnd(), WeightedTransition::value(), CubicTransition::value(), and WeightedTransition::weight().
|
protected |
Center point of transition.
Definition at line 49 of file SmoothTransition.h.