deepmodeling / dpdata

Manipulating multiple atomic simulation data formats, including DeePMD-kit, VASP, LAMMPS, ABACUS, etc.
https://docs.deepmodeling.com/projects/dpdata/
GNU Lesser General Public License v3.0
189 stars 128 forks source link

Using the DP model to predict the energy of each frame structure in the LAMMPS trajectory #609

Open XuFanffei opened 4 months ago

XuFanffei commented 4 months ago

Summary

I now have a lambps trajectory that contains many structures, but these structures are not the original lambps trajectory structure, but some extracted molecular clusters. Therefore, the number of atoms or types of elements in each frame may be different, but overall they are several elements contained in the original trajectory. But for this manually spliced lambps trajectory, the model's predicted code will report an error. One method is for me to extract each molecular cluster into a separate lambps trajectory, write a script to read each file, and achieve energy prediction, but the efficiency is too slow because I have tens of thousands of molecular cluster structures.

DeePMD-kit Version

2.1.5

TensorFlow Version

2.8.0

Python Version, CUDA Version, GCC Version, LAMMPS Version, etc

No response

Details

1091706144749_ pic 1101706144789_ pic

wanghan-iapcm commented 4 months ago

better to write py script who calls the dp's python interface to inference different data frames.