Skip to content

Question about pressure calculation with PBCs if using ASE #291

Answered by Linux-cpp-lisp
asedova asked this question in Q&A
Discussion options

You must be logged in to vote

Hi @asedova ,

but this seems to be the easiest way to get started running MD inference with a NEQUIP model

While there's a little bit of one-time effort to get it compiled, we generally recommend that people use pair_nequip in LAMMPS to run MD with NequIP or Allegro models. ASE is a very useful code, but its not really a production MD engine.

There's a notorious issue with pressure calculation and PBCs.

Regarding the calculation of the stress tensor, we take the directly analytical dE/dV approach using autodifferentiation, see:
https://github.com/mir-group/nequip/blob/main/nequip/nn/_grad_output.py#L218

We provide this stress tensor directly to both ASE, via our calculator, and to LAM…

Replies: 1 comment 2 replies

Comment options

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

@Linux-cpp-lisp
Comment options

Answer selected by Linux-cpp-lisp
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