theochem / grid

Python library for numerical integration, interpolation, and differentiation on (molecular) grids.
https://grid.qcdevs.org/
GNU Lesser General Public License v3.0
46 stars 19 forks source link

Add test; Make sure moments behave correctly when origin is shifted. #159

Open PaulWAyers opened 1 year ago

PaulWAyers commented 1 year ago

For moments, we can use as tests a function (e.g. a Gaussian) that is centered at the origin and also one centered off the origin. The change in solid-harmonic coefficients when you shift the origin of a moment expansion is analytically computable.

There are also some analytic formulas available.

Originally posted by @PaulWAyers in https://github.com/theochem/grid/issues/13#issuecomment-1212190396