Hello again,<br>
Thanks David for the quick response, but i have few doubts with the output files of g_dipoles.....<br>
I am just pasting files, so that it will be easy for everyone to understand.....but only a part of the files though,<br>
------<br>
# This file was created by g_dipoles_AMD32<br>
# which is part of G R O M A C S:<br>
# GROningen MAchine for Chemical Simulation<br>
# All this happened at: Wed Nov&nbsp; 9 13:49:28 2005<br>
#<br>
@&nbsp;&nbsp;&nbsp; title &quot;Total dipole moment of the simulation box vs. time&quot;<br>
@&nbsp;&nbsp;&nbsp; xaxis&nbsp; label &quot;Time (ps)&quot;<br>
@&nbsp;&nbsp;&nbsp; yaxis&nbsp; label &quot;Total Dipole Moment (Debye)&quot;<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 &quot;M\sx \N&quot;<br>
@ s1 legend &quot;M\sy \N&quot;<br>
@ s2 legend &quot;M\sz \N&quot;<br>
@ s3 legend &quot;|M\stot \N|&quot;<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 0&nbsp; 2.64626166e+02 1.16440350e+03 -8.75332770e+01 1.19729888e+03<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 4&nbsp; 9.62820668e+02 1.12993143e+03 -2.29642353e+02 1.50216653e+03<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 8&nbsp; 1.04575875e+03 6.88685425e+02 -2.78564322e+02 1.28276929e+03<br>
<br>
<br>
------<br>
# This file was created by g_dipoles_AMD32<br>
# which is part of G R O M A C S:<br>
# Gromacs Runs One Microsecond At Cannonball Speeds<br>
# All this happened at: Wed Nov&nbsp; 9 13:52:51 2005<br>
#<br>
@&nbsp;&nbsp;&nbsp; title &quot;Total dipole moment&quot;<br>
@&nbsp;&nbsp;&nbsp; xaxis&nbsp; label &quot;Time (ps)&quot;<br>
@&nbsp;&nbsp;&nbsp; yaxis&nbsp; label &quot;D&quot;<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 &quot;&lt; |M|\S2\N &gt;&quot;<br>
@ s1 legend &quot;&lt; |M| &gt;\S2\N&quot;<br>
@ s2 legend &quot;&lt; |M|\S2\N &gt; - &lt; |M| &gt;\S2\N&quot;<br>
@ s3 legend &quot;&lt; |M| &gt;\S2\N / &lt; |M|\S2\N &gt;&quot;<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 0&nbsp;&nbsp; 1.434e+06&nbsp; 1.434e+06&nbsp; 1.921e-11&nbsp; 1.000e+00<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 4&nbsp;&nbsp; 1.845e+06&nbsp; 1.718e+06&nbsp; 1.272e+05&nbsp; 9.310e-01<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 8&nbsp;&nbsp; 1.779e+06&nbsp; 1.602e+06&nbsp; 1.762e+05&nbsp; 9.009e-01<br>
------<br><br>
<br>
The first two vectors &lt; |M|\S2\N &gt; and &lt; |M| &gt;\S2\N&quot; are
assumed to be equal in the very first time step, but from 4ps in th is
case, they are different, can anyone tell me how they are calculated.<br>
I understand how they are calculated at t-0, <br>
&nbsp; sum[(M\sx \N)^2 (M\sy \N )^2 (M\sz \N)^2] and it is made equal
for both &lt; |M|\S2\N &gt; and &lt; |M| &gt;\S2\N&quot;, so that their
ratio is 1, 4th column in second file........<br>
But how are they calculated for t =4 ...and so on.....<br>
<br>
--------------------<br>
<br>
I hope I am clear this time....<br>
Thanks in advance<br>
<br>
Viswam..<br>
<br>
<br>
<br>
<br>
<div><span class="gmail_quote">On 11/9/05, <b class="gmail_sendername">Viswanadham Sridhara</b> &lt;<a href="mailto:muta.mestri@gmail.com">muta.mestri@gmail.com</a>&gt; wrote:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Hello David,<br>
Then why are the files 11.xvg and 111.xvg same as first half of 1.xvg
and the second half of 1.xvg respectively, in other words the total
dipole moment of the frames for the whole trajectory is same as when
calculated separately for the first and second halves and concatenated,
but not the dipole plus fluctuations...........(22.xvg and 222.xvg are
different compared to 2.xvg)...<br>
Thanks,<div><span class="e" id="q_10776a5207465f4b_1"><br>
<br><br><div><span class="gmail_quote">On 11/9/05, <b class="gmail_sendername">David</b> &lt;<a href="mailto:spoel@xray.bmc.uu.se" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">spoel@xray.bmc.uu.se
</a>&gt; wrote:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
On Wed, 2005-11-09 at 14:38 -0500, Viswanadham Sridhara wrote:<br>&gt; Hello Everyone,<br>&gt; Can anyone explain me how g_dipoles exactly work?<br>&gt; I am just briefly explaining what I did.<br>&gt; a) I took the whole trajectory and tried to find dipole moment, --
<br>&gt; &gt;full.xvg (This is with option -o)<br>&gt; b)then i divided the whole trajectory into two parts and tried to find<br>&gt; the dipole moment, first half--&gt;fh.xvg and second half sh.xvg.<br>&gt; Obviously fh.xvg

 and sh.xvg combined is equal to full.xvg.<br>&gt;<br>&gt; But, when i use option -a in g_dipoles, and tried to find &lt;Mu&gt;^2 -<br>&gt; &lt;Mu^2&gt; for the whole trajectory, the n umbers I found are different<br>&gt; for the trajectory when divided into two parts.
