LAMMPS home
LAMMPS script explanations (example input scripts available in install directory)
.cif
crystal file using supercell software
supercell -i input.cif -v 2 -s 2x2x2 -o output
.xyz
file from .cif
file generated by supercell using cif2xyz
cif2xyz input.cif -z angle_x,angle_y,angle_z -d dimension_x,dimension_y,dimension_z -o output
.xyz
or .pdb
file format (other supported but not suitable)
.xyz
file (only positions, no bonds, unlimited system size).pdb
file (positions + bonds, 9,999 atoms system limit)packmol < packmol.inp
Visualization done to check wheter the system was generated correctly and can be used as input geometry in LAMMPS script
.dat
.dat
using: File > Export File > LAMMPS Data File
(Atom style full recommended)Any text editor can be used to edit LAMMPS input scripts.
Notepad++ is a better alternative to the default Notepad.
Visual Studio Code is the recommended option.
LAMMPS extentsion for VS Code makes writting LAMMPS scripts much easier thanks to the syntax highlighting, hover explanations, offline documentation and more.
(TBA)
((there are no easy examples))
Running in serial mode (1 core)
lmp_serial < in.file
--> will run in the console
Running with MPI (multi-core)
mpiexec -n 4 lmp_mpi -in input.lmp -pk omp 2 -sf omp
--> will run in the console (4 cores, omp hyperthreading)
.lammpstrj
file
.lammpstrj
file
.lammpstrj
file