Discontinuous Galerkin Library
#include "dg/algorithm.h"

\( f(x) = f(x,y) = f(x,y,z) = A\exp(-x/L_n) + B \) More...

Public Member Functions

 ExpProfX (double amp, double bamp, double ln)
 Construct with three coefficients. More...
 
DG_DEVICE double operator() (double x) const
 
DG_DEVICE double operator() (double x, double y) const
 
DG_DEVICE double operator() (double x, double y, double z) const
 

Detailed Description

\( f(x) = f(x,y) = f(x,y,z) = A\exp(-x/L_n) + B \)

Constructor & Destructor Documentation

◆ ExpProfX()

dg::ExpProfX::ExpProfX ( double  amp,
double  bamp,
double  ln 
)
inline

Construct with three coefficients.

Parameters
ampamplitude A
bampbackground amplitude B (choose zero for constant gradient length
lngradient lenght L_n (must be !=0)

Member Function Documentation

◆ operator()() [1/3]

DG_DEVICE double dg::ExpProfX::operator() ( double  x) const
inline

◆ operator()() [2/3]

DG_DEVICE double dg::ExpProfX::operator() ( double  x,
double  y 
) const
inline

◆ operator()() [3/3]

DG_DEVICE double dg::ExpProfX::operator() ( double  x,
double  y,
double  z 
) const
inline

The documentation for this struct was generated from the following file: