MADNESS 0.10.1
|
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 |
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)
|
inline |
|
inline |
References arg, madness::Vector< T, N >::normf(), and prefac.
double refpotfunctor::arg |
Referenced by refpotfunctor(), and operator()().
double refpotfunctor::exponent |
Referenced by refpotfunctor().
double refpotfunctor::prefac |
Referenced by refpotfunctor(), and operator()().
double refpotfunctor::sigma |
Referenced by refpotfunctor().