<br>&gt;<br>&gt; -------------------<br>&gt; g_dipoles -f full.gro -s dppc.tpr -o 1 -a 2 -mu 2.273 -mumax 5.0 -<br>&gt; epsilonRF 78.5<br>&gt; g_dipoles -f firsthalf.gro -s dppc.tpr -o 11 -a 22 -mu 2.273 -mumax<br>&gt; 5.0

 -epsilonRF 78.5<br>&gt; g_dipoles -f secondhalf.gro -s dppc.tpr -o 111 -a 222 -mu 2.273 -mumax<br>&gt; 5.0 -epsilonRF 78.5<br>&gt; -------------------------------------<br>&gt;<br>&gt; In other words,&nbsp;&nbsp;concatenating 11 and 111 gives me 
1.xvg, but not with<br>&gt; 22 and 222......<br>&gt; How does Gromacs calculate &lt;Mu&gt;^2 and &lt;Mu^2&gt;......<br>Mu = Sum q R<br>where Mu and R are vectors.<br><br>Obviously if you compare two single coordinate files the results will be
<br>different.<br><br>&gt; Thanks in advance,<br>&gt; Viswam.<br>&gt;<br>&gt;<br>&gt;<br>&gt; --<br>&gt; Viswanadham Sridhara,<br>&gt; Graduate Research Assistant,<br>&gt; Old Dominion University, &quot;VIRGINIA&quot;.<br>

&gt; _______________________________________________<br>&gt; gmx-users mailing list<br>&gt; <a href="mailto:gmx-users@gromacs.org" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">gmx-users@gromacs.org
</a><br>&gt; <a href="http://www.gromacs.org/mailman/listinfo/gmx-users" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">
http://www.gromacs.org/mailman/listinfo/gmx-users</a><br>&gt; Please don't post (un)subscribe requests to the list. Use the<br>&gt; www interface or send it to <a href="mailto:gmx-users-request@gromacs.org" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">
gmx-users-request@gromacs.org
</a>.<br>--<br>David.<br>________________________________________________________________________<br>David van der Spoel, PhD, Assoc. Prof., Molecular Biophysics group,<br>Dept. of Cell and Molecular Biology, Uppsala University.
<br>Husargatan 3, Box 596,&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;75124 Uppsala, Sweden<br>phone:&nbsp;&nbsp;46 18 471 4205&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;fax: 46 18 511 755<br><a href="mailto:spoel@xray.bmc.uu.se" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">
spoel@xray.bmc.uu.se</a>&nbsp;&nbsp;&nbsp;&nbsp;<a href="mailto:spoel@gromacs.org" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">spoel@gromacs.org
</a>&nbsp;&nbsp; <a href="http://xray.bmc.uu.se/%7Espoel" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">http://xray.bmc.uu.se/~spoel</a><br>++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
<br><br>_______________________________________________<br>gmx-users mailing list
<br><a href="mailto:gmx-users@gromacs.org" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">gmx-users@gromacs.org</a><br><a href="http://www.gromacs.org/mailman/listinfo/gmx-users" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">
http://www.gromacs.org/mailman/listinfo/gmx-users</a><br>Please don't post (un)subscribe requests to the list. Use the
<br>www interface or send it to <a href="mailto:gmx-users-request@gromacs.org" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">gmx-users-request@gromacs.org</a>.<br></blockquote></div><br><br clear="all">
<br>-- <br>Viswanadham Sridhara,<br>Graduate Research Assistant,<br>
Old Dominion University, &quot;VIRGINIA&quot;.<br>

</span></div></blockquote></div><br><br clear="all"><br>-- <br>Viswanadham Sridhara,<br>Graduate Research Assistant,<br>Old Dominion University, &quot;VIRGINIA&quot;.<br>