- Install Homebrew https://brew.sh/
- Install LAMMPS by Terminal (or Cakebrew) https://lammps.sandia.gov/doc/Install_mac.html
Info of LAMMPS in Cakebrew (The default path for LAMMPS is: /usr/local/Cellar/lammps/)
Let’s try with an example file: a colloid case in ~/examples/.
- Type the following command 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 could be obtained here.
One frame of the movie (Colloids put in a background solvent of Lennard-Jones particles)