Weighted transition between two functions of one variable. More...
#include <ADWeightedTransition.h>
Public Member Functions | |
ADWeightedTransition (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... | |
ADReal | weight (const ADReal &x) const |
Computes the weight of the first function. 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... | |
Weighted transition between two functions of one variable.
Definition at line 17 of file ADWeightedTransition.h.
ADWeightedTransition::ADWeightedTransition | ( | const ADReal & | x_center, |
const ADReal & | transition_width | ||
) |
Constructor.
[in] | x_center | Center point of transition |
[in] | transition_width | Width of transition |
Definition at line 12 of file ADWeightedTransition.C.
|
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 18 of file ADWeightedTransition.C.
Referenced by ADShaftConnectedPump1PhaseUserObject::computeFluxesAndResiduals(), and ADSmoothTransitionTestMaterial::computeQpProperties().
Computes the weight of the first function.
[in] | x | Point at which to evaluate weight |
Definition at line 32 of file ADWeightedTransition.C.
Referenced by 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 ADCubicTransition::initialize(), ADSmoothTransition::leftEnd(), value(), ADCubicTransition::value(), and weight().
|
protectedinherited |
Right end point of transition.
Definition at line 56 of file ADSmoothTransition.h.
Referenced by ADCubicTransition::initialize(), ADSmoothTransition::rightEnd(), value(), ADCubicTransition::value(), and weight().
|
protectedinherited |
Center point of transition.
Definition at line 49 of file ADSmoothTransition.h.