-
jse (>= 4.0.0)
-
C & C++ Compiler
For Windows, MSVC is recommended
For Linux, GCC is recommended
-
MPI Development Environment
For Windows, Microsoft MPI is recommended (both
msmpisdk.msiandmsmpisetup.exeare required)For Linux like Ubuntu, you can use
sudo apt install libopenmpi-dev
-
Ensure that the environment requirements mentioned above are met and that
jsehas finished compiling the relevant JNI libraries:jse --jnibuild
-
Ensure that the
lmpfolder is in thejseGroovy classpath. You can choose one of the following methods:-
jseadds the current working directory to the classpath, so you can simply ensure that thelmpfolder exists in the current running directory:├─your_working_dir │ └─lmp │ ├─FixSgcmcNNAP.groovy │ ├─FixFlipNNAP.groovy │ └─FixFlipNNAPScaled.groovy └─flipFe.lmpin -
OR, place the
lmpfolder inside thelib/groovydirectory ofjse.jseautomatically adds this directory to the classpath:├─lib │ ├─groovy │ │ └─lmp │ │ ├─FixSgcmcNNAP.groovy │ │ ├─FixFlipNNAP.groovy │ │ └─FixFlipNNAPScaled.groovy │ └─jse-all.jar └─jse -
OR, add the directory containing
lmpto theJSE_GROOVY_EXLIB_DIRSenvironment variable:export JSE_GROOVY_EXLIB_DIRS="path/to/your/package/dir:$JSE_GROOVY_EXLIB_DIRS"
-
-
Run LAMMPS via
jse -lmp. For example:mpiexec -np 8 jse -lmp -in flipFe.lmpin
As a many-body interaction, NNAP requires double the cutoff radius to strictly calculate the energy difference caused by species changes. Therefore, you need to set a larger communications cutoff radius using a command similar to:
comm_modify cutoff 14.0
(flipFe.lmpin and the comments in the source code.
Qing'an Li, Lilong Luo, Jian Li, Pengfei Guan, Magnetic Machine-Learning Potential Unveils a Barrierless Martensitic Pathway in Iron.
Scripts on this repository are licensed under the GNU GPL v3. See LICENSE for details.