Base class for smooth transitions between two functions of one variable. More...
#include <ADSmoothTransition.h>
Public Member Functions | |
ADSmoothTransition (const ADReal &x_center, const ADReal &transition_width) | |
Constructor. More... | |
virtual ADReal | value (const ADReal &x, const ADReal &f1, const ADReal &f2) const =0 |
Computes the transition value. More... | |
const ADReal & | leftEnd () const |
Returns the coordinate of the left end of the transition. More... | |
const ADReal & | rightEnd () const |
Returns the coordinate of the right end of the transition. More... | |
Protected Attributes | |
const ADReal | _x_center |
Center point of transition. More... | |
const ADReal | _transition_width |
Width of transition. More... | |
const ADReal | _x1 |
Left end point of transition. More... | |
const ADReal | _x2 |
Right end point of transition. More... | |
Base class for smooth transitions between two functions of one variable.
Definition at line 17 of file ADSmoothTransition.h.
Constructor.
[in] | x_center | Center point of transition |
[in] | transition_width | Width of transition |
Definition at line 12 of file ADSmoothTransition.C.
|
inline |
Returns the coordinate of the left end of the transition.
Definition at line 40 of file ADSmoothTransition.h.
Referenced by ADSmoothTransitionTestMaterial::ADSmoothTransitionTestMaterial(), and ADShaftConnectedPump1PhaseUserObject::computeFluxesAndResiduals().
|
inline |
Returns the coordinate of the right end of the transition.
Definition at line 45 of file ADSmoothTransition.h.
Referenced by ADSmoothTransitionTestMaterial::ADSmoothTransitionTestMaterial(), and ADShaftConnectedPump1PhaseUserObject::computeFluxesAndResiduals().
|
pure virtual |
Computes the transition value.
[in] | x | Point at which to evaluate function |
[in] | f1 | Left function |
[in] | f2 | Right function |
Implemented in ADCubicTransition, and ADWeightedTransition.
|
protected |
Width of transition.
Definition at line 51 of file ADSmoothTransition.h.
|
protected |
Left end point of transition.
Definition at line 54 of file ADSmoothTransition.h.
Referenced by ADCubicTransition::initialize(), leftEnd(), ADCubicTransition::value(), ADWeightedTransition::value(), and ADWeightedTransition::weight().
|
protected |
Right end point of transition.
Definition at line 56 of file ADSmoothTransition.h.
Referenced by ADCubicTransition::initialize(), rightEnd(), ADCubicTransition::value(), ADWeightedTransition::value(), and ADWeightedTransition::weight().
|
protected |
Center point of transition.
Definition at line 49 of file ADSmoothTransition.h.