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

Laplacian of KS orbitals incorrect at RHS boundary #78

Closed
timcallow opened this issue Aug 24, 2021 · 0 comments · Fixed by #80
Closed

Laplacian of KS orbitals incorrect at RHS boundary #78

timcallow opened this issue Aug 24, 2021 · 0 comments · Fixed by #80
Assignees
Labels
bug Something isn't working

Comments

@timcallow
Copy link
Contributor

timcallow commented Aug 24, 2021

The laplace function in mathtools module gives some numerical errors on the RHS boundary, due to the numpy.gradient function which uses finite differences.

This contaminates the kinetic energy density and thus the total kinetic energy with a small (but significant when computing pressures) numerical error. See for example the attached, we see the k.e.d. seems to approaching an asymptotic limit but the final 3 points are incorrect.

Screenshot from 2021-08-24 10-01-35

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant