LAMMPS installations on Tetralith & Sigma

LAMMPS is a classical molecular dynamics code, and an acronym for Large-scale Atomic/Molecular Massively Parallel Simulator. For the features of this code and applications, please visit and

Official homepage:

LAMMPS manual and tutorials are also available from the official homepage.

Naming scheme for binaries and library packages

Name Description
lmp (or lmp_tetralith) a LAMMPS binary
liblammps.a (or liblammps_tetralith.a) a static library (or a dynamic library

Note that lmp_tetralith, liblammps_tetralith.a and also work on Sigma despite their names.

How to run

Load the LAMMPS module corresponding to the version you want to use, e.g.

module load LAMMPS/22Aug18-nsc1-intel-2018b-eb

It prepends the LAMMPS bin directory, with lmp and the equivalent lmp_tetralith binaries, to the PATH. It also launches two environmental variables. One, LMPEXEC, to the LAMMPS executable and one, LAMMPS_LIB, to the directory with the static and dynamic LAMMPS libraries.

LAMMPS can be built with a lot of packages and external libraries. To see what was included in the build of the loaded LAMMPS module,

lmp -h

To launch the desired binary. For example,

mpprun lmp -echo screen -in in.file

Use the LAMMPS_LIB variable to link with the LAMMPS library. For example,


Example batch script

A minimum batch script for running LAMMPS:

#SBATCH -n 64
#SBATCH -t 4:00:00
#SBATCH -J jobname
#SBATCH -A SNIC-xxx-yyy

module load LAMMPS/22Aug18-nsc1-intel-2018b-eb
mpprun lmp -log out.file -in in.file

(Note that you should at least edit the jobname, -J, and account, -A, before submitting but probably also the number of tasks (MPI ranks), -n, and requested walltime, -t.)


Due to the frequent updates of LAMMPS, we will build specific LAMMPS versions upon request. If you need any specific version, please contact with your requirements (LAMMPS version, specific packages, external libraries, etc.).

User Area

User support

Guides, documentation and FAQ.

Getting access

Applying for projects and login accounts.

System status

Everything OK!

No reported problems


NSC Express