<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>This is a very inefficient method for determining the viscosity.<br>Also you need really perfect pressure fluctuations: NVT, shifted potentials,<br>probably even double precision.<br>There was a mail about this recently.<br>There are better methods, have a look at:<br>http://dx.doi.org/10.1063/1.1421362<br><br>Berk<br><br><br><hr id="stopSpelling">Date: Thu, 12 Mar 2009 07:39:52 +0000<br>From: jesbman@rediffmail.com<br>To: gmx-users@gromacs.org<br>Subject: Re: Re: [gmx-users] viscosity calculation using g_energy (3.3.3)<br>CC: <br><br>
David,<br>
<br>
Thanks for the quick reply.<br>
<br>
Indeed I did&nbsp; as what you suggested- g_energy -f water.edr -vis test.xvg <br>
<br>
The output file created includes three columns.<br>
<br>
1. time ( ps) 2. shear viscosity (3) I assume it is bulk viscosity.<br>
<br>
It seems, the unit given is cp. ( 1cp= 1* 10Ŋ3 Pascal Second).<br>
<br>
The bulk viscosity of water at 300 K is approximately 0.7 cp. But the value ( Bulk viscosity) I got from the program gives me 100 pa-s, an increase of two order of magnitude. I wonder whether I have done anything wrong while specifying the frequency of saving energy file.<br>
<br>
I have saved the energy file in every 2ps. Isnīt that enough for a simple system like water? OR should I have to save trajectories in every 5fs as suggested by one in a previous post.<br>
<br>
I post the first 20 lines of the output file.<br>
<br>
-------------------------------------------------------------------<br>
<br>
# This file was created Thu Mar 12 16:20:09 2009<br>
# by the following command:<br>
# g_energy -f water.edr -vis test.xvg <br>
#<br>
# g_energy is part of G R O M A C S:<br>
#<br>
# GROup of MAchos and Cynical Suckers<br>
#<br>
@&nbsp; &nbsp; title "Bulk Viscosity"<br>
@&nbsp; &nbsp; xaxis&nbsp; label "Time (ps)"<br>
@&nbsp; &nbsp; yaxis&nbsp; label "\8h\4 (cp)"<br>
@TYPE xy<br>
@ view 0.15, 0.15, 0.75, 0.85<br>
@ legend on<br>
@ legend box on<br>
@ legend loctype view<br>
@ legend 0.78, 0.8<br>
@ legend length 2<br>
@ s0 legend "Shear"<br>
@ s1 legend "Bulk"<br>
&nbsp;  1.99203&nbsp; &nbsp; &nbsp; 9.6633&nbsp; &nbsp;  96.3893<br>
&nbsp;  3.98406&nbsp; &nbsp;  11.1625&nbsp; &nbsp;  98.1365<br>
&nbsp; &nbsp; 5.9761&nbsp; &nbsp;  12.6631&nbsp; &nbsp; &nbsp; 99.838<br>
&nbsp;  7.96813&nbsp; &nbsp;  13.4652&nbsp; &nbsp;  101.366<br>
&nbsp;  9.96016&nbsp; &nbsp;  13.7012&nbsp; &nbsp;  100.249<br>
-------------------------------------------------------------------------<br>
<br>
<br>
regards,<br>
Jes<br>
<br>
On Thu, 12 Mar 2009 David van der Spoel wrote :<br>
&gt;JMandumpal wrote:<br>
&gt;&gt;Dear GROMACS users,<br>
&gt;&gt;<br>
&gt;&gt;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  As explained in the manual ( page 139, section 6.5/3.3.3) I would like to calculate viscosity of my system ( water) using g_energy. I opted&nbsp; &nbsp; (40&nbsp; Mu-X ) from the g-energy selection. But the unit written on the Y axis of the corresponding xvg file is&nbsp; (kJ mol\S-1\N). I think GROMACS uses SI unit , which is Pa-Second in the case of viscosity. Then why is this discrepancy.? Or did I make any mistake?<br>
&gt;&gt;<br>
&gt;Mu is the dipole (in Debye). The units of these things are incorrect for everything that is not an energy. This will be fixed in the next gmx version. g_energy -h tells you what to do:<br>
&gt;<br>
&gt;g_energy -f ener -vis viscosity<br>
&gt;<br>
&gt;&gt;<br>
&gt;&gt;------I give the command on the prompt:<br>
&gt;&gt;<br>
&gt;&gt;g-energy -f ener.edr - o viscosity.xvg ;<br>
&gt;&gt;then chose option 40 ( Mu-X).<br>
&gt;&gt;<br>
&gt;&gt;system details:<br>
&gt;&gt;******************<br>
&gt;&gt;My system consists of 500 TIP4P water molecules, ran for 3.5 nanoseconds at 150K, the ensemble is NPT. The version I am using is 3.3.3<br>

<BR>
<br><br>
<table style="font-family: Verdana; font-size: 11px; line-height: 15px;" border="0" cellpadding="0" cellspacing="0" height="57" width="644"><tbody><tr><td><a href="http://adworks.rediff.com/cgi-bin/AdWorks/click.cgi/www.rediff.com/signature-home.htm/1050715198@Middle5/2705639_2677138/2680797/1?PARTNER=3&amp;OAS_QUERY=null"><img src="http://imadworks.rediff.com/cgi-bin/AdWorks/adimage.cgi/2705639_2677138/creative_2680797.gif" alt="Shopping" border="0"></a></td></tr></tbody></table><br /><hr />What can you do with the new Windows Live? <a href='http://www.microsoft.com/windows/windowslive/default.aspx' target='_new'>Find out</a></body>
</html>