Skip to content

Regarding the selection of stress units #483

Answered by cw-tan
Zzz3626 asked this question in Q&A
Discussion options

You must be logged in to vote

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…

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@Zzz3626
Comment options

@cw-tan
Comment options

Answer selected by Zzz3626
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants