<html><head><style type="text/css"><!-- DIV {margin:0px;} --></style></head><body><div style="font-family:garamond, 'new york', times, serif;font-size:12pt">Thanks Ran. Should there also be a minus sign before (y[N+1]-y[N-1]) because the third column in the table is -f'(x)?<div>CH<br><div> </div><span style="background-color:rgb(64, 160, 255);color:rgb(0, 0, 0);"></span><br><font size="3"><span style="font-style:italic;color:rgb(115, 115, 115);font-family:times new roman, new york, times, serif;"><br></span></font><div><br></div><div style="font-family:garamond, new york, times, serif;font-size:12pt"><br><div style="font-family:times new roman, new york, times, serif;font-size:12pt"><font size="2" face="Tahoma"><hr size="1"><b><span style="font-weight: bold;">发件人:</span></b> Ran Friedman &lt;r.friedman@bioc.uzh.ch><br><b><span style="font-weight: bold;">收件人:</span></b> Discussion list for GROMACS users
 &lt;gmx-users@gromacs.org><br><b><span style="font-weight: bold;">已发送:</span></b> 2009/7/21(周二), 上午9:41:42<br><b><span style="font-weight: bold;">主题:</span></b> Re: 回复: [gmx-users] Re: Some questions on Tabulated Dihedral Potential<br></font><br>


  


Ran Friedman wrote:
<blockquote type="cite">
  
Hi,<br>
  <br>
The numerical derivative for the Nth value y[N] is calculated as:<br>
der = y[N+1] - y[N-1] * 0.5 * deltaX<br>
</blockquote>
Correction:<br>
der =聽 (y[N+1] - y[N-1]) * 0.5 * deltaX
<blockquote type="cite">where y
is the potential deltaX is the difference between two
successive values in your input (e.g., 1 if you have a table that goes
from -180 to 180 with 361 values).<br>
  <br>
I don't think you can print the number without changing the code, but
it's not difficult to calculate. You can plot your forces and -der and
see where they deviate. <br>
  <br>
Ran.<br>
  <br>
hong bingbing wrote:
  <blockquote type="cite">
    
    <div style="font-family:garamond, 'new york', times, serif;font-size:12pt;">
    <div>Hi, Ran,</div>
    <div><br>
    </div>
    <div>The potential f(x) and force -f'(x) in the table are
calculated
by myself before constructing the table. The potential can be written
in an analytical form and the force is calculated as the analytical
negative derivative of the potential at point x. There should not be so
large deviation betw. the value I supplied and the value calculated by
GROMACS. Wait. Is there something wrong in my interpretation? What's
聽your method to get the force? Is there a way to see the numerical
derivative generated by GROMACS?</div>
    <div><br>
    </div>
    <div>Thanks</div>
    <div>CH</div>
    </div>
  </blockquote>
  <br>
  <pre><hr size="4" width="90%">
_______________________________________________
gmx-users mailing list    <a rel="nofollow" class="moz-txt-link-abbreviated" ymailto="mailto:gmx-users@gromacs.org" target="_blank" href="mailto:gmx-users@gromacs.org">gmx-users@gromacs.org</a>
<a rel="nofollow" class="moz-txt-link-freetext" target="_blank" href="http://lists.gromacs.org/mailman/listinfo/gmx-users">http://lists.gromacs.org/mailman/listinfo/gmx-users</a>
Please search the archive at <a rel="nofollow" class="moz-txt-link-freetext" target="_blank" href="http://www.gromacs.org/search">http://www.gromacs.org/search</a> before posting!
Please don't post (un)subscribe requests to the list. Use the 
www interface or send it to <a rel="nofollow" class="moz-txt-link-abbreviated" ymailto="mailto:gmx-users-request@gromacs.org" target="_blank" href="mailto:gmx-users-request@gromacs.org">gmx-users-request@gromacs.org</a>.
Can't post? Read <a rel="nofollow" class="moz-txt-link-freetext" target="_blank" href="http://www.gromacs.org/mailing_lists/users.php">http://www.gromacs.org/mailing_lists/users.php</a></pre>
</blockquote>
<br>
<br>
<pre class="moz-signature">-- 
------------------------------------------------------
Ran Friedman
Postdoctoral Fellow
Computational Structural Biology Group (A. Caflisch)
Department of Biochemistry
University of Zurich
Winterthurerstrasse 190
CH-8057 Zurich, Switzerland
Tel. +41-44-6355559
Email: <a rel="nofollow" class="moz-txt-link-abbreviated" ymailto="mailto:r.friedman@bioc.unizh.ch" target="_blank" href="mailto:r.friedman@bioc.unizh.ch">r.friedman@bioc.unizh.ch</a>
Skype: ran.friedman
------------------------------------------------------
</pre>


</div></div><div style="position:fixed"></div></div></div><br>


      <hr size=1><a href="http://cn.rd.yahoo.com/mail_cn/tagline/card/*http://card.mail.cn.yahoo.com/">  好玩贺卡等你发,邮箱贺卡全新上线!</a></body></html>