<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <meta content="text/html; charset=ISO-8859-1"
      http-equiv="Content-Type">
    <title></title>
  </head>
  <body text="#000000" bgcolor="#ffffff">
    On 10/07/2011 9:01 PM, chicago.ecnu wrote:
    <blockquote cite="mid:201107101901261714171@gmail.com" type="cite">
      <meta content="text/html; charset=ISO-8859-1"
        http-equiv="Content-Type">
      <meta name="GENERATOR" content="MSHTML 8.00.6001.19088">
      <link rel="stylesheet"
href="BLOCKQUOTE%7Bmargin-Top:%200px;%20margin-Bottom:%200px;%20margin-Left:%202em%7D">
      <div>Dear Gromacs Users,</div>
      <div>&nbsp;</div>
      <div>&nbsp;&nbsp;&nbsp; Harmonic potentials are used in Gromacs for imposing
        restraints on the motion of the system.</div>
      <div>&nbsp;&nbsp; </div>
      <div>&nbsp;&nbsp;&nbsp; V = 1/2 * k * (x-x0)^2</div>
      <div>&nbsp;&nbsp;&nbsp;&nbsp; </div>
      <div>&nbsp; And the forces are : F =&nbsp; -k * (x-x0) . ...</div>
      <div>&nbsp;</div>
      <div>&nbsp;&nbsp; I want to use constant force for the restraint.&nbsp; </div>
      <div>&nbsp;</div>
      <div>&nbsp;&nbsp;Just scale the force&nbsp; : F = -k * (x-x0) / sqrt (
        (x-x0)**2+(y-y0)**2 + (z-z0)**2 )&nbsp; ...</div>
    </blockquote>
    <br>
    Why? That will not be very stable.<br>
    <br>
    <blockquote cite="mid:201107101901261714171@gmail.com" type="cite">
      <div>&nbsp;</div>
      <div>&nbsp; This was very simple.</div>
      <div>&nbsp;</div>
      <div>&nbsp; But I don't know&nbsp;where the&nbsp;position restraint code is&nbsp;. </div>
      <div>&nbsp;</div>
      <div>&nbsp;Could you please tell me where I can start with ? </div>
    </blockquote>
    <br>
    Check out this thread for clues on how to search the code : <a
href="http://lists.gromacs.org/pipermail/gmx-developers/2008-October/002856.html">http://lists.gromacs.org/pipermail/gmx-developers/2008-October/002856.html</a><br>
    <br>
    Mark<br>
  </body>
</html>