<html>
<head>
<style>
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 10pt;
font-family:Verdana
}
</style>
</head>
<body class='hmmessage'>
I have been looking at very similar things recently.<br><br>Your result could actually be correct.<br>If the water orders at the interface you should have a difference<br>in Ekin components, since the constraints, which remove kinetic energy<br>are not ordered isotropically in space.<br>You should be able to quantify this by looking at the order of the water<br>normal.<br><br>Berk<br><br>&gt; Date: Thu, 10 Sep 2009 18:11:16 +0200<br>&gt; From: alexander.herz@mytum.de<br>&gt; To: gmx-users@gromacs.org; felix.sedlmeier@ph.tum.de<br>&gt; Subject: Re: [gmx-users] non isotropic kinetic energy<br>&gt; CC: <br>&gt; <br>&gt; Hi,<br>&gt; <br>&gt; we took a couple of days to reexamine this and try out a couple of things:<br>&gt; <br>&gt; -On small interfacial systems (ca. 2k spc/e water molecules sandwiched<br>&gt; by vacuum)<br>&gt; the difference between ekin_x/y and ekin_z is 20 to 60kJ/mol depending<br>&gt; on the specific system/settings<br>&gt; (e.g. see attached file of averaged ekin (x/y/z) over time).<br>&gt; -On larger interfacial systems the difference grows (up to several<br>&gt; 100kJ/mol for ca. 32k spc/e water).<br>&gt; <br>&gt; The following settings make no difference (so the error persists even if<br>&gt; we change the setting):<br>&gt; -thermostat (we tryed nose-hoover, berendsen and no thermostat)<br>&gt; -estatics (cut-off instead of pme)<br>&gt; -type of constraint algo for water (so lincs, shake or settle, we<br>&gt; modified the spc/e water molec definition to change this)<br>&gt; -changing system size so that the box length is equal in all 3 dim (as<br>&gt; said, magnifies problem)<br>&gt; -rotating system (error rotates with system)<br>&gt; -use smaller time step of 1fs (no difference)<br>&gt; <br>&gt; We ran a simulation with flexible water (so bonds instead of<br>&gt; constraints) , here the error vanishes!<br>&gt; Also, we ran similar sims with amber, where the error does not appear at<br>&gt; all (for constraint water).<br>&gt; <br>&gt; We found out about this problem while doing surface tension/contact<br>&gt; angle calculations.<br>&gt; The surf tens calced via virial differs from the surf tens calculated<br>&gt; via pressure tensor (unless one corrects<br>&gt; for the anisotropic kinetic energy). A simple way to see the deficit is<br>&gt; trying to calc the average pressure tensor from the average virial<br>&gt; tensor (using the simple def from the gromacs manual P_ij=2/V(Ekin-Vir_ij):<br>&gt; a) assuming equidistributed kinetic energy (ekin/3 per dim)<br>&gt; b) using the anisotropic ekin which can be extracted from a trr with a<br>&gt; tool (source attached) if velocities have been written to the trr.<br>&gt; <br>&gt; All this appears to hint at a problem with the constraints for the<br>&gt; waters and might also hint at an incorrect ensemble as a consequence.<br>&gt; <br>&gt; Alex<br>&gt; <br>&gt; sample input file (several variants of this file have been used):<br>&gt; <br>&gt; title                    = pure water<br>&gt; cpp                      = /usr/bin/cpp<br>&gt; integrator               = md<br>&gt; nsteps                   = 2500000<br>&gt; nstlist                  = 50<br>&gt; nstxout                  = 1000<br>&gt; nstvout                  = 1000<br>&gt; nstlog                   = 1000<br>&gt; dt                       = 0.002<br>&gt; nstcomm                     = 200<br>&gt; comm-mode                 = linear<br>&gt; constraints              = h-bonds<br>&gt; nstenergy                = 100<br>&gt; ns_type                  = grid<br>&gt; coulombtype              = pme<br>&gt; fourierspacing           = 0.12<br>&gt; pme_order                = 4<br>&gt; rlist                    = 0.9<br>&gt; rvdw                     = 0.9<br>&gt; rcoulomb                 = 0.9<br>&gt; tcoupl                   = Berendsen<br>&gt; tc_grps                  = SOL<br>&gt; energygrps               = SOL<br>&gt; tau_t                    = 0.4<br>&gt; ref_t                    = 300<br>&gt; <br>&gt; <br>&gt; <br>&gt; David van der Spoel schrieb:<br>&gt; &gt; aherz wrote:<br>&gt; &gt;&gt; Hi,<br>&gt; &gt;&gt;<br>&gt; &gt;&gt; we're running simulations of a water slab sandwiched by vacuum (ca. 2k<br>&gt; &gt;&gt; waters, 3x3x12 nm^3 box) in NVT<br>&gt; &gt;&gt; and look at the pressure tensor. We are surprised to find that the<br>&gt; &gt;&gt; kinetic energy is equivalent (within statistical uncertainty) for x and<br>&gt; &gt;&gt; y dim(parallel to the interface) but not in z dim. This appears to<br>&gt; &gt;&gt; violate the equipartition theorem?<br>&gt; &gt;&gt;<br>&gt; &gt;&gt; This is gromacs 3.0 and 4.0 using berendsen thermostat.<br>&gt; &gt;<br>&gt; &gt; First, try it with a real thermostat, second please report some numbers.<br>&gt; &gt;<br>&gt; &gt;&gt;<br>&gt; &gt;&gt; Alex<br>&gt; &gt;&gt; _______________________________________________<br>&gt; &gt;&gt; gmx-users mailing list    gmx-users@gromacs.org<br>&gt; &gt;&gt; http://lists.gromacs.org/mailman/listinfo/gmx-users<br>&gt; &gt;&gt; Please search the archive at http://www.gromacs.org/search before<br>&gt; &gt;&gt; posting!<br>&gt; &gt;&gt; Please don't post (un)subscribe requests to the list. Use the www<br>&gt; &gt;&gt; interface or send it to gmx-users-request@gromacs.org.<br>&gt; &gt;&gt; Can't post? Read http://www.gromacs.org/mailing_lists/users.php<br>&gt; &gt;<br>&gt; &gt;<br>&gt; <br><br /><hr />See all the ways you can stay connected <a href='http://www.microsoft.com/windows/windowslive/default.aspx' target='_new'>to friends and family</a></body>
</html>