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

\( f(\psi) = \begin{cases} 1 \text{ if } \psi < \psi_{\max}\\ 0 \text{ if } \psi > (\psi_{\max} + 4\alpha) \\ \exp\left( - \frac{(\psi - \psi_{\max})^2}{2\alpha^2}\right), \text{ else} \end{cases} \) More...

Public Member Functions

 GaussianDamping (double psimax, double alpha)
 
DG_DEVICE double operator() (double psi) const
 

Detailed Description

\( f(\psi) = \begin{cases} 1 \text{ if } \psi < \psi_{\max}\\ 0 \text{ if } \psi > (\psi_{\max} + 4\alpha) \\ \exp\left( - \frac{(\psi - \psi_{\max})^2}{2\alpha^2}\right), \text{ else} \end{cases} \)

One up to psimax, then a Gaussian down to zero

Constructor & Destructor Documentation

◆ GaussianDamping()

dg::GaussianDamping::GaussianDamping ( double  psimax,
double  alpha 
)
inline

Member Function Documentation

◆ operator()()

DG_DEVICE double dg::GaussianDamping::operator() ( double  psi) const
inline

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