reference potential for the Poisson solver of a Gaussian
More...
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)
◆ refpotfunctor()
refpotfunctor::refpotfunctor |
( |
double |
alpha | ) |
|
|
inline |
◆ operator()()
double refpotfunctor::operator() |
( |
const coord_3d & |
xyz | ) |
const |
|
inline |
◆ arg
double refpotfunctor::arg |
◆ exponent
double refpotfunctor::exponent |
◆ prefac
double refpotfunctor::prefac |
◆ sigma
double refpotfunctor::sigma |
The documentation for this struct was generated from the following file: