Skip to content

learningmatter-mit/T-NFF

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Temperature transferable Neural Force Field (TNFF) for coarse-grained molecular dynamics simulations

Implementation of the temperature transferable neural force field from our paper https://doi.org/10.1063/5.0022431

The model is based on SchNet [1]. It provides an interface to train and evaluate neural networks for force fields, specifically tested on coarse-grained ionic liquid simulations. Furthermore, the work pipeline uses the coarse-graining auto-encoders for determining the statistically most viable coarse-grain mapping [2].

Usage

Three notebooks run through the workflow of the paper

  • Part1_cg_mapping.ipynb Uses coarse-grained auto-encoders for determening the best mapping for the ionic liquid. Uses MD data from LAMMPS with a force field for ionic liquids. The full data set used for training can be found [3]
  • Part2_data_file_creation.ipynb Using the previously mentioned data and the newly generated coarse-grained mapping preparing the data for training, applying the coarse-grained filter for the training data.
  • Part3_temp_transfer.ipynb Training the model and running MD simulations on ASE. The hyperparameters in the model are the ones from the best run, though the data is not the full dataset. The best model from the paper is included in the ./examples/models/ directory

Installation from source

This software requires the following packages:

We highly recommend to create a conda environment to run the code. To do that, use the following commands:

conda upgrade conda
conda create -n nff python=3.7 scikit-learn pytorch>=1.2.0 cudatoolkit=10.0 ase pandas pymatgen -c pytorch -c conda-forge

You need to activate the tnff environment to install the NFF package:

conda activate nff

Finally, install the tnff package by running:

pip install .

References

  • [1] K.T. Schütt. P.-J. Kindermans, H. E. Sauceda, S. Chmiela, A. Tkatchenko, K.-R. Müller.
    SchNet: A continuous-filter convolutional neural network for modeling quantum interactions. Advances in Neural Information Processing Systems 30, pp. 992-1002 (2017) link

  • [2] Wang, W., & Gómez-Bombarelli, R. Coarse-graining auto-encoders for molecular dynamics. npj Computational Materials, 5(1), 1-9 (2019) link

  • [3] Ruza, Jurgis (2021): MD simulation data for training the T-NFF model. figshare. Dataset. https://doi.org/10.6084/m9.figshare.12967217.v1

About

Temperature transferable dual graph convolutional neural network for coarse grained molecular dynamics simulations.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published