MADNESS 0.10.1
|
The source is here.
We wish to solve Laplaces's equation within a non-homogeneous medium, i.e., in which the permittivity is not constant, with an external electric field.
Expanding and rearranging yields,
We can interpret
MADNESS's default Coulomb Green's function (
our equation becomes
The quantity in parentheses is the total electric field — the sum of the applied field and that due to the induced surface charge.
The exact solution is readily derived by expanding in spherical harmonics and matching the potential and electric displacement at the surface, or by looking inside Jackson, or by a quick google to find this page.
(Note that while the Green's function to Poisson's equation is
(Note that to obtain an accurate solution with