<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 Einstein method of g_energy is extremely sensitive to the system setup.<br>You should have perfect pressure fluctuations, which probably means shifted LJ potential,<br>PME, constant volume and double precision.<br>Some time ago I made a comparison of different methods:<br>http://dx.doi.org/10.1063/1.1421362<br>Two of the methods can be used via the mdp option cos_acceleration and the tool g_tcaf.<br><br>David, I think we should remove the -vis option of g_energy,<br>since it will give nonsens, unless you know exactly what you are doing.<br>In that case you can also evaluate the Einstein formula "by hand" from the pressure.<br><br>Berk<br><br>&gt; Date: Mon, 2 Feb 2009 19:34:59 -0500<br>&gt; From: jalemkul@vt.edu<br>&gt; To: gmx-users@gromacs.org<br>&gt; Subject: Re: [gmx-users] how to calculate the viscosity of the bulk<br>&gt; <br>&gt; <br>&gt; <br>&gt; Yanmei Song wrote:<br>&gt; &gt; Hi, Justin:<br>&gt; &gt; <br>&gt; &gt; I saw in the manual that by g_energy -vis the viscosity of the system<br>&gt; &gt; can be calculated. But when I perform the command i got this:<br>&gt; &gt; <br>&gt; &gt; @    title "Bulk Viscosity"<br>&gt; &gt; @    xaxis  label "Time (ps)"<br>&gt; &gt; @    yaxis  label "\8h\4 (cp)"<br>&gt; &gt; @TYPE xy<br>&gt; &gt; @ view 0.15, 0.15, 0.75, 0.85<br>&gt; &gt; @ legend on<br>&gt; &gt; @ legend box on<br>&gt; &gt; @ legend loctype view<br>&gt; &gt; @ legend 0.78, 0.8<br>&gt; &gt; @ legend length 2<br>&gt; &gt; @ s0 legend "Shear"<br>&gt; &gt; @ s1 legend "Bulk"<br>&gt; &gt;    19.9601     182.954     131.299<br>&gt; &gt;    39.9202     195.973     134.808<br>&gt; &gt;    59.8802     209.345     130.015<br>&gt; &gt;    79.8403     220.959     129.291<br>&gt; &gt;    99.8004     227.397     133.514<br>&gt; &gt;     119.76     224.858     128.183<br>&gt; &gt;    139.721      234.26     124.201<br>&gt; &gt;    159.681     239.432     112.779<br>&gt; &gt;    179.641     233.247     90.5362<br>&gt; &gt;    199.601     235.796     83.3315<br>&gt; &gt;    219.561     232.205     80.3525<br>&gt; &gt;    239.521      219.87      78.862<br>&gt; &gt;    259.481     216.261     84.9063<br>&gt; &gt;    279.441     221.782     81.2453<br>&gt; &gt;    299.401     221.704     76.6335<br>&gt; &gt;    319.361     212.225     83.4834<br>&gt; &gt;    339.321     209.746     95.7125<br>&gt; &gt;    359.281     208.776     100.049<br>&gt; &gt;    379.242     209.623     101.467<br>&gt; &gt;    399.202      204.93     111.357<br>&gt; &gt;    419.162     196.223     117.499<br>&gt; &gt;    439.122     198.347     121.818<br>&gt; &gt;    459.082      200.15     118.537<br>&gt; &gt;    479.042     203.718     105.464<br>&gt; &gt;    499.002     209.584     98.6823<br>&gt; &gt;    518.962     215.025     101.854<br>&gt; &gt;    538.922     226.533     102.949<br>&gt; &gt;    558.882     229.609     97.6396<br>&gt; &gt;    578.842     228.081     96.0029<br>&gt; &gt;    598.802     237.529     95.4091<br>&gt; &gt;    618.762     245.169     95.4332<br>&gt; &gt;    638.723     253.263     97.1168<br>&gt; &gt;    658.683     251.794     86.5936<br>&gt; &gt;    678.643     242.619      72.306<br>&gt; &gt;    698.603     235.621     63.5751<br>&gt; &gt;    718.563     230.813     67.5429<br>&gt; &gt;    738.523     236.095     78.8719<br>&gt; &gt;    758.483     240.001     84.0771<br>&gt; &gt;    778.443     246.356     88.0818<br>&gt; &gt;    798.403      256.28     91.1965<br>&gt; &gt;    818.363     267.644      95.403<br>&gt; &gt;    838.323     272.758      102.16<br>&gt; &gt;    858.283     278.369     101.837<br>&gt; &gt;    878.243     281.149      98.535<br>&gt; &gt;    898.204     268.186     93.7993<br>&gt; &gt;    918.164     254.442     81.3065<br>&gt; &gt;    938.124     239.547     78.0454<br>&gt; &gt;    958.084     221.896     87.4938<br>&gt; &gt;    978.044     213.811     103.699<br>&gt; &gt;    998.004     207.287     113.678<br>&gt; &gt; <br>&gt; &gt; <br>&gt; &gt; My question is what the value should be for the viscosity of the<br>&gt; &gt; fluid. Should I average all the values of third column to get the<br>&gt; &gt; value. Does the value have a unit of cp?<br>&gt; &gt; <br>&gt; <br>&gt; Don't know, I've never done viscosity measurements before.  Luckily, the Gromacs <br>&gt; output is quite informative.  Have you opened this file in xmgrace?  It will <br>&gt; make life a lot easier to read the graph.  Units and legends are provided to <br>&gt; indicate what the data mean.<br>&gt; <br>&gt; -Justin<br>&gt; <br>&gt; &gt; Thank you so much in advance!<br>&gt; &gt; <br>&gt; &gt; Yanmei Song<br>&gt; &gt; Department of Chemical Engineering<br>&gt; &gt; ASU<br>&gt; &gt; _______________________________________________<br>&gt; &gt; gmx-users mailing list    gmx-users@gromacs.org<br>&gt; &gt; http://www.gromacs.org/mailman/listinfo/gmx-users<br>&gt; &gt; Please search the archive at http://www.gromacs.org/search before posting!<br>&gt; &gt; Please don't post (un)subscribe requests to the list. Use the <br>&gt; &gt; www interface or send it to gmx-users-request@gromacs.org.<br>&gt; &gt; Can't post? Read http://www.gromacs.org/mailing_lists/users.php<br>&gt; &gt; <br>&gt; <br>&gt; -- <br>&gt; ========================================<br>&gt; <br>&gt; Justin A. Lemkul<br>&gt; Graduate Research Assistant<br>&gt; Department of Biochemistry<br>&gt; Virginia Tech<br>&gt; Blacksburg, VA<br>&gt; jalemkul[at]vt.edu | (540) 231-9080<br>&gt; http://www.bevanlab.biochem.vt.edu/Pages/Personal/justin<br>&gt; <br>&gt; ========================================<br>&gt; _______________________________________________<br>&gt; gmx-users mailing list    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><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>