# LAMMPS jobs

> What HiveBoard shows for a LAMMPS job on a Slurm cluster: steps against the run commands with time left, thermo charts, warnings and XYZ dumps in 3-D.

Source: https://hiveboard.dev/docs/codes/lammps · Section: Simulation codes · HiveBoard 0.1.7 · Updated 2026-10-19

## In short

- HiveBoard recognises a LAMMPS folder by log.lammps, in.lammps or a .lammpstrj dump, or by atom_style, pair_style and units lines in the input script.
- Progress is the step of the last thermo line against the run commands added up; the thermo values are read for the default style, thermo_style multi and the usual custom layouts.
- Only an XYZ dump with real element symbols can be drawn in 3-D; dumps of atom types cannot.

HiveBoard follows a LAMMPS job by reading the input script and the log — `log.lammps`, or wherever `-log` or the shell sent it — which holds the echoed input, the thermo output of every run and the timing at the end. Following the job installs nothing on the cluster and changes nothing in the folder. In the job list, your own job carries the code tag **LAMMPS** and its kind of run.

## What HiveBoard shows

### Progress and time left

- **MD** (and GCMC, reactive MD, deposition) — the step of the last thermo line, against the `run` commands of the script added up. The step counter runs on from one `run` to the next, so their sum is the length of the job; after a `reset_timestep`, the last `run` is the one measured against.
- **A minimisation** — the iteration reached, against the maximum the `minimize` command allows.

When a `run` takes a variable, or the script loops (`jump`, `next`), there is no plain number to count against, and the bar is the share of the wall-time limit used — as it is for a NEB. The time left is the time per thousand steps so far times the thousands left ("~…s per 1000 steps × up to … left (often finishes sooner)"), never longer than the time before the wall-time limit. When the log ends with "Total wall time", the bar is full.

Typical status sentences: "Step … of ….", "Running — step ….", "Minimising — iteration … of up to ….", "Finished at step … — … ns/day in the last run."

### Figures and charts

The thermo columns are whatever `thermo_style` asked for. HiveBoard reads the step — the first column — in every style whose header starts with `Step`, and reads Temp, PotEng or E_pair, TotEng, Press and Volume:

- in full for `thermo_style multi`, whose lines name each value;
- for the table styles, when they sit where the header of the last run puts them in the default style (with or without Volume) or the usual `custom step temp pe ke etotal press vol` family.

The [Overview](/docs/job/overview-tab) then shows **Step**, **Temperature**, **Potential energy** or **Pair energy**, **Total energy**, **Pressure** and **Volume**, in the units of the input; for a NEB, **Largest replica force**, **Forward barrier** and **Reverse barrier**; for a minimisation, **Minimiser stopped on**, **Final energy** and **Final force norm**; and **Performance**, **Atoms**, **MPI processes**, **Run time** and **Version**.

The charts are **Temperature**, **Potential energy** (or **Pair energy**) and **Pressure** over the recent thermo output. A chart appears once it has two points.

### Errors and warnings

An error is quoted: "LAMMPS stopped: …", and so is a warning LAMMPS printed near the end of the log: "LAMMPS warned: …". HiveBoard adds a warning when dangerous neighbour-list builds were reported, and when a minimisation stopped on its iteration limit or because its line search could not move. "No output update for N min — job may be stalled." appears when the log has not changed for more than 15 minutes while the job runs.

### Setup

The [Setup](/docs/job/setup-tab) tab's **Calculation setup** reads the script: Units, Atom style, Pair style, Long-range, Time step, Integrator, Thermostat, Barostat, Run length, Minimiser, NEB stages, Thermo output, Thermo style and Starts from.

HiveBoard does not restart LAMMPS runs: **Continue** is offered for VASP only. LAMMPS continues from a restart file (`write_restart`, then `read_restart`) or a data file, which you set up yourself.

## Kinds of run it tells apart

HiveBoard reads the kind from the input script and takes the first that fits:

