theochem / gbasis

Python library for analytical evaluation and integration of Gaussian-type basis functions and related quantities.
http://gbasis.qcdevs.org/
GNU Lesser General Public License v3.0
36 stars 22 forks source link

Nuclear-electron attraction energy #7

Closed PaulWAyers closed 5 years ago

PaulWAyers commented 5 years ago

compute_external_potential(shell1, center1, shell2, center2, conventions, point_charges, point_coords)

Compute the potential due to a product of 2 shells of Gaussians with an array of point charges and their centers. Gives the matrix of external potential integrals

Algorithm could be McMurchie-Davidson or Obara-Saika but probably Obara-Saika is a bit easier?

PaulWAyers commented 5 years ago

Use mpmath for the Boys function. It means that we get arbitrary-precision integrals 'for free.' Performance is good at standard precision too, and the next Intel hardware may even support arbitrary precision natively.

http://mpmath.org/ https://www.anandtech.com/show/13405/intel-10nm-cannon-lake-and-core-i3-8121u-deep-dive-review/4 (hat-tip Matt via Slack)

kimt33 commented 5 years ago

See https://github.com/theochem/gbasis/blob/master/gbasis/nuclear_electron_attraction.py