-
Notifications
You must be signed in to change notification settings - Fork 123
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
Simulation unstable when using triclinic updates in MTTK integrators #755
Comments
I guess it is becaue the MTTK barostat is not very stable. So you want to control all the 6 degrees of freedom. In this case you can try to use the more stable Berendsen or SCR method. For example, using the SCR method, you can write
Also, it is a good practice to write
With the above considerations, you will have:
|
Thanks for the suggestion. Yes, I am currently using the SCR barostat which seems to be working fine. I had some previously done simulations with LAMMPS which uses the MTTK barostat, which is why I tried this. Also, I was thinking the MTTK integrator is supposed to sample NPT ensemble more reliably. But it seems the SCR barostat is also fine? I am unsure of what differences I should expect. Thanks anyways. The reason I posted this as an issue is because it seems that this issue arises very fast (within 100 timesteps), so I thought it might be due to some implementation issue. Also, it seemed that the MTTK barostat with the |
|
Oh I didn't know there was a LAMMPS implementation. Thanks for the info. I will try compiling that when I get time and will report the results here. I will use the SCR barostat for my NEP simulations. Thanks for the pointer. |
Due to certain limitations of GPUMD code, we cannot change an orthogonal box to a tri box during a simulation. If you want to use tri MTTK, you need to change the box to tri before simulation. For example, you can add 0.0001 to an non-diagonal element in |
Thanks. This was indeed the issue and it got solved by starting from an initial triclinic cell. It would be nice to give a warning in this case, where the cell is orthogonal and the required simulation requires a tri box. Otherwise, feel free to close the issue. |
Thanks for your explanation @psn417 @rashidrafeek I will leave it here for some time. Perhaps we can make this part more robust soon. |
I was testing out some simulations with GPUMD and I noticed that the when using the
tri
option in thenpt_mttk
ensemble, the atoms breaks apart. This only occurs for thetri
option and not theiso
oraniso
options to update cell vectors. I initially noticed this for a model I had trained, but I also tested this with one of the models in nep-data gilab repo. I specifically used the model for CsPbBr3 there and the same model.xyz there, with the following input:The cell parameter changes indicating large volume change in the simulation is shown below:
For comparison, the following is obtained when I use
aniso
instead oftri
:The text was updated successfully, but these errors were encountered: