add lammps tests: success
Browse files- tests/lammps/build-structure.py +10 -0
- tests/lammps/in.lammps +17 -0
- tests/lammps/initial.data +49 -0
- tests/lammps/log.lammps +27 -0
tests/lammps/build-structure.py
ADDED
|
@@ -0,0 +1,10 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
from ase.build import bulk
|
| 2 |
+
from ase import Atom
|
| 3 |
+
from ase.io import write
|
| 4 |
+
|
| 5 |
+
Ni = bulk('Ni', cubic=True) * (2, 2, 2)
|
| 6 |
+
H = Atom('H', position=Ni.cell.diagonal()/2)
|
| 7 |
+
NiH = Ni + H
|
| 8 |
+
|
| 9 |
+
write('initial.data', NiH, format='lammps-data',
|
| 10 |
+
masses=True, atom_style='atomic')
|
tests/lammps/in.lammps
ADDED
|
@@ -0,0 +1,17 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
|
| 2 |
+
# global parameters
|
| 3 |
+
units real
|
| 4 |
+
atom_style atomic
|
| 5 |
+
atom_modify map yes
|
| 6 |
+
newton on
|
| 7 |
+
|
| 8 |
+
read_data initial.data
|
| 9 |
+
|
| 10 |
+
# pair style
|
| 11 |
+
pair_style mace
|
| 12 |
+
pair_coeff * * ../../pretrained/2023-12-12-mace-128-L1_epoch-199.model-lammps.pt Na Cl
|
| 13 |
+
|
| 14 |
+
|
| 15 |
+
|
| 16 |
+
|
| 17 |
+
|
tests/lammps/initial.data
ADDED
|
@@ -0,0 +1,49 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
(written by ASE)
|
| 2 |
+
|
| 3 |
+
33 atoms
|
| 4 |
+
2 atom types
|
| 5 |
+
|
| 6 |
+
0.0 7.04 xlo xhi
|
| 7 |
+
0.0 7.04 ylo yhi
|
| 8 |
+
0.0 7.04 zlo zhi
|
| 9 |
+
|
| 10 |
+
Masses
|
| 11 |
+
|
| 12 |
+
1 1.0079999997406976 # H
|
| 13 |
+
2 58.693399984901454 # Ni
|
| 14 |
+
|
| 15 |
+
Atoms # atomic
|
| 16 |
+
|
| 17 |
+
1 2 0 0 0
|
| 18 |
+
2 2 0 1.76 1.76
|
| 19 |
+
3 2 1.76 0 1.76
|
| 20 |
+
4 2 1.76 1.76 0
|
| 21 |
+
5 2 0 0 3.52
|
| 22 |
+
6 2 0 1.76 5.2800000000000002
|
| 23 |
+
7 2 1.76 0 5.2800000000000002
|
| 24 |
+
8 2 1.76 1.76 3.52
|
| 25 |
+
9 2 0 3.52 0
|
| 26 |
+
10 2 0 5.2800000000000002 1.76
|
| 27 |
+
11 2 1.76 3.52 1.76
|
| 28 |
+
12 2 1.76 5.2800000000000002 0
|
| 29 |
+
13 2 0 3.52 3.52
|
| 30 |
+
14 2 0 5.2800000000000002 5.2800000000000002
|
| 31 |
+
15 2 1.76 3.52 5.2800000000000002
|
| 32 |
+
16 2 1.76 5.2800000000000002 3.52
|
| 33 |
+
17 2 3.52 0 0
|
| 34 |
+
18 2 3.52 1.76 1.76
|
| 35 |
+
19 2 5.2800000000000002 0 1.76
|
| 36 |
+
20 2 5.2800000000000002 1.76 0
|
| 37 |
+
21 2 3.52 0 3.52
|
| 38 |
+
22 2 3.52 1.76 5.2800000000000002
|
| 39 |
+
23 2 5.2800000000000002 0 5.2800000000000002
|
| 40 |
+
24 2 5.2800000000000002 1.76 3.52
|
| 41 |
+
25 2 3.52 3.52 0
|
| 42 |
+
26 2 3.52 5.2800000000000002 1.76
|
| 43 |
+
27 2 5.2800000000000002 3.52 1.76
|
| 44 |
+
28 2 5.2800000000000002 5.2800000000000002 0
|
| 45 |
+
29 2 3.52 3.52 3.52
|
| 46 |
+
30 2 3.52 5.2800000000000002 5.2800000000000002
|
| 47 |
+
31 2 5.2800000000000002 3.52 5.2800000000000002
|
| 48 |
+
32 2 5.2800000000000002 5.2800000000000002 3.52
|
| 49 |
+
33 1 3.52 3.52 3.52
|
tests/lammps/log.lammps
ADDED
|
@@ -0,0 +1,27 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
LAMMPS (28 Mar 2023 - Development)
|
| 2 |
+
OMP_NUM_THREADS environment is not set. Defaulting to 1 thread. (src/comm.cpp:98)
|
| 3 |
+
using 1 OpenMP thread(s) per MPI task
|
| 4 |
+
|
| 5 |
+
# global parameters
|
| 6 |
+
units real
|
| 7 |
+
atom_style atomic
|
| 8 |
+
atom_modify map yes
|
| 9 |
+
newton on
|
| 10 |
+
|
| 11 |
+
read_data initial.data
|
| 12 |
+
Reading data file ...
|
| 13 |
+
orthogonal box = (0 0 0) to (7.04 7.04 7.04)
|
| 14 |
+
1 by 1 by 1 MPI processor grid
|
| 15 |
+
reading atoms ...
|
| 16 |
+
33 atoms
|
| 17 |
+
read_data CPU = 0.020 seconds
|
| 18 |
+
|
| 19 |
+
# pair style
|
| 20 |
+
pair_style mace
|
| 21 |
+
pair_coeff * * ../../pretrained/2023-12-12-mace-128-L1_epoch-199.model-lammps.pt Na Cl
|
| 22 |
+
|
| 23 |
+
|
| 24 |
+
|
| 25 |
+
|
| 26 |
+
|
| 27 |
+
Total wall time: 0:00:01
|