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

Handling G = [0.0, 0.0, 0.0] #18

Open
jackbaker1001 opened this issue Feb 21, 2024 · 1 comment
Open

Handling G = [0.0, 0.0, 0.0] #18

jackbaker1001 opened this issue Feb 21, 2024 · 1 comment

Comments

@jackbaker1001
Copy link

Hi @hema-ted

From what I can tell from the code, the contribution to the accumulation over G-vectors just ignores the contribution at G =[0.0, 0.0, 0.0].

I know that this done to avoid the singularity in the expression (dividing by zero), but I am not sure this just warrants ignoring the term.

Do we have any justification for this?

@jackbaker1001 jackbaker1001 changed the title Handing at G = [0.0, 0.0, 0.0] Handling G = [0.0, 0.0, 0.0] Feb 21, 2024
@jackbaker1001
Copy link
Author

jackbaker1001 commented Feb 22, 2024

Just adding to this:

  1. We should consider what is done for other G-space computations at this limit. The Hartree potential, for example, leads to a similar equation in G-space to the spin-spin interaction. Sometimes we set n(G = 0) to zero (for both ions and electrons) and add a neutralizing background charge to compensate. Perhaps we could add this?

  2. I was taking a look at $lim_{\mathbf{G} \rightarrow 0} \frac{G_aG_b}{G^2}$. Unfortunately, the limit doesn't exist as the limit has a different values depending on the path to the origin.

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