Repository navigation
|
Dear Community, I noticed that the docs states that NequIP always expresses stress in the "consistent" units of energy / length^3, which are not the typical physical units used by many codes for stress. Does this mean that I cannot use bar as a unit and need to convert it to eV/ų? I appreciate any insight and help. Thank you! |
Answered by
cw-tan
Mar 23, 2025
Replies: 1 comment 2 replies
|
Hi @Zzz3626 , Yes, if your energies are in eV, and your positions (and cell) are in angstroms. If you decide to use hartree energies or bohr lengths, or any specific combination, the stress has to be consistent with them (same with forces). |
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
We just apply automatic differentiation on the PyTorch model without having a specific preference for units -- that's why the units of the underlying dataset being used to train the model must be self-consistent. For LAMMS's metal units, as long as your energy is in eV and length units are in angstrom (and everything, including stresses, are in consistent units) during training, the stress will be computed internally correctly such that whatever LAMMPS spits out is in expected metal units, i.e. bars. You can sanity check this by running your model in an ASE calculator and through LAMMPS, and comparing that the stresses for the same structure are related by the expected sign and units chan…