LAMMPS
Extremely versatile and extensible; the Swiss-army knife of materials molecular dynamics.
Tool 028 of 100 in the MolForge directory of open-source tools. Every fact below was read from the repository's host on 2026-11-28.

What LAMMPS is
LAMMPS, the Large-scale Atomic/Massively Parallel Simulator, is a classical molecular dynamics code from Sandia National Laboratories. It integrates the motion of particles that interact through a chosen potential, where a particle may be an atom, a coarse-grained bead, a grain of sand or a mesoscale element. Its design is a library of interchangeable interaction styles, integrators and fixes, each selected by a command, so that very different physics can be set up without writing code.
Users write a script of LAMMPS commands that defines the box, reads a data file of atoms and bonds, picks pair and bond styles, applies thermostats or deformations and schedules output. Trajectories go to dump files and thermodynamic quantities to the log. Many potentials are built in: Lennard-Jones, EAM and MEAM for metals, Tersoff, ReaxFF, SNAP and interfaces to machine-learned potentials such as MACE, NequIP and Allegro. Moltemplate, Packmol and ASE build inputs; MDAnalysis, OVITO and freud read the output. A Python module drives it from a notebook.
LAMMPS has no built-in topology builder for proteins and no default force field, so biomolecular work needs external preparation.
Features
- Hundreds of pair, bond and many-body styles including EAM, Tersoff, ReaxFF and SNAP
- Accelerator packages KOKKOS, GPU, OPENMP and INTEL for GPUs and many-core CPUs
- Granular, dissipative particle dynamics, peridynamics and smoothed-particle hydrodynamics styles
- Fixes for thermostats, barostats, deformation, rigid bodies and constraints
- Plug-ins for PLUMED and machine-learned potentials through pair styles
- Python module for driving simulations and reading state from scripts
What it is for
- Simulate metals, ceramics and alloys with embedded-atom or machine-learned potentials
- Model polymer melts and coarse-grained soft matter under shear or deformation
- Study fracture, diffusion and phase transitions in solids
- Run reactive simulations of combustion or oxidation with ReaxFF
- Prototype new interaction potentials inside an established engine
Verified facts
| Family | Classical molecular dynamics |
|---|---|
| Language or basis | Materials |
| Repository | https://github.com/lammps/lammps (GitHub) |
| Licence | GPL-2.0 (SPDX identifier as declared in the repository) |
| Main language on GitHub | C++ |
| Last commit | 2026-11-27 |
| Latest release | stable_30Sep2026_update1 (2026-11-01) |
| Stars | 3,154 on 2026-11-28 |
| Open issues and pull requests | 103 on 2026-11-28 |
| Repository created | 2013-08-09 |
| Verified | 2026-11-28 by MolForge's checking script, against the host's API |
Where LAMMPS fits
Force-field simulation engines for biomolecules, materials and soft matter. AMBER is commercial (AmberTools is free) and NAMD is free under its own licence.
LAMMPS appears in this chain of the directory: A learned interatomic potential.
It is the first place to look when you want simulating atomic motion (MD).
Questions people ask
- Does LAMMPS run on GPUs?
- Yes, through two routes. The GPU package offloads pair and neighbour computations to CUDA, OpenCL or HIP devices while the CPU handles the rest. The KOKKOS package runs most of the simulation on the GPU using a performance-portable layer. Not every pair style is ported to both, so the documentation lists which styles each package supports.
- Can LAMMPS simulate proteins?
- It can, but it is not the usual choice. LAMMPS has CHARMM and AMBER-compatible functional forms, PME electrostatics and SHAKE constraints, yet no tool to assign force-field parameters to a PDB file. Users prepare the system in another package and convert it with ParmEd, Moltemplate or CHARMM-GUI, then run in LAMMPS.
- What input does LAMMPS need?
- An input script of commands and usually a data file. The data file lists atoms with types, charges and coordinates, plus bonds, angles and dihedrals for molecular systems, and may include force-field coefficients. The script sets units, boundary conditions, interaction styles, integration and output. Data files are generated by Moltemplate, ASE, Packmol and other builders.
- Can LAMMPS use machine-learned potentials?
- Yes. The ML-IAP, ML-SNAP, ML-PACE and ML-HDNNP packages implement several model families natively, and external pair styles connect MACE, NequIP, Allegro and DeePMD models exported to TorchScript or other runtimes. These need LAMMPS to be built with the corresponding package and library.
- Is LAMMPS open source?
- Yes. The repository declares the GPL-2.0 licence (SPDX identifier read from the host on 2026-11-28). Read the licence text in the repository before redistributing or embedding it.
- Where is the LAMMPS source code?
- At https://github.com/lammps/lammps (GitHub). This is the address the host reported on the day of verification; renamed repositories are followed to their new home.
- Is LAMMPS still maintained?
- The last commit was pushed on 2026-11-27 and the latest tagged release is stable_30Sep2026_update1 from 2026-11-01; the repository had 103 open issues and pull requests on 2026-11-28.
- Does MolForge use LAMMPS?
- No. MolForge runs nine of the hundred tools in this directory (RDKit, OpenMM, AutoDock Vina, Open Babel, MDTraj, pymbar and NGL, plus PySCF and xTB in MFsig); LAMMPS is listed because of its place in classical molecular dynamics, not because we run it.
Our comments on LAMMPS
MolForge does not run LAMMPS in production. This page is a verified pointer, not a review: the facts above come from the repository on the date shown, the description is ours, and we make no claim about accuracy or speed that we have not measured. If you maintain LAMMPS and something here is wrong or out of date, write to hello@molforge.ai and we will correct the source file.
Test status
Not tested by MolForge. To check LAMMPS yourself: clone the repository, follow the installation section of its README, and run the test suite the project ships before trusting a result; the last-commit date and the open issue count above tell you how alive the project is.