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

\( f(x,y,z) = Ae^{-\frac{(z-z_0)^2}{2\sigma_z^2}} \) More...

Public Member Functions

 GaussianZ (double z0, double sigma_z, double amp)
 Functor returning a gaussian. More...
 
DG_DEVICE double operator() (double z) const
 Return the value of the gaussian. More...
 
DG_DEVICE double operator() (double x, double y, double z) const
 Return the value of the gaussian. More...
 

Detailed Description

\( f(x,y,z) = Ae^{-\frac{(z-z_0)^2}{2\sigma_z^2}} \)

Constructor & Destructor Documentation

◆ GaussianZ()

dg::GaussianZ::GaussianZ ( double  z0,
double  sigma_z,
double  amp 
)
inline

Functor returning a gaussian.

Parameters
z0z-center-coordinate
sigma_zz - variance (must be !=0)
ampAmplitude

Member Function Documentation

◆ operator()() [1/2]

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

Return the value of the gaussian.

\[ f(x,y,z) = Ae^{-\frac{(z-z_0)^2}{2\sigma_z^2}} \]

Parameters
xx - coordinate
yy - coordinate
zz - coordinate
Returns
gaussian

◆ operator()() [2/2]

DG_DEVICE double dg::GaussianZ::operator() ( double  z) const
inline

Return the value of the gaussian.

\[ f(z) = Ae^{-\frac{(z-z_0)^2}{2\sigma_z^2}} \]

Parameters
zz - coordinate
Returns
gaussian

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