Cubic polynomial transition between two functions of one variable. More...
#include <ADCubicTransition.h>
Public Member Functions | |
ADCubicTransition (const ADReal &x_center, const ADReal &transition_width) | |
Constructor. More... | |
virtual ADReal | value (const ADReal &x, const ADReal &f1, const ADReal &f2) const override |
Computes the transition value. More... | |
void | initialize (const ADReal &f1_end_value, const ADReal &f2_end_value, const ADReal &df1dx_end_value, const ADReal &df2dx_end_value) |
Computes the derivative of 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 | |
ADReal | _A |
ADReal | _B |
ADReal | _C |
ADReal | _D |
bool | _initialized |
Flag that transition has been initialized. More... | |
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... | |
Cubic polynomial transition between two functions of one variable.
Definition at line 17 of file ADCubicTransition.h.
Constructor.
[in] | x_center | Center point of transition |
[in] | transition_width | Width of transition |
Definition at line 17 of file ADCubicTransition.C.
void ADCubicTransition::initialize | ( | const ADReal & | f1_end_value, |
const ADReal & | f2_end_value, | ||
const ADReal & | df1dx_end_value, | ||
const ADReal & | df2dx_end_value | ||
) |
Computes the derivative of the transition value.
[in] | x | Point at which to evaluate transition |
[in] | df1dx | First function derivative |
[in] | df2dx | Second function derivative |
Definition at line 30 of file ADCubicTransition.C.
Referenced by ADSmoothTransitionTestMaterial::ADSmoothTransitionTestMaterial().
|
inlineinherited |
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().
|
inlineinherited |
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().
|
overridevirtual |
Computes the transition value.
[in] | x | Point at which to evaluate function |
[in] | f1 | Left function |
[in] | f2 | Right function |
Implements ADSmoothTransition.
Definition at line 77 of file ADCubicTransition.C.
Referenced by ADSmoothTransitionTestMaterial::computeQpProperties().
|
protected |
Definition at line 44 of file ADCubicTransition.h.
Referenced by initialize(), and value().
|
protected |
Definition at line 45 of file ADCubicTransition.h.
Referenced by initialize(), and value().
|
protected |
Definition at line 46 of file ADCubicTransition.h.
Referenced by initialize(), and value().
|
protected |
Definition at line 47 of file ADCubicTransition.h.
Referenced by initialize(), and value().
|
protected |
Flag that transition has been initialized.
Definition at line 50 of file ADCubicTransition.h.
Referenced by initialize(), and value().
|
protectedinherited |
Width of transition.
Definition at line 51 of file ADSmoothTransition.h.
|
protectedinherited |
Left end point of transition.
Definition at line 54 of file ADSmoothTransition.h.
Referenced by initialize(), ADSmoothTransition::leftEnd(), ADWeightedTransition::value(), value(), and ADWeightedTransition::weight().
|
protectedinherited |
Right end point of transition.
Definition at line 56 of file ADSmoothTransition.h.
Referenced by initialize(), ADSmoothTransition::rightEnd(), ADWeightedTransition::value(), value(), and ADWeightedTransition::weight().
|
protectedinherited |
Center point of transition.
Definition at line 49 of file ADSmoothTransition.h.