How to use LAMMPS

Software
Version
Cluster
LAMMPS
20210310
Dardel

The LAMMPS module can be loaded with

ml PDC/21.11
ml lammps/20210310

This will add the LAMMPS bin directory to your PATH, so that LAMMPS can be started with the command lmp.

Below is an example batch script for a LAMMPS job:

#!/bin/bash

# time allocation
#SBATCH -A snicYYYY-X-XX
# name of this job
#SBATCH -J lammps
# wall time for this job
#SBATCH -t 01:00:00
# partition for this job
#SBATCH -p main

# number of nodes
#SBATCH --nodes=2
# number of MPI processes per node
#SBATCH --ntasks-per-node=128

ml PDC/21.11
ml lammps/20210310

# Run with the file infile as input and write to outfile
srun lmp < infile > outfile

This will run LAMMPS (lmp) with 256 cores (2 nodes), and will read the input specified in infile and write to outfile in the directory the job was submitted. Submit the batch script with the sbatch command, see also the How to run jobs.

More information

For more information, refer to the LAMMPS manual.

Disclaimer

PDC takes no responsibility for the correctness of results produced with the binaries. Always evaluate the binaries against known results for the systems and properties you are investigating before using the binaries for production jobs.