GROMACSΒΆ

Captions are burned into the upload.

Transcript: docs/videos/gromacs/captions.vtt

GROMACS gmx-seams.

The build below used conda-forge GROMACS 2026.3, with the compiler and Eigen already on the path. The same prefix also holds LAMMPS 2022.06.23, OpenMM 8.6.0, and PLUMED 2.10.1.

pixi init -c conda-forge dseams-engines
pixi add --manifest-path dseams-engines/pixi.toml gromacs lammps openmm "plumed=2.10.*"
eval "$(pixi shell-hook --manifest-path dseams-engines/pixi.toml)"
export PKG_CONFIG_PATH="$CONDA_PREFIX/lib/pkgconfig:$CONDA_PREFIX/lib.AVX2_256/pkgconfig${PKG_CONFIG_PATH:+:$PKG_CONFIG_PATH}"
export LIBRARY_PATH="$CONDA_PREFIX/lib:$CONDA_PREFIX/lib.AVX2_256${LIBRARY_PATH:+:$LIBRARY_PATH}"
export CPATH="$CONDA_PREFIX/include${CPATH:+:$CPATH}"
meson setup build -Dwith_gromacs=enabled -Dwith_lammps=enabled -Dwith_openmm=enabled -Dwith_plumed=enabled
meson compile -C build
meson test -C build docs_engine_gromacs --print-errorlogs

gmx-seams reads a trajectory in nanometers, multiplies coordinates and the box by 10, and classifies the frame. On input/traj/ice1h.lammpstrj the test writes a one-frame .gro and runs:

gmx-seams -f ice1h.gro -cutoff 3.5

The last frame prints:

gromacs hexagonal 128 six-rings 256 q6 0.625855

That cell has 128 molecules. The cubic count on the same line is 0. The call exits 0 when the census succeeds. meson test docs_engine_gromacs exits 77 when gmx-seams was not built.

engines/gromacs/run_mdrun.sh is a different path. It writes a short frozen .tpr, runs gmx mdrun -nsteps 4, and then runs gmx-seams on the .xtc that mdrun wrote. gmx-seams is post-processing after gmx mdrun. It is a separate process, and it is not an in-process hook. On the 64-molecule cubic cell the census is:

gromacs frames 5 ice 320 atoms 320
gromacs hexagonal 0 six-rings 128 q6 0.628519

ice 320 is the cubic total over 5 frames of 64 atoms. hexagonal, six-rings, and q6 are the last frame. overhead_s is printed on the frames line and is machine-dependent. One machine printed 1.193596e-03 and another printed 8.988452e-04. The census lines stay the same.