This repo (graphne-nnp) presents the interatomic potential development for a graphene monolayer using high-dimensional neural network methodology as implemented in the RuNNer code and the N2N2 C++ library interfaced with LAMMPS package.
Make sure that the RuNNer code and LAMMPS with pair_style nnp are built on your machine. For more details, please refer to the documentations.
- The
md.airebo.in
script reads the initial graphene structuregrn.lmp
fromlmp
directory, performing a molecular dynamics (MD) simulation in order to generate the initial dataset, and save it intoairebo.data
.
lmp_serial < md.airebo.in > lmp/md.airebo.out
- The
lammps_to_runner.py
Python script converts the initial datasetairebo.data
to the RuNNer input data formatinput.data
.
python lammps_to_runner.py lmp/airebo.data nnp/input.data
- Using RuNNer in mode 1 and 2 in order to generate symmetric functions and train the neural network potential (NNP), respectively.
cd nnp
sh runscript.sh > runscript.out
cd ..
- The
md.nnp.in
performs MD simulation using developed NNP innnp
directory and predicts trajectory of atoms for several next time steps (i.e. 100) and save the configurations intonnp.data
.
rm -f lmp/nnp.data
lmp_serial < md.nnp.in > lmp/md.nnp.out
-
The
rerun.airebo.in
readsnnp.data
structure file and performs single point calculation for each snapshot (configuration) obtained from previous step including energy, forces, charges, etc. -
The otained data in previous step is appended to the
airebo.data
and repeating from the step 2.
lmp_serial < rerun.airebo.in > lmp/rerun.airebo.out
This procedure constantly increases the size of dataset in order to effectively find holes in potential energy surface. It is eventually has to be stopped when a desired accuracy achieved. At this point, pred.md.nnp.in
can be used to perform the desired large-scale MD simulation. For sake of comparison, pred.md.airebo.in
script with the AIREBO potential is also available.
All the steps can automatically apply by running train_nnp.sh
.
Primary comparison between the trained NNP and the AIREBO potentials for a supercell of size of 2x2x1 (448 atoms) are found as follows:
- Radial distribution functions
- Energy per atom as function of temperature