Closed tgakay closed 2 years ago
A small update. I tried to reproduce numbers for the "Two dipoles" case in table 2 from https://doi.org/10.1063/1.481216 (E(eps_sur=Inf)=-2.0087525) and could only do that for a very small kappa=0.05. So it's obviously not the surface term. Alexei
Hi, Alexei,
Thanks for the very thorough debugging effort. I don't directly have a kappa (alpha, also beta in the PME literature!) sweep test for the dipole case, because I don't support the real space term in the code; I wanted to avoid the slippery slope of becoming a full MD engine, rather than just a reciprocal space helper. I can mimic a dipole with a set of equal and opposite charges and make a test case out of that (I already made something similar to test the electric field last week) so I'll let you know what I find from that. The dipole code itself was tested via a kappa sweep test in the code that inspired me to add multipoles, but I will check it again here. I'm out of town for a few days, so apologies in advance if you don't hear back from me immediately. I am very eager to get this resolved though, so that I can be sure the code is doing what I expect and so that you can use it for what your needs.
Thanks again,
Andy.
Sorry for the long delay in addressing this - it completely fell off my radar for a while. The dipoles should hopefully be fixed by #58 now, but please ping back if there are any further problems. I'm still a bit confused by the test that compares fields to finite differences of potentials; the test is great for cubic boxes, but not otherwise, so I still need to do some reading. Possible h=0 terms aside, the "kappa sweep" test and comparison to the literature values you cited above make me think that the current implementation is correct.
Hi Andy,
Thank you for the fix and for the heads up. I finally came around to testing it and can confirm that it fixes the issues I reported. I've now incorporated it into the AMS ForceField engine.
Thank you again and kind regards,
Alexei
On 25/06/2021 23:17, Andy Simmonett wrote:
Sorry for the long delay in addressing this - it completely fell off my radar for a while. The dipoles should hopefully be fixed by #58 https://github.com/andysim/helpme/pull/58 now, but please ping back if there are any further problems. I'm still a bit confused by the test that compares fields to finite differences of potentials; the test is great for cubic boxes, but not otherwise, so I still need to do some reading. Possible h=0 terms aside, the "kappa sweep" test and comparison to the literature values you cited above make me think that the current implementation is correct.
— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/andysim/helpme/issues/57#issuecomment-868837890, or unsubscribe https://github.com/notifications/unsubscribe-auth/AG3TYKHRVCXJXAMOMX2U2UTTUTW5DANCNFSM4WT6CAJQ.
Hi Andy,
I'm running into energy dependence on the kappa parameter when dipoles are present. I've noticed that helPME does not have kappasweep tests for this case so I'm wondering if you've verified it. When testing, I did add the E_self(mu) but it didn't help much. I also tried with a wide range of k-space grids and with a very large real-space cutoff, and both with zero and non-zero total dipole moment to no avail. Below is a table of one of the test runs for a water dimer from your unit tests (including coordinates, charges and dipole moments) with different kappas (called alpha). All quantities are in atomic units (Hartree and Bohr).
I would appreciate if you'd let me know if I'm missing something and maybe add a kappasweep test with dipoles.
Kind regards, Alexei
Edit: the GridSp is approximate. It's an input parameter used to compute the grid dimensions. Edit2: the splineOrder was 7 in all tests but I've also run with higher orders with the same results.