<html>
<head>
<style><!--
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 10pt;
font-family:Verdana
}
--></style>
</head>
<body class='hmmessage'>
Thanks so much Gaurav<div><br></div><div><br></div><div>Your explication was so clear, and answer all my questions.</div><div><br></div><div><br></div><div>Regards</div><div><br>Ricardo Cuya<br><br><br>&gt; <br>&gt; Message: 1<br>&gt; Date: Mon, 12 Jul 2010 18:56:02 -0400<br>&gt; From: Gaurav Goel &lt;gauravgoeluta@gmail.com&gt;<br>&gt; Subject: Re: [gmx-users] g_msd<br>&gt; To: Discussion list for GROMACS users &lt;gmx-users@gromacs.org&gt;<br>&gt; Message-ID:<br>&gt;         &lt;AANLkTin8BKOORXkdylk1iwlvnnGq0VK8-LXsx_81Wsb2@mail.gmail.com&gt;<br>&gt; Content-Type: text/plain; charset=ISO-8859-1<br>&gt; <br>&gt; On Mon, Jul 12, 2010 at 5:22 PM, Ricardo Cuya Guizado<br>&gt; &lt;rcuyag@hotmail.com&gt; wrote:<br>&gt; &gt; Dear gromacs users<br>&gt; &gt; I make a MD of 20 ns of a solute in water<br>&gt; &gt; With the g_msd program the msd vs the time was obtained<br>&gt; &gt; In the plot, I observed a linear behaviour of the MSD from 0 to 15 ns and a<br>&gt; &gt; plateau with no linear tendence at the last 5 ns arpoximately.<br>&gt; &gt; In order to know if the observed plateau was due to the data or is due to<br>&gt; &gt; the way as the algorithm process the data, I divided the MD in two<br>&gt; &gt; trajectories and obtained the msd for each one.<br>&gt; &gt; From 0-10ns, the plot observed shows a linear tendence en the begining and a<br>&gt; &gt; plateau with no linear tendence from 9 to 10 ns.<br>&gt; &gt; From 10-20 ns the plot observed was linear from 10 to 18 ns and not linear<br>&gt; &gt; at the last, the same plateau was observed.<br>&gt; &gt; Comparing the plots there are not equivalent,.<br>&gt; &gt; Why g_msd produces a non linear plot at the last of the calculation and the<br>&gt; &gt; plateau is ever produces.<br>&gt; &gt; Somebody will explain the way as the g_msd algorithm work? and why the plot<br>&gt; &gt; are no equivalent or why there must be equivalent?<br>&gt; <br>&gt; I will explain how the g_msd algorithm works and hopefully that will<br>&gt; answer all your questions above. What you see in the output file is<br>&gt; average-MSD versus time. This average is done over all the particles<br>&gt; in the group you selected and over multiple time origins (this last<br>&gt; option can be selected with the -trestart parameter). Also, time in<br>&gt; column 1 is time difference from the start of your trajectory to<br>&gt; current time.<br>&gt; <br>&gt; E.g., let's say you collected a trajectory over 5 time units and<br>&gt; choose -trestart=1 time unit and -dt=1 time unit.<br>&gt; <br>&gt; dt=1 means you'll have 6 configurations for your analysis (including<br>&gt; the configuration at t=0).<br>&gt; <br>&gt; trestart=1 means you'll have 5 distinct trajectories for your analysis:<br>&gt; Trajectory 1: 0-5<br>&gt; T2: 1-5<br>&gt; T3: 2-5<br>&gt; T4: 3-5<br>&gt; T5: 4-5<br>&gt; <br>&gt; Now you can notice that all 5 trajectories contribute to the average<br>&gt; MSD after 1 time unit (T1-T5), 4 trajectories contribute to the<br>&gt; average MSD after 2 time units (T1-T4),  3 trajectories to the average<br>&gt; MSD after 3 time units (T1-T3), ...., and only one trajectory to the<br>&gt; MSD after 5 time units (T1). Of course, this assumes that trestart is<br>&gt; large enough that all all these trajectories are uncorrelated.<br>&gt; <br>&gt; So, it's clear that longer the time interval at which you want to<br>&gt; evaluate the MSD lesser the number of trajectories used to evaluate<br>&gt; it...and hence, higher error in MSD values at longer times. That might<br>&gt; explain deviation from linear behaviour at long times.<br>&gt; <br>&gt; However, you must be careful in interpreting the MSD data and I<br>&gt; recommend reading some literature on the subject. A plateau in MSD<br>&gt; versus time data might also signify what is called cage motion, in<br>&gt; which a particle or atom is trapped by the surrounding particles and<br>&gt; is not able to move out of that hole on the simulation time scale. If<br>&gt; you want you can send me your MSD versus time data along with some<br>&gt; information on your system (such as potentials, density, temperature<br>&gt; etc.) and I can let you know my comments.<br>&gt; <br>&gt; Few words of caution:<br>&gt; Make sure that the center of mass of your particle (or atom or<br>&gt; molecule) is diffusing several particle diameters. Also, make sure<br>&gt; that you're calculating the self-diffusion coefficient  by fitting a<br>&gt; straight line to the linear region of MSD versus time data. You can<br>&gt; either modify the -beginfit and -endfit options... or calculate the<br>&gt; slope of the MSD versus time data using some other software (e.g.,<br>&gt; gnuplot, excel, etc.). If you're doing the latter you'll need to take<br>&gt; a look at the code in gmx_msd.c to know how the diffusion coefficent<br>&gt; is calculated from the slope of MSD versus time data (tog et correct<br>&gt; units, use proper scaling factors, etc.).<br>&gt; <br>&gt; I hope that helped.<br>&gt; <br>&gt; -Gaurav<br>&gt; &gt;<br>&gt; &gt;<br>&gt; &gt;<br>&gt; &gt;<br>&gt; &gt; Regards<br>&gt; &gt; Ricardo Cuya<br>&gt; &gt;<br><br></div>                                               <br /><hr />Jeux Messenger : mettez vos amis au défi! <a href='http://go.microsoft.com/?linkid=9734391' target='_new'>Jeux Messenger!</a></body>
</html>