Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Point-charge-interaction integrals for each point #296

Open
PaulWAyers opened this issue Aug 4, 2022 · 0 comments
Open

Point-charge-interaction integrals for each point #296

PaulWAyers opened this issue Aug 4, 2022 · 0 comments

Comments

@PaulWAyers
Copy link
Member

For the electrostatic potential and several other things we are doing, it would be helpful to be able to compute the 1-electron "electron-nuclear" attraction integrals for each point separately. That is, for points $\mathbf{r}_k$ and atomic orbitals (AO basis functions) $\phi_a(\mathbf{r})$, we'd like to be able to evaluate the quantity,

$$ V_{abk} = \int \frac{\phi_a(\mathbf{r}) \phi_b(\mathbf{r})}{|\mathbf{r} - \mathbf{r}_k|} d \mathbf{r} $$

It seems that the "raw" integral we need is GB2AttractionIntegral

GB2AttractionIntegral::GB2AttractionIntegral(long max_shell_type, double* charges,

and that overlay (with sum over "atomic" centers?) is compute_nuclear_attraction.

void GOBasis::compute_nuclear_attraction(double* charges, double* centers, long ncharge,

Unfortunately, this part of the code is not (very well) documented. @tovrstra do you have any advice on how to do/expose this? We could call the high-level function one time for every grid point, but that seems wasteful since (I think) a lot of the recursive work gets redone over and over.... @leila-pujal volunteered to delve into whatever implementation we need to add.

gbasis does this too, but we were trying to make it so we can do this with both "old" and "new" HORTON.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant