Prerequisites for working with LAMMPS
Before we start working with LAMMPS, we need to get a few things up and running for hassle-free execution:
- Downloading the source code
- Installing dependencies
- Downloading MPICH
We'll look at the preceding points in the following sections.
Downloading the source code
You can download the LAMMPS source code from GitHub by entering the following command in the terminal:
git clone https://github.com/lammps/lammps.git
If, instead, the source code is downloaded from other sources (for example, the LAMMPS download page at https://lammps.sandia.gov/download.html), please make sure to unzip accordingly.
Installing the dependencies
The following commands will install the necessary components (use sudo
before each apt
command if required):
apt install build-essential apt install cmake apt install gfortran apt update apt upgrade
As the preceding components are being installed, progress...