next up previous
Next: Constant Force Pulling Up: Steered Molecular Dynamics Previous: Removing Water Molecules

Subsections


Constant Velocity Pulling

In this first simulation you will stretch ubiquitin through the constant velocity pulling method.

In this type of simulation the SMD atom is attached to a dummy atom via a virtual spring. This dummy atom is moved at constant velocity and then the force between both is measured using:

$\displaystyle \vec{F}$ $\textstyle =$ $\displaystyle -\nabla U$ (1)
$\displaystyle U$ $\textstyle =$ $\displaystyle \frac{1}{2}k[vt-(\vec{r}-\vec{r}_0)\cdot\vec{n}]^2$ (2)

where:

Figure 17: Constant velocity pulling in a one-dimensional case. The dummy atom is colored red, and the SMD atom blue. As the dummy atom moves at constant velocity the SMD atom experiences a force that depends linearly on the distance between both atoms.
\begin{figure}\begin{center}
\par
\par
\latex{
\includegraphics[scale=0.5]{pictures/tut_unit03_001c}
}
\end{center}
\end{figure}

\framebox[\textwidth]{
\begin{minipage}{.2\textwidth}
\includegraphics[width=2...
...oms is attached to
the dummy atom through the virtual spring.}
\end{minipage} }

Fixed and SMD Atoms

NAMD uses a column of a pdb file to determine which atoms are fixed: all atoms with a value of 1 (or a number different of 0) in a predetermined column will be fixed; atoms with a value of 0 in the same column will not be affected. Here you will use the B column of the pdb file to designate fixed atoms. Now you need to build the respective pdb file using VMD.

1
Choose the File $\rightarrow$ New Molecule... menu item and using the Browse$\ldots$ and Load buttons load the file common/ubq.psf that you created in the first unit for ubiquitin in vacuum. (If you did not succeed in generating this file in unit 1, look for common/example-output/ubq.psf)

2
In the Molecule File Browser window, use the Browse... and the Load buttons load the file common/ubq_ww_eq.pdb into your psf file. Be certain that the Load files for: field says 1:ubq.psf. When you are done, close the Molecule File Browser window. The equilibrated ubiquitin without water is now available in VMD.

3
In the VMD TkCon window, write the following command:

set allatoms [atomselect top all]
 

This creates a selection called allatoms which contains all atoms!

4
Type $allatoms set beta 0. In this way you set the B column of all atoms equal to 0.

5
Type set fixedatom [atomselect top "resid 1 and name CA"]. This creates a selection that contains the fixed atom, namely the C$_{\alpha}$ atom of the first residue.

6
Type $fixedatom set beta 1. This sets the value of the B column for the fixed atom to 1 and, therefore, NAMD will keep this atom now fixed.

Likewise, NAMD uses another column of a pdb file to set which atom is to be pulled (SMD atom). For this purpose it uses the occupancy column of the pdb file.

7
Type $allatoms set occupancy 0, so the occupancy column of every atom becomes 0.

8
Type set smdatom [atomselect top "resid 76 and name CA"]. The smdatom selection you created contains the C$_{\alpha}$ atom of the last residue.

9
Type $smdatom set occupancy 1. Now, the occupancy column of the smdatom selection is 1, and NAMD will pull this atom.

10
Finally, type $allatoms writepdb common/ubq_ww_eq.ref. This will write a file in pdb format that contains all the atoms with the updated B and occupancy columns. Keep VMD opened.

11
Open the pdb file you have just created using WordPad by clicking Start $\rightarrow$ Programs $\rightarrow$ Accessories $\rightarrow$ WordPad and opening the file ubq_ww_eq.ref in the namd-tutorial-files/common directory. Find the line or row that corresponds to the C$_{\alpha}$ atom as shown in Fig. 18 (a) for the methionine (b) residue number 1 (c) or N terminus. In that line you should be able to see how the B column was switched to 1 (e), while the B column for all the other atoms is 0 (d).

Figure 18: Snapshot of the file ubq_ww_eq.ref showing the fixed atom row.
\begin{figure}\begin{center}
\par
\par
\latex{
\includegraphics[scale=0.5]{pictures/tut_unit03_002}
}
\end{center}
\end{figure}

12
The file you just created (common/ubq_ww_eq.ref) also contains the appropriate information required by NAMD to identify the SMD atom. Again, check this by finding the row or line that corresponds to the C$_\alpha$ atom as shown in Fig. 19 (a) for the glycine (b) residue number 76 (c) or C terminus. This atom, that should have occupancy 1 (e), will be pulled in the simulation.

Figure 19: Snapshot of the file ubq_ww_eq.ref showing the SMD atom row.
\begin{figure}\begin{center}
\par
\par
\latex{
\includegraphics[scale=0.5]{pictures/tut_unit03_003}
}
\end{center}
\end{figure}

13
When you are done with the comparison of your file with Figs. 18 and 19, close WordPad. Note that coordinates (columns 7, 8, and 9) in your file will not necessarily match the ones shown in the figures because initial velocities in the equilibration were chosen randomly.

\fbox{
\begin{minipage}{.2\textwidth}
\includegraphics[width=2.3 cm, height=2....
...e dummy atom matches the initial coordinates of the SMD atom.}
\end{minipage} }

\framebox[\textwidth]{
\begin{minipage}{.2\textwidth}
\includegraphics[width=2...
...nt to use (X, Y, Z, O or B) with the parameter fixedAtomsCol.}
\end{minipage} }

Now that you have defined the fixed and SMD atom, you need to specify the direction in which the pulling will be performed. This is determined by the direction of the vector that links the fixed and the SMD atoms.

14
Type the following commands in the VMD TkCon window:

set smdpos [lindex [$smdatom get {x y z}] 0]  
set fixedpos [lindex [$fixedatom get {x y z}] 0]  
vecnorm [vecsub $smdpos $fixedpos]
 

This gives you three numbers that are the $x$, $y$, and $z$- components of the normalized direction between the fixed and the SMD atom! Keep these $n_x$, $n_y$ and $n_z$ saved for the next section.

$n_x =$ $n_y =$ $n_z =$

In the provided example (look at Figs. 18 and 19), the result is:

$
(38.843,39.309,33.494)-(26.241, 24.928, 3.279)=(12.602,14.381,30.215)
$

$
\sqrt{12.602^2+14.381^2+30.215^2}=35.757
$

$n_x = \frac{12.602}{35.757} = 0.352$ $n_y = \frac{14.381}{35.757} = 0.402$ $n_z = \frac{30.215}{35.757} = 0.845$

15
Delete the current molecule by choosing the Molecule $\rightarrow$ Delete Molecule menu item and keep VMD opened.

Configuration File

Now you have one of the files required for the intended SMD simulation, namely common/ubq_ww_eq.ref. The next step is to create the NAMD configuration file or modify the provided template. Exercise care at this stage and check for misspelling of names or commands.

1
Be sure that the current directory in the Terminal window is
namd-tutorial-files.

2
Copy the file common\sample.conf to the directory 3-1-pullcv and rename it by typing copy common\sample.conf 3-1-pullcv\ubq_ww_pcv.conf.

3
Open the configuration file 3-1-pullcv\ubq_ww_pcv.conf using WordPad.

4
As a job description you may write

# N- C- Termini Constant Velocity Pulling
 

Note that this is just a comment line.

5
In the Adjustable Parameters section you need to change:
structure mypsf.psf $\rightarrow$ structure ../common/ubq.psf
coordinates mypdb.pdb $\rightarrow$ coordinates ../common/ubq_ww_eq.pdb
outputName myoutput $\rightarrow$ outputName ubq_ww_pcv

In this way you are using the equilibrated protein without water in your upcoming simulation. The output files of your simulation will have the prefix ubq_ww_pcv in their names.

6
In the Input section change:

parameters par_all27_prot_lipid.inp  
$\rightarrow$ parameters ../common/par_all27_prot_lipid.inp
 

There is no need to modify the Periodic Boundary Conditions, Force Field Parameters, Integrator Parameters or PME sections (The latter is disabled since you are not using periodic boundary conditions).

7
The temperature control should be disabled in order to disturb the movement of the atoms as little as possible. Switch off the Constant Temperature Control by changing:
langevin on $\rightarrow$ langevin off

8
Again, there is no need to modify Constant Pressure Control and IMD Settings since they will not be used. However, you have to enable the Fixed Atoms Constraint by changing the following lines:
if {0} { $\rightarrow$ if {1} {
fixedAtomsFile myfixedatoms.pdb $\rightarrow$ fixedAtomsFile
     ../common/ubq_ww_eq.ref
NAMD will keep fixed the atoms which have a B value of 1 in the file ubq_ww_eq.ref.

9
In the Extra Parameters section add the following lines:
SMD on
SMDFile ../common/ubq_ww_eq.ref
SMDk 7
SMDVel 0.005

With these configuration file modifications, NAMD will pull atoms which have occupancy 1 in the file ubq_ww_eq.ref. The virtual spring between the dummy atom and the SMD atom will have a spring constant of 7 kcal/mol/Å$^2$, where 1 kcal/mol = 69.479 pN Å. The pulling will be performed at a constant velocity of 0.005 Å/timestep, equivalent to 2.5 Å/ps in the present case where the time step is 2 femtoseconds.

\fbox{
\begin{minipage}{.2\textwidth}
\includegraphics[width=2.3 cm, height=2....
...e too high or the measured force will be dominated by noise.
}
\end{minipage} }

\fbox{
\begin{minipage}{.2\textwidth}
\includegraphics[width=2.3 cm, height=2....
...perform long enough simulations to see the unfolding pathway.}
\end{minipage} }

10
In the Extra Parameters section you need to write also the direction of pulling by adding the following line:
SMDDir $n_x$ $n_y$ $n_z$

Where $n_x$, $n_y$ and $n_z$ should be replaced by the coordinates you calculated at the end of section 3.2.1. (In our example, the direction is $n_x= 0.352$, $n_y=0.402$, $n_z=0.845$.)

11
In the same section, set the frequency in time steps with which the current SMD data values will be printed out by typing:

SMDOutputFreq 10
 

12
Finally, in the Execution Script section of your configuration file be sure that the minimization is disabled and change the number of time steps of your simulation by replacing:
run 50000 $\rightarrow$ run 20000

This is equivalent to 40 ps (and the simulation should not take more than 20 minutes).

13
Now your configuration file is ready. SAVE IT and close your text editor.

\fbox{
\begin{minipage}{.2\textwidth}
\includegraphics[width=2.3 cm, height=2....
...systems that include water molecules (more than 10000 atoms).}
\end{minipage} }

Running the First SMD Simulation

All the files you need to launch your simulation are now ready. You should have a file called ubq_ww_pcv.conf in the 3-1-pullcv directory and files:

in the common directory. In case that you have not generated these files you can use prepared files available in the directories 3-1-pullcf/example-output and common/example-output.

1
Check that you actually have these files in the respective directories and change to directory 3-1-pullcv to run the simulation.

\fbox{
\begin{minipage}{.2\textwidth}
\includegraphics[width=2.3 cm, height=2....
...&}
\\ \\
Be sure you are in the {\tt 3-1-pullcv} directory.
}
\end{minipage} }

While your simulation is running, some files will be created (as you already learned in Unit 1). The only difference in this case is that in the output file (ubq_ww_pcv.log) you will find specific information about the SMD atom and the applied force.

Figure 20: Typical output of a SMD simulation
\begin{figure}\begin{center}
\par
\par
\latex{
\includegraphics[scale=0.5]{pictures/tut_unit03_004}
}
\end{center}
\end{figure}

Since the simulation will take some time, the analysis of the complete output will be explained in section 3.4. Thus, while you wait for the result you can set up your Constant Force simulation.

\fbox{
\begin{minipage}{.2\textwidth}
\includegraphics[width=2.3 cm, height=2....
...rameter as the time step of the saved previous configuration.}
\end{minipage} }


next up previous
Next: Constant Force Pulling Up: Steered Molecular Dynamics Previous: Removing Water Molecules
namd@ks.uiuc.edu