<html>
<head>
<style><!--
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 10pt;
font-family:Verdana
}
--></style>
</head>
<body class='hmmessage'>
NO!<br>The MSD is NOT a function of the trajectory time!<br>The MSD is a function of time differences.<br>For example:<br>if trestart=10 and -b=60 then MSD(4) in the output is the average of the the MSD<br>between 64 and 68, 74 and 78, 84 and 88, etc.<br><br>Berk<br><br>&gt; Date: Thu, 26 Nov 2009 01:52:17 -0800<br>&gt; From: darrellk@ece.ubc.ca<br>&gt; To: gmx-users@gromacs.org<br>&gt; Subject: [gmx-users] Unexpected behavior of g_msd<br>&gt; <br>&gt; Hi Berk, Yes, I am aware of the -b and -e options in g_msd but was <br>&gt; wondering why the output said "Fitting from 4 to 35.9 ps" when I <br>&gt; selected the time period from 60 to 100 ps. It appears that the output <br>&gt; comment actually meant that it was fitting from 60+4 to 60+35.9 ps, but <br>&gt; this is not clear to the user. At least, it was not obvious to me. When <br>&gt; you say "MSD is a function of a time difference, not of simulation <br>&gt; time", so you mean that I do not need to simulate for a longer period of <br>&gt; time to get accurate results? Do I simply need to change trestart to a <br>&gt; smaller value? Or is there something else I must do? Thanks. Darrell <br>&gt; Date: Thu, 26 Nov 2009 10:27:27 +0100 From: Berk Hess &lt;gmx3@hotmail.com&gt; <br>&gt; Subject: RE: [gmx-users] Unexpected behavior of g_msd To: Discussion <br>&gt; list for GROMACS users &lt;gmx-users@gromacs.org&gt; Message-ID: <br>&gt; &lt;COL113-W13EFECFADFB96DB6D2356B8E9B0@phx.gbl&gt; Content-Type: text/plain; <br>&gt; charset="iso-8859-1" Hi, You don't need trjconv, g_msd has options -b <br>&gt; and -e. But the regression is obviously done on the time differences and <br>&gt; not on the frame times. MSD is a function of a time difference, not of <br>&gt; simulation time. Berk<br>&gt; <br>&gt; &gt; &gt; Date: Thu, 26 Nov 2009 13:24:12 +1100<br>&gt; &gt; &gt; From: Dallas.Warren@pharm.monash.edu.au<br>&gt; &gt; &gt; Subject: RE: [gmx-users] Unexpected behavior of g_msd<br>&gt; &gt; &gt; To: gmx-users@gromacs.org<br>&gt; &gt; &gt; <br>&gt; &gt; &gt; trjconv<br>&gt; &gt; &gt; <br>&gt; &gt; &gt; Catch ya,<br>&gt; &gt; &gt; <br>&gt; &gt; &gt; Dr. Dallas Warren<br>&gt; &gt; &gt; Drug Delivery, Disposition and Dynamics<br>&gt; &gt; &gt; Monash Institute of Pharmaceutical Sciences, Monash University<br>&gt; &gt; &gt; 381 Royal Parade, Parkville VIC 3010<br>&gt; &gt; &gt; dallas.warren@pharm.monash.edu.au<br>&gt; &gt; &gt; +61 3 9903 9167<br>&gt; &gt; &gt; ---------------------------------<br>&gt; &gt; &gt; When the only tool you own is a hammer, every problem begins to resemble<br>&gt; &gt; &gt; a nail. <br>&gt; &gt; &gt; <br>&gt; &gt; &gt; <br>&gt; &gt;   <br>&gt; &gt;&gt; &gt; &gt; -----Original Message-----<br>&gt; &gt;&gt; &gt; &gt; From: gmx-users-bounces@gromacs.org [mailto:gmx-users-<br>&gt; &gt;&gt; &gt; &gt; bounces@gromacs.org] On Behalf Of Darrell Koskinen<br>&gt; &gt;&gt; &gt; &gt; Sent: Thursday, 26 November 2009 12:48 PM<br>&gt; &gt;&gt; &gt; &gt; To: gmx-users@gromacs.org<br>&gt; &gt;&gt; &gt; &gt; Subject: [gmx-users] Unexpected behavior of g_msd<br>&gt; &gt;&gt; &gt; &gt; <br>&gt; &gt;&gt; &gt; &gt; Hi Tsjerk,<br>&gt; &gt;&gt; &gt; &gt; I looked at the .trr file and cannot read this file and simply delete<br>&gt; &gt;&gt; &gt; &gt; lines to create a sub-trajectory. So, how do I create a sub-trajectory<br>&gt; &gt;&gt; &gt; &gt; to analyze?<br>&gt; &gt;&gt; &gt; &gt; <br>&gt; &gt;&gt; &gt; &gt; Thanks.<br>&gt; &gt;&gt; &gt; &gt; <br>&gt; &gt;&gt; &gt; &gt; Darrell<br>&gt; &gt;&gt; &gt; &gt; <br>&gt; &gt;&gt; &gt; &gt; Date: Wed, 25 Nov 2009 09:04:01 +0100 From: Tsjerk Wassenaar<br>&gt; &gt;&gt; &gt; &gt; &lt;tsjerkw@gmail.com&gt; Subject: Re: [gmx-users] Unexpected behavior of<br>&gt; &gt;&gt; &gt; &gt; g_msd To: Discussion list for GROMACS users &lt;gmx-users@gromacs.org&gt;<br>&gt; &gt;&gt; &gt; &gt; Message-ID:<br>&gt; &gt;&gt; &gt; &gt; &lt;8ff898150911250004l42fee014qf3298816c9ef3db3@mail.gmail.com&gt;<br>&gt; &gt;&gt; &gt; &gt; Content-Type: text/plain; charset=ISO-8859-1 Hi Darrell, You can check<br>&gt; &gt;&gt; &gt; &gt; whether the output is identical to a trajectory of the specified<br>&gt; &gt;&gt; &gt; &gt; frames... It may well be that the counting for the regression is done<br>&gt; &gt;&gt; &gt; &gt; on<br>&gt; &gt;&gt; &gt; &gt; the frames read: 100 - 60 = 40 ps Then 4 and 35.9 would correspond to<br>&gt; &gt;&gt; &gt; &gt; 64<br>&gt; &gt;&gt; &gt; &gt; and 95.9. The answer is in the code... But using a subtrajectory may<br>&gt; &gt;&gt; &gt; &gt; give you good hint. Hope it helps, Tsjerk On Wed, Nov 25, 2009 at 7:42<br>&gt; &gt;&gt; &gt; &gt; AM, Darrell Koskinen &lt;darrellk@ece.ubc.ca&gt; wrote:<br>&gt; &gt;&gt; &gt; &gt; <br>&gt; &gt;&gt;     <br>&gt; &gt;&gt;&gt;&gt; &gt; &gt; &gt; &gt; Dear GROMACS-ites,<br>&gt; &gt;&gt;&gt;&gt; &gt; &gt; &gt; &gt; I am a little confused by the behavior of g_msd. I have a trr file<br>&gt; &gt;&gt;&gt;&gt;         <br>&gt; &gt;&gt; &gt; &gt; with data<br>&gt; &gt;&gt;     <br>&gt; &gt;&gt;&gt;&gt; &gt; &gt; &gt; &gt; points from t=0 to t=100 ps and thought that the following command<br>&gt; &gt;&gt;&gt;&gt;         <br>&gt; &gt;&gt; &gt; &gt; would<br>&gt; &gt;&gt;     <br>&gt; &gt;&gt;&gt;&gt; &gt; &gt; &gt; &gt; perform a regression for the data points between t=60 ps and t=100<br>&gt; &gt;&gt;&gt;&gt;         <br>&gt; &gt;&gt; &gt; &gt; ps to<br>&gt; &gt;&gt;     <br>&gt; &gt;&gt;&gt;&gt; &gt; &gt; &gt; &gt; determine the diffision constant of the ammonia gas in the<br>&gt; &gt;&gt;&gt;&gt;         <br>&gt; &gt;&gt; &gt; &gt; simualtion:<br>&gt; &gt;&gt;     <br>&gt; &gt;&gt;&gt;&gt; &gt; &gt; &gt; &gt;<br>&gt; &gt;&gt;&gt;&gt; &gt; &gt; &gt; &gt; *g_msd -f mdtraj.trr -s mdtopol.tpr -type x -b 60 -e 100*<br>&gt; &gt;&gt;&gt;&gt; &gt; &gt; &gt; &gt;<br>&gt; &gt;&gt;&gt;&gt; &gt; &gt; &gt; &gt; However, the output:<br>&gt; &gt;&gt;&gt;&gt; &gt; &gt; &gt; &gt; *<br>&gt; &gt;&gt;&gt;&gt; &gt; &gt; &gt; &gt; /trn version: GMX_trn_file (single precision)<br>&gt; &gt;&gt;&gt;&gt; &gt; &gt; &gt; &gt; Reading frame     900 time   90.000<br>&gt; &gt;&gt;&gt;&gt; &gt; &gt; &gt; &gt;<br>&gt; &gt;&gt;&gt;&gt; &gt; &gt; &gt; &gt; Used 4 restart points spaced 10 ps over 39.9 ps<br>&gt; &gt;&gt;&gt;&gt; &gt; &gt; &gt; &gt;<br>&gt; &gt;&gt;&gt;&gt; &gt; &gt; &gt; &gt; Fitting from 4 to 35.9 ps<br>&gt; &gt;&gt;&gt;&gt; &gt; &gt; &gt; &gt;<br>&gt; &gt;&gt;&gt;&gt; &gt; &gt; &gt; &gt; D[       NH3] 3625.5647 (+/- 2802.0500) 1e-5 cm2/s<br>&gt; &gt;&gt;&gt;&gt; &gt; &gt; &gt; &gt; /*<br>&gt; &gt;&gt;&gt;&gt; &gt; &gt; &gt; &gt; seems to indicate that the regression was performed between t=4 ps<br>&gt; &gt;&gt;&gt;&gt;         <br>&gt; &gt;&gt; &gt; &gt; and<br>&gt; &gt;&gt;     <br>&gt; &gt;&gt;&gt;&gt; &gt; &gt; &gt; &gt; t=35.9 ps.<br>&gt; &gt;&gt;&gt;&gt; &gt; &gt; &gt; &gt;<br>&gt; &gt;&gt;&gt;&gt; &gt; &gt; &gt; &gt; Could you please explain to me what is happening?<br>&gt; &gt;&gt;&gt;&gt; &gt; &gt; &gt; &gt;<br>&gt; &gt;&gt;&gt;&gt; &gt; &gt; &gt; &gt; Thanks.<br>&gt; &gt;&gt;&gt;&gt; &gt; &gt; &gt; &gt;<br>&gt; &gt;&gt;&gt;&gt; &gt; &gt; &gt; &gt; Darrell<br>&gt; &gt;&gt;&gt;&gt;         <br>&gt; -- <br>&gt; gmx-users mailing list    gmx-users@gromacs.org<br>&gt; http://lists.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 />Express yourself instantly with MSN Messenger! <a href='http://clk.atdmt.com/AVE/go/onm00200471ave/direct/01/' target='_new'>MSN Messenger</a></body>
</html>