<html>
<head>
<style><!--
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 10pt;
font-family:Tahoma
}
--></style>
</head>
<body class='hmmessage'>
Hi,<br><br>The kinetic energy is non-zero because Gromacs uses a leap frog integrator and the kinetic energy<br>at t=0 is the average of the kinetic energies at -dt/2 and +dt/2 (as described in the manual).<br><br>Eric Sorin did comparisons between Amber and Gromacs (uses his Amber force field port in Gromacs)<br>and found differences only of the size of roughly the machine precision. So I don't think there is an issue<br>in Gromacs. But I have no experience with the route you took.<br><br>Berk<br><br>&gt; Date: Tue, 27 Jul 2010 10:43:30 -0400<br>&gt; From: chris.neale@utoronto.ca<br>&gt; To: gmx-users@gromacs.org<br>&gt; Subject: [gmx-users] gromacs energies very different from other MD engine        for the very same system and conditions<br>&gt; <br>&gt; Dear Alan:<br>&gt; <br>&gt; I don't have a solution for you, but I do have a simpler test case: a  <br>&gt; single spc water molecule. I have not addressed your noted energy  <br>&gt; difference between programs because I am not familiar with them  <br>&gt; (although you should try gromacs compiled in double precision).<br>&gt; <br>&gt; I can reproduce the non-zero kinetic energy with a single spc water,<br>&gt; as long as I add define=-DFLEXIBLE to the .mdp file. The output .gro<br>&gt; contains all zeroes for velocities (as long as the input .gro does not  <br>&gt; contain any velocities!):<br>&gt; <br>&gt; title<br>&gt;       3<br>&gt;       1SOL     OW    1   0.230   0.628   0.113  0.0000  0.0000  0.0000<br>&gt;       1SOL    HW1    2   0.137   0.626   0.150  0.0000  0.0000  0.0000<br>&gt;       1SOL    HW2    3   0.231   0.589   0.021  0.0000  0.0000  0.0000<br>&gt;     10.00000  10.00000  10.00000<br>&gt; <br>&gt; but the run indicates a non-zero kinetic energy (log and .edr file, gromacs<br>&gt; 4.0.5 and 3.3.3).<br>&gt; <br>&gt; The reported kinetic energy is small though, 1.16470e-03, with a<br>&gt; reported temperature of 9.33871e-02.<br>&gt; <br>&gt; I added unconstrainted_start=yes to your .mdp file but that did not help.<br>&gt; <br>&gt; I tried in double precision, and I get the same reported kinetic  <br>&gt; energy (1.16473e-03)<br>&gt; <br>&gt; Chris.<br>&gt; <br>&gt; -- original message --<br>&gt; <br>&gt; Hi there,<br>&gt; <br>&gt; I have a very simple case of a tri alanine (AAA). You can use tleap from<br>&gt; ambertools to create such peptide and save the pdb and amber's parameters.<br>&gt; <br>&gt; Then I do a single point calculation to get the potential energy. I am using<br>&gt; mdin (amber input file) like:<br>&gt; <br>&gt; cat &lt;&lt; EOF &gt;| mdin<br>&gt; Single point<br>&gt; &amp;cntrl<br>&gt; imin=0, maxcyc=0,<br>&gt; ntmin=2,<br>&gt; ntb=0,<br>&gt; igb=0,<br>&gt; cut=999,<br>&gt; /<br>&gt; EOF<br>&gt; <br>&gt; Then I test the same input parameters with Namd2, using namd.conf (Amber is<br>&gt; not freely available, but AmberTools and Namd are):<br>&gt; <br>&gt; cat &lt;&lt; EOF &gt;| AAAamb_namd.conf<br>&gt; outputEnergies 1  # Energy output frequency<br>&gt; DCDfreq        1  # Trajectory file frequency<br>&gt; timestep       2  # in unit of fs<br>&gt; temperature    300  # Initial temp for velocity assignment<br>&gt; cutoff         999<br>&gt; switching      off  # Turn off the switching functions<br>&gt; PME            off  # Use PME for electrostatic calculation<br>&gt; amber          on  # Specify this is AMBER force field<br>&gt; parmfile       AAAamb.prmtop  # Input PARM file<br>&gt; ambercoor      AAAamb.inpcrd  # Input coordinate file<br>&gt; outputname     AAAamb  # Prefix of output files<br>&gt; exclude        scaled1-4<br>&gt; 1-4scaling     0.833333  # =1/1.2, default is 1.0<br>&gt; minimize       0<br>&gt; EOF<br>&gt; <br>&gt; I have only a 0.001 kcal/mol absolute diff (or relative 0.0037%) for the<br>&gt; Elec term, everything else is absolutely the same.<br>&gt; <br>&gt; Then comes gromacs. I convert my prmtop and inpcrd to gromacs top and gro<br>&gt; with either acpype or amb2gmx and then doing a single point with file:<br>&gt; <br>&gt; cat &lt;&lt; EOF &gt;| SPE.mdp<br>&gt; integrator               = md<br>&gt; nsteps                   = 0<br>&gt; dt                       = 0.001<br>&gt; constraints              = none<br>&gt; emtol                    = 10.0<br>&gt; emstep                   = 0.01<br>&gt; nstcomm                  = 1<br>&gt; ns_type                  = simple<br>&gt; nstlist                  = 0<br>&gt; rlist                    = 0<br>&gt; rcoulomb                 = 0<br>&gt; rvdw                     = 0<br>&gt; Tcoupl                   = no<br>&gt; Pcoupl                   = no<br>&gt; gen_vel                  = no<br>&gt; nstxout                  = 1<br>&gt; pbc                      = no<br>&gt; nstlog = 1<br>&gt; nstenergy = 1<br>&gt; nstvout = 1<br>&gt; nstfout = 1<br>&gt; nstxtcout = 1<br>&gt; comm_mode = ANGULAR<br>&gt; EOF<br>&gt; <br>&gt; I got something like:<br>&gt;      Energies (kJ/mol)<br>&gt;              Bond          Angle Ryckaert-Bell.          LJ-14     Coulomb-14<br>&gt;       1.77662e+02    3.19281e+01    4.55707e+01    2.48926e+01    9.40060e+02<br>&gt;           LJ (SR)   Coulomb (SR)      Potential    Kinetic En.   Total Energy<br>&gt;      -9.21735e+00   -1.05005e+03    1.60848e+02    8.84934e+00    1.69697e+02<br>&gt;       Temperature Pressure (bar)<br>&gt;       2.28887e+01    0.00000e+00<br>&gt; <br>&gt; First question, why I have temperature and kinetic energy? Remember, it's a<br>&gt; single point energy calculation, without any sort of coupling, 0 velocities<br>&gt; and and gen_vel = no.<br>&gt; <br>&gt; Secondly, converting gromacs energies (kJ/mol) by dividing the terms by<br>&gt; 4.184 and they don't match amber/namd results. See relative diffs<br>&gt; (abs(g-a)/max(abs(a),abs(g))):<br>&gt; <br>&gt; Bond:    5.87%<br>&gt; Angle:   3.49%<br>&gt; Dihe:    0.14%<br>&gt; vdW:     0.52%<br>&gt; Elec:    0.17%<br>&gt; Pot.Tot: 5.90%<br>&gt; <br>&gt; I am very surprised to find this difference, in special for Bond since it's<br>&gt; for this term essentially the same equation and parameters. Any ideas of<br>&gt; what could be missing here?<br>&gt; <br>&gt; Many thanks,<br>&gt; <br>&gt; Alan<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>                                               </body>
</html>