<P>
 Dear Berk,<BR>
<BR>
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  Thanks for the reply. I have read through your paper. I have still some doubts.<BR>
<BR>
When used tcaf&amp;#347;&nbsp; I got files called<BR>
<BR>
tcaf_all.xvg&nbsp; tcaf_fit.xvg&nbsp; tcaf.xvg&nbsp; visc_k.xvg ( all default names).<BR>
<BR>
I think, the file which I should use for fitting, using the formula eta(k) = eta (0) (1-ak²) + O(k^4)&nbsp; the viscoty ( viscosity - k vector plot) is visc_k.xvg. Am I right? <BR>
<BR>
IF yes, what all other files ( tcf_all.xvg, tcaf_fit.xvg and tcaf.xvg) do?<BR>
<BR>
expecting your reply,<BR>
Jestin<BR>
<BR>
On Fri, 13 Mar 2009 Berk Hess wrote :<BR>
&gt;<BR>
&gt;Hi,<BR>
&gt;<BR>
&gt;I don't understand what you are actually doing now.<BR>
&gt;You seem to be mixing multiple methods.<BR>
&gt;<BR>
&gt;First off all, I would use NPT for all methods, except the one that uses the pressure fluctuation.<BR>
&gt;The pressure will have a large effect on the viscosity and if you run NVT you need to have<BR>
&gt;exactly the right volume.<BR>
&gt;<BR>
&gt;If you use the cosine acceleration method, the 1/viscosity is printed in the energy file,<BR>
&gt;g_energy will plot it for you.<BR>
&gt;<BR>
&gt;g_tcaf is only for use with an equilibrium simulation.<BR>
&gt;If you read the paper, you will have seen an expression to extrapolate the k=0.<BR>
&gt;<BR>
&gt;Berk<BR>
&gt;<BR>
&gt;Date: Fri, 13 Mar 2009 07:33:30 +0000<BR>
&gt; From: jesbman@rediffmail.com<BR>
&gt;To: gmx-users@gromacs.org<BR>
&gt;Subject: Re: Re: [gmx-users] viscosity calculation using g_energy (3.3.3)<BR>
&gt;CC:<BR>
&gt;<BR>
&gt;<BR>
&gt;&nbsp; Dear Berk and David,<BR>
&gt;<BR>
&gt;<BR>
&gt;<BR>
&gt;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  Thank you very much for your appropriate and informative replies.&nbsp; I tried another method (traverse current method) to calculate the shear viscosity ( a non equilibrium method, which has been described in Berk&amp;#347; paper : Journal of Chemical Physics, 116, page 209 ( Determining the shear viscosity of model liquids from molecular dynamics simulations)),<BR>
&gt;<BR>
&gt;<BR>
&gt;<BR>
&gt;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; I used the g_tcaf utility (ie g_tcaf -f traj1.trr -s binary.tpr -oc test.xvg) . As suggested by David, I increased the system size ( from 500 to 2048 TIP4P molecules). I ran in NVT ensemble which allows the pressure to fluctuate.<BR>
&gt;<BR>
&gt;Apart from that I added following options to my mdp file, where accelaration of 1A/ps² was given to the system.<BR>
&gt;<BR>
&gt;<BR>
&gt;<BR>
&gt;;NON EQUILIBRIUM STUFF<BR>
&gt;<BR>
&gt;acc_grps&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; = system<BR>
&gt;<BR>
&gt;accelerate&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; = 0.1 0.0 0.0<BR>
&gt;<BR>
&gt;cos_acceleration&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; = 0.1<BR>
&gt;<BR>
&gt;<BR>
&gt;<BR>
&gt;----------------------------------------------------------------<BR>
&gt;<BR>
&gt;<BR>
&gt;<BR>
&gt;Moreover, I saved the trajectory in every 1ps ( so total 500 frames for a 500ps simulation)<BR>
&gt;<BR>
&gt;<BR>
&gt;<BR>
&gt;then,<BR>
&gt;<BR>
&gt;<BR>
&gt;<BR>
&gt;I got the following output:<BR>
&gt;<BR>
&gt;k&nbsp; 1.593&nbsp; tau&nbsp; 1.000&nbsp; eta&nbsp; 0.09835 10^-3 kg/(m s)<BR>
&gt;<BR>
&gt;k&nbsp; 1.593&nbsp; tau&nbsp; 1.000&nbsp; eta&nbsp; 0.09835 10^-3 kg/(m s)<BR>
&gt;<BR>
&gt;k&nbsp; 1.593&nbsp; tau&nbsp; 1.000&nbsp; eta&nbsp; 0.09835 10^-3 kg/(m s)<BR>
&gt;<BR>
&gt;k&nbsp; 2.252&nbsp; tau&nbsp; 1.000&nbsp; eta&nbsp; 0.04917 10^-3 kg/(m s)<BR>
&gt;<BR>
&gt;k&nbsp; 2.252&nbsp; tau&nbsp; 1.000&nbsp; eta&nbsp; 0.04917 10^-3 kg/(m s)<BR>
&gt;<BR>
&gt;k&nbsp; 2.252&nbsp; tau&nbsp; 1.000&nbsp; eta&nbsp; 0.04917 10^-3 kg/(m s)<BR>
&gt;<BR>
&gt;k&nbsp; 2.252&nbsp; tau&nbsp; 1.000&nbsp; eta&nbsp; 0.04917 10^-3 kg/(m s)<BR>
&gt;<BR>
&gt;k&nbsp; 2.252&nbsp; tau&nbsp; 1.000&nbsp; eta&nbsp; 0.04917 10^-3 kg/(m s)<BR>
&gt;<BR>
&gt;k&nbsp; 2.252&nbsp; tau&nbsp; 1.000&nbsp; eta&nbsp; 0.04917 10^-3 kg/(m s)<BR>
&gt;<BR>
&gt;k&nbsp; 2.759&nbsp; tau&nbsp; 1.000&nbsp; eta&nbsp; 0.03278 10^-3 kg/(m s)<BR>
&gt;<BR>
&gt;k&nbsp; 2.759&nbsp; tau&nbsp; 1.000&nbsp; eta&nbsp; 0.03278 10^-3 kg/(m s)<BR>
&gt;<BR>
&gt;k&nbsp; 2.759&nbsp; tau&nbsp; 1.000&nbsp; eta&nbsp; 0.03278 10^-3 kg/(m s)<BR>
&gt;<BR>
&gt;k&nbsp; 2.759&nbsp; tau&nbsp; 1.000&nbsp; eta&nbsp; 0.03278 10^-3 kg/(m s)<BR>
&gt;<BR>
&gt;k&nbsp; 3.185&nbsp; tau&nbsp; 1.000&nbsp; eta&nbsp; 0.02459 10^-3 kg/(m s)<BR>
&gt;<BR>
&gt;k&nbsp; 3.185&nbsp; tau&nbsp; 1.000&nbsp; eta&nbsp; 0.02459 10^-3 kg/(m s)<BR>
&gt;<BR>
&gt;k&nbsp; 3.185&nbsp; tau&nbsp; 1.000&nbsp; eta&nbsp; 0.02459 10^-3 kg/(m s)<BR>
&gt;<BR>
&gt;<BR>
&gt;<BR>
&gt;---------------------------------------------------------------------<BR>
&gt;<BR>
&gt;<BR>
&gt;<BR>
&gt;Which shows a strong k dependence over the property: shorter k, better the viscosity, as pointed out in the paper. However, the value obtained is around 0.01 times less than the experimental value (1pa-second). Adding to that, the results obtained by this method seems to be very convincing unlike the g_energy that shows a great divergence!!<BR>
&gt;<BR>
&gt;<BR>
&gt;<BR>
&gt;So the situation is getting better now. Now, I would like to know whether this can be improved if I save the trajectories more frequently ( 500 fs) and run for longer, say 2ns or change value of accelaration .<BR>
&gt;<BR>
&gt;<BR>
&gt;<BR>
&gt;Any thoughts ?<BR>
&gt;<BR>
&gt;<BR>
&gt;<BR>
&gt;<BR>
&gt;<BR>
&gt;regards,<BR>
&gt;<BR>
&gt;Jes.<BR>
&gt;<BR>
&gt;<BR>
&gt;<BR>
&gt;<BR>
&gt;<BR>
&gt;On Thu, 12 Mar 2009 Berk Hess wrote :<BR>
&gt;<BR>
&gt; &gt;<BR>
&gt;<BR>
&gt; &gt;Hi,<BR>
&gt;<BR>
&gt; &gt;<BR>
&gt;<BR>
&gt; &gt;This is a very inefficient method for determining the viscosity.<BR>
&gt;<BR>
&gt; &gt;Also you need really perfect pressure fluctuations: NVT, shifted potentials,<BR>
&gt;<BR>
&gt; &gt;probably even double precision.<BR>
&gt;<BR>
&gt; &gt;There was a mail about this recently.<BR>
&gt;<BR>
&gt; &gt;There are better methods, have a look at:<BR>
&gt;<BR>
&gt; &gt;http://dx.doi.org/10.1063/1.1421362<BR>
&gt;<BR>
&gt; &gt;<BR>
&gt;<BR>
&gt; &gt;Berk<BR>
&gt;<BR>
&gt; &gt;<BR>
&gt;<BR>
&gt; &gt;Date: Thu, 12 Mar 2009 07:39:52 +0000<BR>
&gt;<BR>
&gt; &gt; From: jesbman@rediffmail.com<BR>
&gt;<BR>
&gt; &gt;To: gmx-users@gromacs.org<BR>
&gt;<BR>
&gt; &gt;Subject: Re: Re: [gmx-users] viscosity calculation using g_energy (3.3.3)<BR>
&gt;<BR>
&gt; &gt;CC:<BR>
&gt;<BR>
&gt; &gt;<BR>
&gt;<BR>
&gt; &gt;<BR>
&gt;<BR>
&gt; &gt;David,<BR>
&gt;<BR>
&gt; &gt;<BR>
&gt;<BR>
&gt; &gt;<BR>
&gt;<BR>
&gt; &gt;<BR>
&gt;<BR>
&gt; &gt;Thanks for the quick reply.<BR>
&gt;<BR>
&gt; &gt;<BR>
&gt;<BR>
&gt; &gt;<BR>
&gt;<BR>
&gt; &gt;<BR>
&gt;<BR>
&gt; &gt;Indeed I did&nbsp; as what you suggested- g_energy -f water.edr -vis test.xvg<BR>
&gt;<BR>
&gt; &gt;<BR>
&gt;<BR>
&gt; &gt;<BR>
&gt;<BR>
&gt; &gt;<BR>
&gt;<BR>
&gt; &gt;The output file created includes three columns.<BR>
&gt;<BR>
&gt; &gt;<BR>
&gt;<BR>
&gt; &gt;<BR>
&gt;<BR>
&gt; &gt;<BR>
&gt;<BR>
&gt; &gt;1. time ( ps) 2. shear viscosity (3) I assume it is bulk viscosity.<BR>
&gt;<BR>
&gt; &gt;<BR>
&gt;<BR>
&gt; &gt;<BR>
&gt;<BR>
&gt; &gt;<BR>
&gt;<BR>
&gt; &gt;It seems, the unit given is cp. ( 1cp= 1* 10¯3 Pascal Second).<BR>
&gt;<BR>
&gt; &gt;<BR>
&gt;<BR>
&gt; &gt;<BR>
&gt;<BR>
&gt; &gt;<BR>
&gt;<BR>
&gt; &gt;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>
&gt;<BR>
&gt; &gt;<BR>
&gt;<BR>
&gt; &gt;<BR>
&gt;<BR>
&gt; &gt;<BR>
&gt;<BR>
&gt; &gt;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>
&gt;<BR>
&gt; &gt;<BR>
&gt;<BR>
&gt; &gt;<BR>
&gt;<BR>
&gt; &gt;<BR>
&gt;<BR>
&gt; &gt;I post the first 20 lines of the output file.<BR>
&gt;<BR>
&gt; &gt;<BR>
&gt;<BR>
&gt; &gt;<BR>
&gt;<BR>
&gt; &gt;<BR>
&gt;<BR>
&gt; &gt;-------------------------------------------------------------------<BR>
&gt;<BR>
&gt; &gt;<BR>
&gt;<BR>
&gt; &gt;<BR>
&gt;<BR>
&gt; &gt;<BR>
&gt;<BR>
&gt; &gt;# This file was created Thu Mar 12 16:20:09 2009<BR>
&gt;<BR>
&gt; &gt;<BR>
&gt;<BR>
&gt; &gt;# by the following command:<BR>
&gt;<BR>
&gt; &gt;<BR>
&gt;<BR>
&gt; &gt;# g_energy -f water.edr -vis test.xvg<BR>
&gt;<BR>
&gt; &gt;<BR>
&gt;<BR>
&gt; &gt;#<BR>
&gt;<BR>
&gt; &gt;<BR>
&gt;<BR>
&gt; &gt;# g_energy is part of G R O M A C S:<BR>
&gt;<BR>
&gt; &gt;<BR>
&gt;<BR>
&gt; &gt;#<BR>
&gt;<BR>
&gt; &gt;<BR>
&gt;<BR>
&gt; &gt;# GROup of MAchos and Cynical Suckers<BR>
&gt;<BR>
&gt; &gt;<BR>
&gt;<BR>
&gt; &gt;#<BR>
&gt;<BR>
&gt; &gt;<BR>
&gt;<BR>
&gt; &gt;@&nbsp; &nbsp; title &quot;Bulk Viscosity&quot;<BR>
&gt;<BR>
&gt; &gt;<BR>
&gt;<BR>
&gt; &gt;@&nbsp; &nbsp; xaxis&nbsp; label &quot;Time (ps)&quot;<BR>
&gt;<BR>
&gt; &gt;<BR>
&gt;<BR>
&gt; &gt;@&nbsp; &nbsp; yaxis&nbsp; label &quot;\8h\4 (cp)&quot;<BR>
&gt;<BR>
&gt; &gt;<BR>
&gt;<BR>
&gt; &gt;@TYPE xy<BR>
&gt;<BR>
&gt; &gt;<BR>
&gt;<BR>
&gt; &gt;@ view 0.15, 0.15, 0.75, 0.85<BR>
&gt;<BR>
&gt; &gt;<BR>
&gt;<BR>
&gt; &gt;@ legend on<BR>
&gt;<BR>
&gt; &gt;<BR>
&gt;<BR>
&gt; &gt;@ legend box on<BR>
&gt;<BR>
&gt; &gt;<BR>
&gt;<BR>
&gt; &gt;@ legend loctype view<BR>
&gt;<BR>
&gt; &gt;<BR>
&gt;<BR>
&gt; &gt;@ legend 0.78, 0.8<BR>
&gt;<BR>
&gt; &gt;<BR>
&gt;<BR>
&gt; &gt;@ legend length 2<BR>
&gt;<BR>
&gt; &gt;<BR>
&gt;<BR>
&gt; &gt;@ s0 legend &quot;Shear&quot;<BR>
&gt;<BR>
&gt; &gt;<BR>
&gt;<BR>
&gt; &gt;@ s1 legend &quot;Bulk&quot;<BR>
&gt;<BR>
&gt; &gt;<BR>
&gt;<BR>
&gt; &gt;&nbsp; &nbsp; 1.99203&nbsp; &nbsp; &nbsp; 9.6633&nbsp; &nbsp;  96.3893<BR>
&gt;<BR>
&gt; &gt;<BR>
&gt;<BR>
&gt; &gt;&nbsp; &nbsp; 3.98406&nbsp; &nbsp;  11.1625&nbsp; &nbsp;  98.1365<BR>
&gt;<BR>
&gt; &gt;<BR>
&gt;<BR>
&gt; &gt;&nbsp; &nbsp;  5.9761&nbsp; &nbsp;  12.6631&nbsp; &nbsp; &nbsp; 99.838<BR>
&gt;<BR>
&gt; &gt;<BR>
&gt;<BR>
&gt; &gt;&nbsp; &nbsp; 7.96813&nbsp; &nbsp;  13.4652&nbsp; &nbsp;  101.366<BR>
&gt;<BR>
&gt; &gt;<BR>
&gt;<BR>
&gt; &gt;&nbsp; &nbsp; 9.96016&nbsp; &nbsp;  13.7012&nbsp; &nbsp;  100.249<BR>
&gt;<BR>
&gt; &gt;<BR>
&gt;<BR>
&gt; &gt;-------------------------------------------------------------------------<BR>
&gt;<BR>
&gt;<BR>
&gt;<BR>
&gt;<BR>
&gt;<BR>
&gt;<BR>
&gt;<BR>
&gt;<BR>
&gt;_________________________________________________________________<BR>
&gt;Express yourself instantly with MSN Messenger! Download today it's FREE!<BR>
&gt;http://messenger.msn.click-url.com/go/onm00200471ave/direct/01/<BR>
&gt;_______________________________________________<BR>
&gt;gmx-users mailing list&nbsp; &nbsp; gmx-users@gromacs.org<BR>
&gt;http://www.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>

</P>
<br><br>
<Table border=0 Width=644 Height=57 cellspacing=0 cellpadding=0 style="font-family:Verdana;font-size:11px;line-height:15px;"><TR><td><A HREF="http://sigads.rediff.com/RealMedia/ads/click_nx.ads/www.rediffmail.com/signatureline.htm@Middle?" target="_blank"><IMG SRC="http://sigads.rediff.com/RealMedia/ads/adstream_nx.ads/www.rediffmail.com/signatureline.htm@Middle"></A></td></TR></Table>