Inconsistent pressure in NVT runs between LAMMPS and ASE - which one to trust? #345
-
Hello, When running NVT trajectories of the same system and NequIP model (learned with stress) with ASE and LAMMPS, I get different average results for the pressure. I've created a minimal reproducible example available here, which details the thermostat and versions used, as well as how the pressure is read from the output files. Would you know where this is coming from? And which value should I trust? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 9 replies
-
Hi @casteln , Thanks very much for the detailed report!! Which LAMMPS branch? One of them lacks stress support and will only give the kinetic term. Sorry about this, I've been meaning to clean up that branch situation for a while now and have not yet have the time, I expect to very soon. |
Beta Was this translation helpful? Give feedback.
Hi all, sorry for my late response here and thanks @ssrokyz for chiming in!!
Yes, I would suspect that this is the case. You can see how in the
pair_nequip
unit tests we ask LAMMPS for the stress tensor (not the virial, but still without the temperature / kinetic term) which is what we compare to the output from ASE:https://github.com/mir-group/pair_nequip/blob/stress/tests/test_python_repro.py#L148-L152
and
https://github.com/mir-group/pair_nequip/blob/stress/tests/test_python_repro.py#L317-L344