-
Hello, I have a LAMMPS .dump file containing atomic positions and forces, and I would like to convert the .dump file to a format usable by DeePMD-Kit using dpdata. I have a few questions:
Here is the script I used to try and extract the forces:
Here is the error message I receive when I run this script: KeyError: 'forces' I have also attached my .dump file and my file containing the system energy and virials for each frame. Thank you! |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 2 replies
-
You can parse the file independently and feed the data dictionary to dpdata. An example is deepmd-kit/source/tests/infer/test_models.py Lines 291 to 303 in 38815b3
|
Beta Was this translation helpful? Give feedback.
It's the potential energy that only corresponding to the atomic coordinates and types, and the forces should be the negative gradient of the potential energy.