In this tutorial I will show you how you can use PLUMED and metadynamics in combinations with CP2K.
Once this tutorial is completed students will
The TARBALL for this project contains the following files:
This tutorial has been tested on v2.5 but it should also work with other versions of PLUMED.
For this tutorial we will consider a practical application. The aim is that of studying proton transfer in water. The system is simplified and the accuracy of the ab initio simulation is not production like so do not reuse the CP2K input for real-life applications.
In this example the system is initially in a configuration where there are H3O+ and an OH- molecule separated by a few other water molecules. In a standard MD the system will quickly equilibrate. Here the aim is to use metadynamics to estimate the free energy of this process and to understand the role of the solvent.
When you download CP2K it already includes the interface for PLUMED but it must be compiled using the proper flags, check CP2K installation instructions.
The starting configuration is represented in the H-transfer.pdb. While a simple CP2K input file to perform BO-MD is written in H-transfer.inp. In particular here the section to enable PLUMED is commented out initially.
# &FREE_ENERGY # &METADYN # USE_PLUMED .TRUE. # PLUMED_INPUT_FILE ./plumed.dat # &END METADYN # &END FREE_ENERGY
To run a preliminary simulation it is enough to:
cp2k.sopt H-transfer.inp >& log &
use the plumed driver and VMD to choose to water molecule relatively far apart to study the proton transfer.
In this exercise you are challenged to
The number of steps in the simulation is initially set to 100, this should be increased so to allow a more extensive exploration of the conformational space. This simulation can be slow and is better run on a workstation with multiple processors.