<html>
<head>
<style><!--
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 10pt;
font-family:Verdana
}
--></style>
</head>
<body class='hmmessage'>
Hi,<br><br>You should use pull_geometry=direction.<br>distances don't get negative.<br><br>Berk<br><br>&gt; Date: Sat, 14 Nov 2009 09:21:39 -0500<br>&gt; From: chris.neale@utoronto.ca<br>&gt; To: gmx-users@gromacs.org<br>&gt; Subject: [gmx-users] pull code with defined negative relative displacements<br>&gt; <br>&gt; Hello, I am re-running some of our gromacs 3 simulations using gromacs<br>&gt; 4, and as far as I can tell the gromacs 4 pull code, while very nicely<br>&gt; enhanced from gromacs 3, has also lost some functionality.<br>&gt; <br>&gt; I am calculating the PMF of a peptide across a bilayer and, to  <br>&gt; simplify the issue, what I can't figure out how to do with gromacs 4  <br>&gt; is to pull group1 to a position 1 nm more negative along the z-axis  <br>&gt; than group 0 (the bilayer in this case) for some replicas and to 1 nm  <br>&gt; more positive along the z-axis than group 0 in others. I'll focus on  <br>&gt; the negative displacement here as it is the one that is giving me  <br>&gt; problems.<br>&gt; <br>&gt; This used to be possible with the following gromacs 3 pull.ppa options:<br>&gt; <br>&gt; runtype   = umbrella<br>&gt; reftype   = com<br>&gt; pulldim   = N N Y<br>&gt; reference_group = group0<br>&gt; group_1   = group1<br>&gt; K1        = 500<br>&gt; Pos1      = 0 0 -1.0<br>&gt; <br>&gt; Sure, I could start group1 in the correct negative-z displacement from<br>&gt; group0 and use pull_init1=+1.0, but this will not work when, for<br>&gt; instance, I want to restrain it to -0.1 nm (using pull_init1=+0.1),<br>&gt; where the sampling will infrequently jump back and forth about z=0.<br>&gt; <br>&gt; Just to be sure, I tried for gromacs 4 are the following pull code  <br>&gt; .mdp options:<br>&gt; <br>&gt; pull                     = umbrella<br>&gt; pull_geometry            = distance<br>&gt; pull_dim                 = N N Y<br>&gt; pull_start               = no<br>&gt; pull_ngroups             = 1<br>&gt; pull_group0              = group0<br>&gt; pull_group1              = group1<br>&gt; pull_init1               = -1.0<br>&gt; pull_rate1               = 0<br>&gt; pull_k1                  = 500.0<br>&gt; <br>&gt; where mdrun complains:<br>&gt; "Pull reference distance for group 1 is negative (-1.000000)"<br>&gt; <br>&gt; and it is pretty obvious why this doesn't work since it is asking for<br>&gt; a negative displacement. Nevertheless, I tried it and pull_init1<br>&gt; appears to get set to zero.<br>&gt; <br>&gt; I also attempted the following.<br>&gt; <br>&gt; pull                     = umbrella<br>&gt; pull_geometry            = distance<br>&gt; pull_dim                 = N N Y<br>&gt; pull_start               = no<br>&gt; pull_ngroups             = 1<br>&gt; pull_group0              = group0<br>&gt; pull_group1              = group1<br>&gt; pull_init1               = 1.0<br>&gt; pull_rate1               = 0<br>&gt; pull_k1                  = 500.0<br>&gt; pull_vec1                = 0 0 -1<br>&gt; <br>&gt; where I would then use<br>&gt; pull_init1 = 1.0<br>&gt; pull_vec1  = 0 0 1<br>&gt; for the positive side of the bilayer.<br>&gt; <br>&gt; However, when I look at the forces, I am getting the negative of what  <br>&gt; I should get when pull_vec1 = 0 0 -1.<br>&gt; <br>&gt; coord.xvg:<br>&gt; 610.0000        4.9343        -1.02019<br>&gt; 660.0001        4.91454        -0.949747<br>&gt; <br>&gt; force.xvg:<br>&gt; 610.0000        -10.0932<br>&gt; 660.0001        25.1265<br>&gt; <br>&gt; Although I am getting exactly what I should get when pull_vec1 = 0 0 1  <br>&gt; (for intended positive displacements).<br>&gt; <br>&gt; coord.xvg:<br>&gt; 660.0001        4.9014        1.16304<br>&gt; <br>&gt; force.xvg:<br>&gt; 660.0001        -81.5201<br>&gt; <br>&gt; Any ideas are greatly appreciated. I can probably mod the code for my<br>&gt; needs, but a standard gromacs binary is always preferable.<br>&gt; <br>&gt; Thank you,<br>&gt; Chris.<br>&gt; <br>&gt; <br>&gt; <br>&gt; -- <br>&gt; gmx-users mailing list    gmx-users@gromacs.org<br>&gt; http://lists.gromacs.org/mailman/listinfo/gmx-users<br>&gt; Please search the archive at http://www.gromacs.org/search before posting!<br>&gt; Please don't post (un)subscribe requests to the list. Use the <br>&gt; www interface or send it to gmx-users-request@gromacs.org.<br>&gt; Can't post? Read http://www.gromacs.org/mailing_lists/users.php<br>                                               <br /><hr />New Windows 7: Find the right PC for you. <a href='http://windows.microsoft.com/shop' target='_new'>Learn more.</a></body>
</html>