<div>I think I have found the answer by adding &quot; flags = flags | TRX_READ_V | TRX_READ_F ;&quot;.</div>
<div>&nbsp;</div>
<div>thanks&nbsp;to all.&nbsp;<br><br></div>
<div class="gmail_quote">On Sat, Nov 29, 2008 at 12:53 PM, friendli <span dir="ltr">&lt;<a href="mailto:friendli2000@gmail.com">friendli2000@gmail.com</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="PADDING-LEFT: 1ex; MARGIN: 0px 0px 0px 0.8ex; BORDER-LEFT: #ccc 1px solid">
<div>I have checked with gmxcheck and velocities and forces are output in .trr. I am playing template.c to try to learn more about GMX.</div>
<div>&nbsp;</div>
<div>I read gmx_traj.c, but not quite understand.</div>
<div>Can you give me a example, for instance the flags to be set in template.c to read the velcocities?</div>
<div>&nbsp;</div>
<div>thank you</div>
<div>&nbsp;</div>
<div>Qiang<br><br></div>
<div>
<div></div>
<div class="Wj3C7c">
<div class="gmail_quote">On Fri, Nov 28, 2008 at 1:41 AM, Tsjerk Wassenaar <span dir="ltr">&lt;<a href="mailto:tsjerkw@gmail.com" target="_blank">tsjerkw@gmail.com</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="PADDING-LEFT: 1ex; MARGIN: 0px 0px 0px 0.8ex; BORDER-LEFT: #ccc 1px solid">Hi Qiang,<br><br>You&#39;ll have to check whether the frame contains velocities (fr.bV ==<br>TRUE) or forces (fr.bF == TRUE). Also make sure you set the flags<br>
right to read velocities/forces. Check the source of g_traj or trjconv<br>for examples.<br><br>Cheers,<br><br>Tsjerk<br>
<div>
<div></div>
<div><br>On Fri, Nov 28, 2008 at 10:33 AM, Mark Abraham &lt;<a href="mailto:Mark.Abraham@anu.edu.au" target="_blank">Mark.Abraham@anu.edu.au</a>&gt; wrote:<br>&gt; friendli wrote:<br>&gt;&gt;<br>&gt;&gt; Dear all users,<br>
&gt;&gt;<br>&gt;&gt; A silly question:<br>&gt;&gt;<br>&gt;&gt; I want to print out the velocities and forces in the trajectories using<br>&gt;&gt; template.c.<br>&gt;<br>&gt; g_traj or gmxdump do that.<br>&gt;<br>&gt; Mark<br>
&gt; _______________________________________________<br>&gt; gmx-users mailing list &nbsp; &nbsp;<a href="mailto:gmx-users@gromacs.org" target="_blank">gmx-users@gromacs.org</a><br>&gt; <a href="http://www.gromacs.org/mailman/listinfo/gmx-users" target="_blank">http://www.gromacs.org/mailman/listinfo/gmx-users</a><br>
&gt; Please search the archive at <a href="http://www.gromacs.org/search" target="_blank">http://www.gromacs.org/search</a> before posting!<br>&gt; Please don&#39;t post (un)subscribe requests to the list. Use the www interface<br>
&gt; or send it to <a href="mailto:gmx-users-request@gromacs.org" target="_blank">gmx-users-request@gromacs.org</a>.<br>&gt; Can&#39;t post? Read <a href="http://www.gromacs.org/mailing_lists/users.php" target="_blank">http://www.gromacs.org/mailing_lists/users.php</a><br>
&gt;<br><br><br><br></div></div>--<br>Tsjerk A. Wassenaar, Ph.D.<br>Junior UD (post-doc)<br>Biomolecular NMR, Bijvoet Center<br>Utrecht University<br>Padualaan 8<br>3584 CH Utrecht<br>The Netherlands<br>P: +31-30-2539931<br>
F: +31-30-2537623<br>
<div>
<div></div>
<div>_______________________________________________<br>gmx-users mailing list &nbsp; &nbsp;<a href="mailto:gmx-users@gromacs.org" target="_blank">gmx-users@gromacs.org</a><br><a href="http://www.gromacs.org/mailman/listinfo/gmx-users" target="_blank">http://www.gromacs.org/mailman/listinfo/gmx-users</a><br>
Please search the archive at <a href="http://www.gromacs.org/search" target="_blank">http://www.gromacs.org/search</a> before posting!<br>Please don&#39;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">gmx-users-request@gromacs.org</a>.<br>
Can&#39;t post? Read <a href="http://www.gromacs.org/mailing_lists/users.php" target="_blank">http://www.gromacs.org/mailing_lists/users.php</a><br></div></div></blockquote></div><br></div></div></blockquote></div><br>