PPPM long-range electrostatics fails with “ZeroDivisionError” during initialization #2186
Unanswered
rahatun-cep
asked this question in
Support
Replies: 1 comment 1 reply
-
|
Use a debugger and set a breakpoint in hoomd-blue/hoomd/md/long_range/pppm.py Lines 289 to 302 in f5d00ec |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hi, I’m having trouble using PPPM in HOOMD 5.3.
Short-range Ewald works fine, but when I switch to PPPM I get the following warnings and crash:
RuntimeWarning: invalid value encountered in double_scalars (q2)
ZeroDivisionError: float division by zero in hoomd/md/long_range/pppm.py inside _diffpr()
The error happens during the PPPM setup phase, before the simulation begins.
What I think is happening:
It seems that one of the PPPM parameters (kappa, rcut, or the mesh dimensions) is being computed as zero or NaN, so the reciprocal-space grid cannot be constructed.
My questions:
Is this a known issue in HOOMD 5.3?
Are there recommended parameter ranges for PPPM in small boxes or with my charge distribution?
How can I diagnose which PPPM parameter is becoming zero?
Beta Was this translation helpful? Give feedback.
All reactions