https://mooseframework.inl.gov
Public Member Functions | Protected Attributes | List of all members
SmoothTransition Class Referenceabstract

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

#include <SmoothTransition.h>

Inheritance diagram for SmoothTransition:
[legend]

Public Member Functions

 SmoothTransition (const Real &x_center, const Real &transition_width)
 Constructor. More...
 
virtual Real value (const Real &x, const Real &f1, const Real &f2) const =0
 Computes the transition value. More...
 
const RealleftEnd () const
 Returns the coordinate of the left end of the transition. More...
 
const RealrightEnd () const
 Returns the coordinate of the right end of the transition. More...
 

Protected Attributes

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...
 

Detailed Description

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

Definition at line 17 of file SmoothTransition.h.

Constructor & Destructor Documentation

◆ SmoothTransition()

SmoothTransition::SmoothTransition ( const Real x_center,
const Real transition_width 
)

Constructor.

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

Definition at line 12 of file SmoothTransition.C.

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

Member Function Documentation

◆ leftEnd()

const Real& SmoothTransition::leftEnd ( ) const
inline

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().

40 { return _x1; }
const Real _x1
Left end point of transition.

◆ rightEnd()

const Real& SmoothTransition::rightEnd ( ) const
inline

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().

45 { return _x2; }
const Real _x2
Right end point of transition.

◆ value()

virtual Real SmoothTransition::value ( const Real x,
const Real f1,
const Real f2 
) const
pure virtual

Computes the transition value.

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

Implemented in CubicTransition, and WeightedTransition.

Member Data Documentation

◆ _transition_width

const Real SmoothTransition::_transition_width
protected

Width of transition.

Definition at line 51 of file SmoothTransition.h.

◆ _x1

const Real SmoothTransition::_x1
protected

◆ _x2

const Real SmoothTransition::_x2
protected

◆ _x_center

const Real SmoothTransition::_x_center
protected

Center point of transition.

Definition at line 49 of file SmoothTransition.h.


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