Installing Plumed On Mac OS X and Linux

Installing Plumed

Plumed is an exiting “new” rare-event code that is an open source library for free energy calculations in molecular systems which works together with some of the most popular molecular dynamics engines. Free energy calculations can be performed as a function of many order parameters with a particular focus on biological problems, using state of the art methods such as metadynamics, umbrella sampling and Jarzynski-equation based steered MD. The software, written in C++, can be easily interfaced with both fortran and C/C++ codes.

However with the advent of PLUMED2 – v2.0.1 in late 2013, the code had major changes for the user interface. Over the next few posts I will provide Installations and basic user guides for the new version of Plumed.

1. Installing Libraries

Before you install Plumed you need to install BLAS and LAPAC libraries. You can download them together at – Download “lapack-3.5.0”. Put them in the relevant directory and unzip the folder.

Installing BLAS

Step 1 – cd /lapack-3.5.0/BLAS/SRC

Step 2 – Compile all of the .f files to produce .o files
g77 -c -O3 *.f

Step 3 – Combine the .o files into a library
ar rv libblas.a *.o

Step 4 – Switch to root and install
cp libblas.a /usr/local/lib

Installing LAPACK

Step 1 – cd /lapack-3.5.0/

Step 2 – You can either use pre-compiled installation. Copy the appropriate file from the INSTALL directory into in the main directory.
Example: cp INSTALL/

Step 3 – sudo make

Step 4 – sudo make install

2. Installing Plumed

Step 1 – Download Plumed from

Step 2 – cd /plumed-2.0.2

Step 3 – ./ -ldl -L/usr/local/lib/liblapack.a -llapack -D__PLUMED_HAS_LAPACK -L/usr/local/lib/libblas.a -lblas -D__PLUMED_HAS_BLAS SOEXT=dylib
Select – 3> mac.mpi.clang

Step 4 – Remove flag “-lmpi_cxx” from variable DYNAMIC_LIBS in Makefile.conf

Step 5 – source

Step 6 – sudo make

Step 7 – sudo make install

To uninstall, remove the following files and directories:

3. Installing Gromacs

We are going to install a mpi version of double precision gromacs with plumed.
For more information on custom Gromacs installation –
Also Plumed has been tested with a few verions of Gromacs. Ofcourse you can try a different version but it is safest to use the one recommended.

Step 1 – Get gromacs-4.6.5.

Step 2 – cp /patches/ .
-> 2) gromacs-4.6.5

Step 3 – Make a directory to compile Gromacs. Usually this is recommended as you can end up multiple version of Gromacs in the same machine.
mkdir build
cd build

Step 4 – Make a version of Gromacs with the correct ingredients. Like this is a double precision version with MPI.

Step 5 – sudo make

Step 6 – sudo make install

4. Installing Gromacs in Linux

Follow the same steps as above.


5. Citing PLUMED

You may wish to cite the following reference if you have utilized PLUMED in your work:
1. M. Bonomi, D. Branduardi, G. Bussi, C. Camilloni, D. Provasi, P. Raiteri, D. Donadio, F. Marinelli, F. Pietrucci, R.A. Broglia and M. Parrinello.
2. PLUMED: a portable plugin for free-energy calculations with molecular dynamics, Comp. Phys. Comm. 2009 vol. 180 (10) pp. 1961-1972.