Discontinuous Galerkin Library
#include "dg/algorithm.h"
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages

f(x,y)=Ae(yy0)22σy2 More...

Public Member Functions

 GaussianY (double y0, double sigma_y, double amp)
 Functor returning a gaussian. More...
 
DG_DEVICE double operator() (double x, double y) const
 Return the value of the gaussian. More...
 

Detailed Description

f(x,y)=Ae(yy0)22σy2

Constructor & Destructor Documentation

◆ GaussianY()

dg::GaussianY::GaussianY ( double  y0,
double  sigma_y,
double  amp 
)
inline

Functor returning a gaussian.

Parameters
y0y-center-coordinate
sigma_yy - variance (must be !=0)
ampAmplitude

Member Function Documentation

◆ operator()()

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

Return the value of the gaussian.

f(x,y)=Ae(yy0)22σy2

Parameters
xx - coordinate
yy - coordinate
Returns
gaussian

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