RE: smd force vs time

From: JC Gumbart (gumbart_at_ks.uiuc.edu)
Date: Mon Feb 23 2009 - 00:47:26 CST

You've caught an inconsistency that's crept in due to various updates to the
tutorials (thanks?). The example ft.dat was created using the vector
(.443,.398,.803) although this isn't correct (nor is the other one given
anymore, most likely, but I have to check). I'll try to fix these files
when I can, and eventually, the version of the tutorial on the web will get
updated.

 

 

From: owner-namd-l_at_ks.uiuc.edu [mailto:owner-namd-l_at_ks.uiuc.edu] On Behalf
Of Falgun Shah
Sent: Sunday, February 22, 2009 1:31 PM
To: namd-l_at_ks.uiuc.edu
Subject: namd-l: smd force vs time

 

Dear Namd Users

I am running smd simulation using constant velocity pulling. I have query
regarding the plot of time vs force using ft.tcl script. In Namd, tutorial
this is written:

"In order to obtain the force in the direction of pulling you need to
calculate $\vec{f}\cdot\vec{n}$
<http://www.ks.uiuc.edu/Training/Tutorials/namd/namd-tutorial-unix-html/img1
95.png> , where $\vec{n}$
<http://www.ks.uiuc.edu/Training/Tutorials/namd/namd-tutorial-unix-html/img1
96.png> is the normalized direction of pulling (in our example it was 0.443,
0.398, 0.803).
However the normalized direction of pulling is calulated as follow in
section 3.1.15

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$
<http://www.ks.uiuc.edu/Training/Tutorials/namd/namd-tutorial-unix-html/img3
0.png> , $y$
<http://www.ks.uiuc.edu/Training/Tutorials/namd/namd-tutorial-unix-html/img3
1.png> , and $z$
<http://www.ks.uiuc.edu/Training/Tutorials/namd/namd-tutorial-unix-html/img3
2.png> - components of the normalized direction between the fixed and the
SMD atom! Keep these $n_x$
<http://www.ks.uiuc.edu/Training/Tutorials/namd/namd-tutorial-unix-html/img1
71.png> , $n_y$
<http://www.ks.uiuc.edu/Training/Tutorials/namd/namd-tutorial-unix-html/img1
72.png> and $n_z$
<http://www.ks.uiuc.edu/Training/Tutorials/namd/namd-tutorial-unix-html/img1
73.png> saved for the next section.

 $n_x =$
<http://www.ks.uiuc.edu/Training/Tutorials/namd/namd-tutorial-unix-html/img1
74.png>

 $n_y =$
<http://www.ks.uiuc.edu/Training/Tutorials/namd/namd-tutorial-unix-html/img1
75.png>

 $n_z =$
<http://www.ks.uiuc.edu/Training/Tutorials/namd/namd-tutorial-unix-html/img1
76.png>

In the provided example (look at Figs. 18
<http://www.ks.uiuc.edu/Training/Tutorials/namd/namd-tutorial-unix-html/node
17.html#fig:tut_unit03_002> and 19
<http://www.ks.uiuc.edu/Training/Tutorials/namd/namd-tutorial-unix-html/node
17.html#fig:tut_unit03_003> ), the result is:

 $
(38.843,39.309,33.494)-(26.241, 24.928, 3.279)=(12.602,14.381,30.215)
$
<http://www.ks.uiuc.edu/Training/Tutorials/namd/namd-tutorial-unix-html/img1
77.png>

 $
\sqrt{12.602^2+14.381^2+30.215^2}=35.757
$
<http://www.ks.uiuc.edu/Training/Tutorials/namd/namd-tutorial-unix-html/img1
78.png>

 $n_x = \frac{12.602}{35.757} = 0.352$
<http://www.ks.uiuc.edu/Training/Tutorials/namd/namd-tutorial-unix-html/img1
79.png>

 $n_y = \frac{14.381}{35.757} = 0.402$
<http://www.ks.uiuc.edu/Training/Tutorials/namd/namd-tutorial-unix-html/img1
80.png>

 $n_z = \frac{30.215}{35.757} = 0.845$
<http://www.ks.uiuc.edu/Training/Tutorials/namd/namd-tutorial-unix-html/img1
81.png>

(nx, ny, nz)=(0.352, 0.402, 0.845). Why these two values are different? and
one used in ft. tcl file was (nx, ny, nz)= (0.443, 0.398, 0.803)

Even i checked the namd tutorial files and if i enter the direction 0.352,
0.402 and 0.845 and run ft. tcl., the plots which i got and one using ft.tcl
in the example output file looks different. So when we run ft. tcl, it asks
for n_x, n_y and n_z. At this time, do we just need to provide the pulling
direction (0.352, 0.402, 0.845 as calculated in section 3.1.15 of namd
tutorial) or do we need to multiply the direction with some terms (force
components) and then feed to ft.tcl file. In the description of ft. tcl
script, it is shown that the script does write f dot n to the output file.
That means we do not need to multiply it with anything. Then why these two
values shown in the examples are different [(0.352, 0.402, 0.845 section
3.1.15) and (0.443, 0.398, 0.803 section 3.4.5)]. i think i am missing
something. Please let me know. Thanks in advance.

-- 
Falgun H shah
PhD candidate (3rd year)
Department of Medicinal Chemistry
2028, Natural Product Center
University of Mississippi
Ph No: 6629151286(O)
          662 801 5667(M)
email: fhshah_at_olemiss.edu

This archive was generated by hypermail 2.1.6 : Wed Feb 29 2012 - 15:52:23 CST