Replies: 1 comment 2 replies
-
DeePMD-kit already uses the force-based approach to calculate and fit virials. You can read the Appendix of the DeePMD-kit paper. |
Beta Was this translation helpful? Give feedback.
2 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.
-
It's well known that getting the virial/pressure right for liquid systems when using small box sizes, like used in DFT calculations, and with periodic boundaries, will result in errors from the liquid being more or less a "liquid crystal" and not a true liquid. DFT codes like VASP and CP2K calculate the stress tensor/virial using a derivation based on the assumption of periodic solids. For simulating liquids, there will be box size artifacts because of this.
So, I am wondering, when learning the virial (or stress tensor) in a machine learning potential, and then deploying on large systems for inference, it would seem that these small size/periodic system artifacts for liquids would propagate to the larger systems. An alternate strategy would be, I guess, to not learn the virial, but let the MD engine (for instance LAMMPS), calculate the stress tensor/pressure/virial using a force-based approach (and using the general method that allows this to be defined for many-body potentials).
Does anyone have any insights on this?
Beta Was this translation helpful? Give feedback.
All reactions