Molecular Solution
Water
Water molecular models are computational techniques that have been developed in order to help discover the structure of water. In this section, you will be asked to calculate some physical properties based on classical molecular dynamics simulation. The TIP3/Fw model will be used in the simulations.
We have prepared a CP2K input file water.inp
for running a MD simulation of liquid water using the force field from the first exercise (parameterized by Praprotnik et al.).
wget https://www.cp2k.org/_media/exercises:2021_uzh_acpc2:water.zip unzip water.zip
- Check that the MD simulation is energy conserving and well-behaved.
- What are the final average temperatures of the simulation?
- The initial atomic configuration stems from an equilibration run. At which temperature was the system (approximately) equilibrated?
Next, we are going to analyze the trajectories in order to calculate the radial distribution function (rdf, $g(r)$) as a function of the distance $r$.
VMD comes with an extension for exactly this purpose: In the VMD Main window open “Extensions → Analysis” click on “Radial Pair Distribution function $g(r)$”. In the appearing window use “Utilities → Set unit cell dimensions” to let VMD know the size of the periodic simulation box which you used. After that use Selection 1 and 2 to define the atomic types that you want to calculate the rdf for, for example “element H”.
- Plot $g_{O-O}(r)$ at 300K and the experimental value provided in
goo.ALS
taken at 300 K into the same graph.
Now, we will calculate the diffusion coefficient which is a proportionality constant between the molar flux due to molecular diffusion and the gradient in the concentration of the species (or the driving force for diffusion) and is defined by: $6D=\lim_{t\to\infty} \ \frac{\delta <r^2(t)>}{\delta t}$
To evaluate this expression, all that is needed is to evaluate the average of the square of the distance that each atom has traveled since the start of the production phase of the dynamics for each point in time during the simulation, and examining the slope of this function in the long time limit. By storing the initial coordinates, it is straightforward to evaluate the square of the traveled distance. However, some care is needed due to the use of periodic boundary conditions: the program stores x, the coordinates, but in many programs, during the dynamics, if any atom has its x, y, or z coordinate become larger than the box size or smaller than zero, it is moved back to the other side of the box. This has the effect of making the raw distance traveled meaningless. Finally, if you take care of the above, the value of D is obtained from the slope, at a long time, of the right-hand side of the above equation (also be careful with the units).
Once again, VMD comes with an extension for exactly this purpose: In the VMD Main window open “Extensions → Analysis” click on “RMSD Trajectory Tool”. In the appearing window change “protein” to “all” to let VMD know the molecule you want to track. Press “RMSD” to run the analysis (Note: this might take a while!). Finally, use “File → Plot data” to plot the RMSD for the water system.
- Plot the RMSD and MSD for the water at 300K and calculate the corresponding diffusion coefficient from the slope of the MSD. Does the value match your expectation?
Now, you will compute the vibrational spectrum and dielectric constant of water based on the previous MD simulation. Reference spectra for water are available from Praprotnik et al.. We provide you with a small FORTRAN program which computes the correlation function of the (derivative of) the dipole moment and performs the Fourier transform:
\begin{equation} A(\omega)\propto{\int\langle{\dot{\mu}}({\tau}){\dot{\mu}}(t+{\tau})\rangle_{\tau}e^{-i{\omega}t}d{t}} \ . \label{eq:auto} \end{equation}
The dielectric constant of a system describes its response to an external electric field.
If the dipole moment is properly sampled, one can compute the dielectric constant of water, by applying the Kubo Formula. This is valid in the approximation that the response of the system to the time-dependent perturbation (the field) is linear.
The dielectric constant can then be calculated from the dipole moments via: \begin{equation} \epsilon = 1 + \left(\frac{4 \pi}{3 \epsilon_0 V k_B T } \right ) \operatorname{Var}(M) \ , \end{equation}
where $M$ denotes the dipole moment of the entire simulation cell and $\operatorname{Var}(M)$ denotes the variance of the dipole moment of the sampling: \begin{equation} \operatorname{Var}(M) = (\langle M \cdot M\rangle - \langle M\rangle\langle M\rangle ) \ . \end{equation}
To perform this calculation, compile the FORTRAN code, and execute the program:
gfortran cpt_ir_diele.f90 -o cpt_ir_diele.o ./cpt_ir_diele.o < dipole.in
- Compute the IR spectrum and plot it. Match the frequencies to their vibrational modes.
- Compute the dielectric constant of water at 300K.
- Does the IR or dielectric constant match the experimental value? If not, why?
Ramachandran plot
Glyala is one of the simplest molecules that exhibits some important features common to larger biomolecules. In particular, it has more than one long-lived conformation, which we will identify in this exercise by mapping out its potential energy surface.
The conformations of the glyala dipeptide are characterized by the dihedral angles of the backbone. Below, we color carbons in green, hydrogens in white, oxygen in red and nitrogen in blue, showing that the torsional angle $\phi$ is N-C-C-N , while $\psi$ is C-N-C-C along the backbone.
tar -xvf glyala-epot.tar.gz
glyala.pdb
with VMD and determine the atomic indices of the atoms defining the dihedral angles.
With this knowledge at hand, we will fix the dihedral angles and perform geometry optimization for all remaining degrees of freedom.
- The atomic indices defining the dihedral indices in the input file
geo.in
are missing. ReplaceI1
toI4
by the atomic indices determined in Task 5. - Use the provided bash script,
perform-gopt.sh
, to perform the grid of geometry optimizations. - Use gnuplot to plot the potential energy surface (we have provided a script
epot.gp
)gnuplot > load "epot.gp"
What are the two most favored conformations?
Glyala in water
Now, we will move to a more realistic system - Glyala in water. We will preform a MD simulation of glyala in water and save the trajectory.
The initial geometry provided in the PDB file is a glyala molecule solvated by 73 water molecules. The geometry is not equilibrated. Thus, you first need to equilibrate the system at 300K. When the system is equilibrated, you need to analyze the result.
tar
-archive.
- Perform the MD simulation using an NVT ensemble at 300K. Change TIMECON (i.e.500, 2000 fs) in the &THERMOSTAT section.
- Determine from which step the system is equilibrated, plot the calculated properties and explain why.
- Compute the O-O radial distribution function for water with acceptable statistics using 20 ps (after equilibration) of simulated time.
- Determine the solvation shell by calculating the RDF of g$_{CO}$ (carbon atoms from glyala and oxygen atoms from water)
From the last exercise, you already know how to calculate the RDF for the Argon system. However, in TASK 7 you need to calculate the RDF only for water instead of the whole system. Since the glyala molecule contains two oxygen atoms itself, it is not reasonable to include these oxygen atoms of glyala if we are only interested in the O-O RDF for water. However, using VMD, the O-O RDF for the water can still be easily calculated. In the
Selection 1, Selection 2
, you need to specify
element O and not same residue as element C
in order to exclude the oxygen atoms present in glyala. The frames should start from the beginning of production run.