Install & run LAMMPS for Mac – a simple approach (stable 2020-10-29)

Quick notes for installing LAMMPS on macOS via Homebrew or Cakebrew, and running a sample case.

1.INSTALL

LAMMPS info in Cakebrew
Info of LAMMPS in Cakebrew(default path: /usr/local/Cellar/lammps/)

2.RUN

Try a colloid example in ~/examples/.In Terminal:

cd /usr/local/Cellar/lammps/YOUR VERSION NUMBER/share/lammps/examples/colloid
/usr/local/Cellar/lammps/YOUR VERSION NUMBER/bin/lmp_serial -in in.colloid

The visualization movie is available here(lammps.org).

One frame of the colloid movie
One frame of the movie(colloids in a LJ solvent)