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

\( f(x,y) = Ae^{-\frac{(x-x_0)^2}{2\sigma_x^2} } \) More...

Public Member Functions

 GaussianX (double x0, double sigma_x, double amp)
 A Gaussian in x. 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,y) = Ae^{-\frac{(x-x_0)^2}{2\sigma_x^2} } \)

Constructor & Destructor Documentation

◆ GaussianX()

dg::GaussianX::GaussianX ( double  x0,
double  sigma_x,
double  amp 
)
inline

A Gaussian in x.

Parameters
x0x-center-coordinate
sigma_xx - variance (must be !=0)
ampAmplitude

Member Function Documentation

◆ operator()() [1/3]

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

◆ operator()() [2/3]

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

◆ operator()() [3/3]

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

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