https://mooseframework.inl.gov
Loading...
Searching...
No Matches
Public Member Functions | Protected Attributes | List of all members
ADSmoothTransition Class Referenceabstract

Base class for smooth transitions between two functions of one variable. More...

#include <ADSmoothTransition.h>

Inheritance diagram for ADSmoothTransition:
[legend]

Public Member Functions

 ADSmoothTransition (const ADReal &x_center, const ADReal &transition_width)
 Constructor.
 
virtual ADReal value (const ADReal &x, const ADReal &f1, const ADReal &f2) const =0
 Computes the transition value.
 
const ADReal & leftEnd () const
 Returns the coordinate of the left end of the transition.
 
const ADReal & rightEnd () const
 Returns the coordinate of the right end of the transition.
 

Protected Attributes

const ADReal _x_center
 Center point of transition.
 
const ADReal _transition_width
 Width of transition.
 
const ADReal _x1
 Left end point of transition.
 
const ADReal _x2
 Right end point of transition.
 

Detailed Description

Base class for smooth transitions between two functions of one variable.

Definition at line 17 of file ADSmoothTransition.h.

Constructor & Destructor Documentation

◆ ADSmoothTransition()

ADSmoothTransition::ADSmoothTransition ( const ADReal &  x_center,
const ADReal &  transition_width 
)

Constructor.

Parameters
[in]x_centerCenter point of transition
[in]transition_widthWidth of transition

Definition at line 12 of file ADSmoothTransition.C.

13 : _x_center(x_center),
14 _transition_width(transition_width),
17{
18}
const ADReal _transition_width
Width of transition.
const ADReal _x2
Right end point of transition.
const ADReal _x_center
Center point of transition.
const ADReal _x1
Left end point of transition.

Member Function Documentation

◆ leftEnd()

const ADReal & ADSmoothTransition::leftEnd ( ) const
inline

Returns the coordinate of the left end of the transition.

Definition at line 40 of file ADSmoothTransition.h.

40{ return _x1; }

Referenced by ADSmoothTransitionTestMaterial::ADSmoothTransitionTestMaterial(), and ADShaftConnectedPump1PhaseUserObject::computeFluxesAndResiduals().

◆ rightEnd()

const ADReal & ADSmoothTransition::rightEnd ( ) const
inline

Returns the coordinate of the right end of the transition.

Definition at line 45 of file ADSmoothTransition.h.

45{ return _x2; }

Referenced by ADSmoothTransitionTestMaterial::ADSmoothTransitionTestMaterial(), and ADShaftConnectedPump1PhaseUserObject::computeFluxesAndResiduals().

◆ value()

virtual ADReal ADSmoothTransition::value ( const ADReal &  x,
const ADReal &  f1,
const ADReal &  f2 
) const
pure virtual

Computes the transition value.

Parameters
[in]xPoint at which to evaluate function
[in]f1Left function
[in]f2Right function

Implemented in ADCubicTransition, and ADWeightedTransition.

Member Data Documentation

◆ _transition_width

const ADReal ADSmoothTransition::_transition_width
protected

Width of transition.

Definition at line 51 of file ADSmoothTransition.h.

◆ _x1

const ADReal ADSmoothTransition::_x1
protected

◆ _x2

const ADReal ADSmoothTransition::_x2
protected

◆ _x_center

const ADReal ADSmoothTransition::_x_center
protected

Center point of transition.

Definition at line 49 of file ADSmoothTransition.h.


The documentation for this class was generated from the following files: