next up previous
Next: SMD simulation Up: Stretching Deca-alanine Tutorial Previous: Setup

Subsections

IMD simulation

Let's run an IMD simulation of deca-alanine. Yes, you will be interacting with the simulation.

1. Starting an IMD simulation

Files needed:

The following part of imd.namd enables IMD (already in the file):

IMDon on ;#
IMDport 3000 ;# port number (enter it in VMD)
IMDfreq 1 ;# send every 1 frame
IMDwait yes ;# wait for VMD to connect before running?


Run NAMD, by typing in a terminal windown:

namd2 imd.namd > da_imd.log &  


The simulation will not actually run until the connection between NAMD and VMD is established.

2. VMD control of an IMD simulation

Start VMD, in a terminal window type:

vmd -e imd.vmd  

This will load the molecule and show it in both the Ribbon and the CPK representations, as saved in the VMD state file imd.vmd. You will see one atom (alpha-carbon of the first residue) colored in orange. That atom will be fixed during the IMD simulation.

Within VMD, select the menu item Extensions $\rightarrow$ Simulation $\rightarrow$ IMD Connect (NAMD) .

In the IMD Connection window, enter Hostname: localhost and Port: 3000

Click Connect.

You should see the molecule jiggling as the simulation is running.

Even though the double representation of Ribbon and CPK is good for viewing the overall and detailed structure of the molecule, you may change the representation to whatever you want. You can change the representation while the IMD simulation is running.

3. Applying a force in an IMD simulation

Now let's apply a force to stretch the molecule.

Select the menu item Mouse $\rightarrow$ Force $\rightarrow$ Atom.

Click and drag on an atom located near the other side of the `orange' atom. The red arrows indicates the force being applied (magnitude and direction). Stretch the molecule, say, by half of its original length.

Now remove the force by middle-clicking on the atom to which the force is being applied.

Observe how the molecule folds back.

Figure: IMD Simulation.
\begin{figure}\begin{center}
\includegraphics[width=5.6cm, height=5.1cm]{sources/imd}
\end{center}
\end{figure}

If you want to stop the simulation, click Stop Sim in the IMD Connection window. Otherwise, the simulation is set to run for 100 ps. Try various things: pull different atoms, squash the molecule, do whatever you want. Use your imagination.

When the simulation stops, the molecule will stop jiggling.

Quit VMD (the menu item File $\rightarrow$ Quit).

If you want to run the IMD simulation again, repeat the procedure of this section starting with running NAMD.
In another tutorial, you will be introduced to a VMD extension called AutoIMD, which is another way of doing IMD simulations. It automatically generates all the necessary files and launch and connect to a NAMD simulation.


next up previous
Next: SMD simulation Up: Stretching Deca-alanine Tutorial Previous: Setup
tutorial-l@ks.uiuc.edu