Cubic polynomial transition between two functions of one variable. More...
#include <CubicTransition.h>
Public Member Functions | |
CubicTransition (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 &df1dx, const Real &df2dx) const |
Computes the derivative of the transition value. More... | |
void | initialize (const Real &f1_end_value, const Real &f2_end_value, const Real &df1dx_end_value, const Real &df2dx_end_value) |
Initializes the polynomial coefficients. 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 | |
Real | _A |
Real | _B |
Real | _C |
Real | _D |
bool | _initialized |
Flag that transition has been initialized. More... | |
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... | |
Cubic polynomial transition between two functions of one variable.
Definition at line 17 of file CubicTransition.h.
Constructor.
[in] | x_center | Center point of transition |
[in] | transition_width | Width of transition |
Definition at line 16 of file CubicTransition.C.
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 89 of file CubicTransition.C.
Referenced by SmoothTransitionTestMaterial::computeQpProperties().
void CubicTransition::initialize | ( | const Real & | f1_end_value, |
const Real & | f2_end_value, | ||
const Real & | df1dx_end_value, | ||
const Real & | df2dx_end_value | ||
) |
Initializes the polynomial coefficients.
[in] | f1_end_value | Value of left function at left transition end point |
[in] | f2_end_value | Value of right function at right transition end point |
[in] | df1dx_end_value | Value of left function derivative at left transition end point |
[in] | df2dx_end_value | Value of right function derivative at right transition end point |
Definition at line 29 of file CubicTransition.C.
Referenced by CubicTransitionFunction::CubicTransitionFunction(), and SmoothTransitionTestMaterial::SmoothTransitionTestMaterial().
|
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 76 of file CubicTransition.C.
Referenced by SmoothTransitionTestMaterial::computeQpProperties(), and CubicTransitionFunction::value().
|
protected |
Definition at line 54 of file CubicTransition.h.
Referenced by derivative(), initialize(), and value().
|
protected |
Definition at line 55 of file CubicTransition.h.
Referenced by derivative(), initialize(), and value().
|
protected |
Definition at line 56 of file CubicTransition.h.
Referenced by derivative(), initialize(), and value().
|
protected |
Definition at line 57 of file CubicTransition.h.
Referenced by initialize(), and value().
|
protected |
Flag that transition has been initialized.
Definition at line 60 of file CubicTransition.h.
Referenced by derivative(), initialize(), 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 derivative(), WeightedTransition::derivative(), initialize(), SmoothTransition::leftEnd(), WeightedTransition::value(), value(), and WeightedTransition::weight().
|
protectedinherited |
Right end point of transition.
Definition at line 56 of file SmoothTransition.h.
Referenced by derivative(), WeightedTransition::derivative(), initialize(), SmoothTransition::rightEnd(), WeightedTransition::value(), value(), and WeightedTransition::weight().
|
protectedinherited |
Center point of transition.
Definition at line 49 of file SmoothTransition.h.