MADNESS 0.10.1
Public Member Functions | Public Attributes | List of all members
refpotfunctor Struct Reference

reference potential for the Poisson solver of a Gaussian More...

Public Member Functions

 refpotfunctor (double alpha)
 ctor takes the exponent of the corresponding Gaussian exp(-alpha r^2)
 
double operator() (const coord_3d &xyz) const
 

Public Attributes

double arg
 
double exponent
 
double prefac
 
double sigma
 

Detailed Description

reference potential for the Poisson solver of a Gaussian

Given a unnormalized Gaussian return the result of the Poisson equation: [ V(r) = \int dr' 1/|r-r'| exp(-alpha r'^2) ] Formulas taken from wikipedia: http://en.wikipedia.org/wiki/Poisson%27s_equation#Potential_of_a_Gaussian_charge_density [ \nabla^2 \phi = \rho \rho(r) = Q * exp(-alpha r^2) \phi(r) = Q * 1/r erf(r/\sqrt{2} \sigma) ] where the Gaussian function is NOT normalized, and alpha = 1/(2 sigma^2)

Constructor & Destructor Documentation

◆ refpotfunctor()

refpotfunctor::refpotfunctor ( double  alpha)
inline

ctor takes the exponent of the corresponding Gaussian exp(-alpha r^2)

References arg, exponent, madness::constants::pi, pow(), prefac, and sigma.

Member Function Documentation

◆ operator()()

double refpotfunctor::operator() ( const coord_3d xyz) const
inline

Member Data Documentation

◆ arg

double refpotfunctor::arg

Referenced by refpotfunctor(), and operator()().

◆ exponent

double refpotfunctor::exponent

Referenced by refpotfunctor().

◆ prefac

double refpotfunctor::prefac

Referenced by refpotfunctor(), and operator()().

◆ sigma

double refpotfunctor::sigma

Referenced by refpotfunctor().


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