| Kind | What it means |
|---|---|
| NEB | Nudged elastic band over several replicas (neb command, run with -partition) |
| GCMC | Grand-canonical Monte Carlo insertions and deletions during MD (fix gcmc) |
| Reactive MD | Bond-forming reactions during MD (fix bond/react) |
| Deposition | Atoms or molecules added during the run (fix deposit) |
| MD | Molecular dynamics (run command) |
| Minimisation | Energy minimisation only (minimize command, no run) |
| Run | A LAMMPS script without a run or minimize command of its own (rerun, include files, loops) |

## The 3-D structure

LAMMPS dumps hold atom types, not elements. Only an XYZ dump written with `dump_modify element`, which names real element symbols, can be drawn: the [Structure tab](/docs/job/structure-tab) plays its last 20 frames. A dump of bare type numbers gives nothing to draw, and neither does a queued job. An XYZ dump has no cell, so none is drawn.

## Files it recognises

These are the files the LAMMPS spec names:

| Role | Names | What it is |
|---|---|---|
| Input script | `in.*`, `*.in`, `*.lammps`, `*.lmp`, `*.inp` | The input script: units, atom_style, pair_style, fixes, thermo, run / minimize |
| Log | `log.lammps`, `log.*`, `*.log`, `*.out` | The log — the echoed input, the thermo output of every run, timing at the end |
| XYZ dump | `*.xyz` | XYZ dump (dump ... xyz); shown in 3-D only when dump_modify element wrote real element symbols |
| Dumps | `dump.*`, `*.lammpstrj`, `*.dcd`, `*.xtc` | Dump files — atom types, not elements; dump, DCD and XTC trajectories |
| Restarts | `restart.*`, `*.restart*` | Binary restart (restart N / write_restart), read by read_restart |
| Data | `data.*`, `*.data` | Data file read by read_data |
| Citations | `log.cite` | Citations for the features this run used |
| Replica logs | `log.lammps.*` | Per-replica logs of a multi-partition run (NEB, tempering) |

A file is read as the script only if it holds `pair_style`, `atom_style`, `read_restart` or `read_data`, and as the log only if it holds LAMMPS's banner; of several, the newest is read. The dumps and restarts are marked as large: the download button on the row asks before copying one to your computer.

> [!NOTE]
> In HiveBoard 0.1.7 the **What it is** column of the [Files tab](/docs/job/files-tab) goes by the file name alone and takes the first note whose names fit. `log.lammps` also fits the script's `*.lammps`, so it is described as the input script; `log.cite` and the replica logs are described as the log. What HiveBoard reads from them is not affected.

## How HiveBoard recognises a LAMMPS folder

- **Tell-tale names**: `log.lammps`, `in.lammps`, `*.lammps` and `*.lammpstrj` mean LAMMPS on their own.
- **Signature**: an input whose top has an `atom_style`, `pair_style`, `bond_style`, `kspace_style` or `read_restart` line, or a `units` line naming a LAMMPS unit style (`lj`, `real`, `metal` …); or a log that begins with "LAMMPS (" and a date.
- **Shared names**: `in.*`, `*.in`, `*.lmp`, `*.inp`, `log.*`, `*.log`, `*.out`, `data.*` and `dump.*` count only with the signature.

HiveBoard goes by the folder's files, not by your batch script or the program it starts (`lmp`, `lmp_mpi`, `lmp_serial` …). More in [How codes are recognised](/docs/codes/how-codes-are-recognised).

## What it was checked against

Ten real LAMMPS logs, from 2018 to 2026.

HiveBoard is an independent program: it reads the files LAMMPS writes and is not made by, or connected with, LAMMPS's developers.

## Known limits

- A custom `thermo_style` is read only in the column orders listed above; any other order gives the step and the progress, but no figures and no chart for the columns.
- A NEB's two stage lengths cannot be added together, so a NEB has no step count to measure against.
- In a folder that holds several runs, the newest script and the newest log are picked separately and may belong to different runs.

## Related

- [The twenty supported codes](https://hiveboard.dev/docs/codes/supported-codes.md)
- [How codes are recognised](https://hiveboard.dev/docs/codes/how-codes-are-recognised.md)
- [GROMACS jobs](https://hiveboard.dev/docs/codes/gromacs.md)
- [OpenMM jobs](https://hiveboard.dev/docs/codes/openmm.md)
