MDDatasetBuilder
MDDatasetBuilder is a script to construct reference datasets for the training of neural network potentials from given LAMMPS trajectories.
Complex reaction processes in combustion unraveled by neural network-based molecular dynamics simulation, Nature Communications, 11, 5713 (2020), DOI: 10.1038/s41467-020-19497-z
Author: Jinzhe Zeng
Email: jzzeng@stu.ecnu.edu.cn
Installation
MDDatasetBuilder can be installed with pip:
pip install mddatasetbuilder
The installation process should be very quick, taking only a few minutes on a “normal” desktop computer.
Usage
Simple example
A LAMMPS dump file should be prepared. A LAMMPS bond file can be added for the addition information.
datasetbuilder -d dump.ch4 -b bonds.reaxc.ch4_new -a C H O -n ch4 -i 25
Here, dump.ch4 is the name of the dump file. bonds.reaxc.ch4_new is the name of the bond file, which is optional. C H O is the element in the trajectory. ch4 is the name of the dataset. 25 means the time step interval and the default value is 1.
Then you can generate Gaussian input files for each structure in the dataset and calculate the potential energy & atomic forces (assume the Gaussian 16 has already been installed.):
qmcalc -d dataset_ch4_GJf/000
qmcalc -d dataset_ch4_GJf/001
Next, prepare a DeePMD dataset and use DeePMD-kit to train a NN model.
preparedeepmd -p dataset_ch4_GJf
cd train && dp train train.json
The runtime of the software depends on the amount of data. It is more suited to running on a server rather than desktop computer.
DP-GEN
The MDDatasetBuilder package has been integrated with DP-GEN software:
dpgen init_reaction reaction.json machine.json
where an example of reaction.json can be found here, and machine.json should include the following keys:
reaxff_command, reaxff_resources, reaxff_machine, build_command, build_resources, build_machine, fp_command, fp_resources, fp_machine, and fp_group_size.
reaxff_command is the LAMMPS command, build_command is the MDDatasetbuilder command, and fp_command is the Gaussian 16 command.
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
File details
Details for the file mddatasetbuilder-1.3.2.tar.gz.
File metadata
- Download URL: mddatasetbuilder-1.3.2.tar.gz
- Upload date:
- Size: 22.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via:
twine/3.4.2 importlib_metadata/4.8.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.2 CPython/3.9.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
f0ea47abed89576f2bdf1ae0432d305682ce3c8660fb512f601a7be9df92d672
|
|
| MD5 |
51a1193fceb4c9fa2c8a5a521d47b2ba
|
|
| BLAKE2b-256 |
c0361fa80dafa7c835dc6a25ecd7bcbc87133b869be464c65d45c76408cfc175
|