Can not reproduce virial calculation #280
Replies: 3 comments 5 replies
-
Hi, can you send a code snippet showing your approach for the Si dataset? I would expect they are the same up to a sign (although always be careful with units in LAMMPS). |
Beta Was this translation helpful? Give feedback.
-
I'm confused by this expression. If this is indeed the sum of forces * positions, then this is not the virial. E.g. in a one-atom unit cell this would always be zero. So you probably mean something else? |
Beta Was this translation helpful? Give feedback.
-
Output:
This assumes that units are eV and Angstroms, I see virials are in eV so I assumed they are not normalized by volume. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Hi,
I'm trying to use ACEpotentials on a dataset I created, and I cannot find the definition of virial used by the code.
My dataset uses the LAMMPS' definition, as in https://docs.lammps.org/compute_pressure.html , and it sums f_i * r_j for over the atoms.
When I try to do the same with the Si dataset provided in the examples, I obtain different values.
What is the stress calculation performed for training? Maybe I missed e.g. periodic images contributions and volume tries?
Beta Was this translation helpful? Give feedback.
All reactions