Experiencing NaN Values and Temperature Instability during NVT Simulation #409
Replies: 1 comment
-
|
Following Thomas Loux's Suggestion
I was able to solve this issue. |
Beta Was this translation helpful? Give feedback.
0 replies
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.
Uh oh!
There was an error while loading. Please reload this page.
-
Note: I'm relatively new to molecular dynamics (MD) simulations and might have some gaps in my understanding of the concepts and implementation.
I’m currently trying to recreate a simulation based on Florain Müller-Plathe's paper titled "A simple non-equilibrium molecular dynamics method for calculating the thermal conductivity." Unfortunately, I am encountering NaN values during the integration step, specifically from step 0 to around step 10. Furthermore, the system's temperature appears to fluctuate dramatically.
Based on my observations from the temperature and energy plots, my hypothesis is that the instability might stem from a few atoms being placed extremely close together due to the use of
rng.uniform, which could result in exceedingly high potential energy.I attempted to use optimizers to relax the system, thereby reducing its potential energy and forces, but the nan issue persists. The temperature continues to randomly spike well beyond logical variance.
Is there any advice or guidance on what might be going wrong in my approach? What steps could I take to resolve these NaN values and stabilize the system's temperature?
NVT Simulation Code: simulation-code.py
Sample Output: output.txt
Other Trials Output: Equilibrium-Phase-Testing.odt
Simulation Paper: NEMD Simulation
Beta Was this translation helpful? Give feedback.
All reactions