File size: 264 Bytes
0a3d724
 
 
 
 
 
 
 
507ff9b
0a3d724
1
2
3
4
5
6
7
8
9
10
11
from ase.build import bulk
from ase import Atom
from ase.io import write

Ni = bulk('Ni', cubic=True) * (2, 2, 2)
H = Atom('H', position=Ni.cell.diagonal()/2)
NiH = Ni + H

write('initial_.data', NiH, format='lammps-data', 
      masses=True, atom_style='atomic')