<div dir="ltr"><div>Thanks.</div>
<div>FYI - I was already subsribed when I tried to post, the reply I got from <a href="mailto:gmx-developers-bounces@gromacs.org">gmx-developers-bounces@gromacs.org</a> &nbsp;:</div>
<div>The results of your email command are provided below. Attached is your<br>original message.</div>
<div>- Results:<br>&nbsp;&nbsp; Ignoring non-text/plain MIME parts</div>
<div>- Unprocessed:<br>&nbsp;&nbsp; I would your help on how to do the following:<br>&nbsp;&nbsp; I have a 2-body interaction, which I have defined in the file<br>&nbsp;&nbsp; &quot;topology.top&quot;, under the tag &quot;[ pairs ]&quot;.<br>&nbsp;&nbsp; I would like to, during the simulation itself, to generate a new file, that<br>
&nbsp;&nbsp; for each frame will tell me:<br>&nbsp;&nbsp; (1) Fraction of intact 2-bodies. [ defining intact is not an issue; I could,<br>&nbsp;&nbsp; for example, use a geometric criterion, or something similar ].<br>&nbsp;&nbsp; (2) Current total energy, and energy parts.<br>
&nbsp;&nbsp; Now, I am familiar with C language, and not afraid of modifying the source<br>&nbsp;&nbsp; code.<br>&nbsp;&nbsp; ==&gt;&gt; I will appreciate your help with telling me in what files.c and which<br>&nbsp;&nbsp; function &amp; variables do the coordinates and energies are stored and<br>
&nbsp;&nbsp; defined &lt;&lt;==<br>&nbsp;&nbsp; As for the actual printing, I believe that I could simply output my stuff<br>&nbsp;&nbsp; after the function &quot;write_xtc_traj&quot; is called.<br>&nbsp;&nbsp; Your help is highly appreciated! Omer Markovitch.<br>
&nbsp;&nbsp; Koby Levy research group,<br>&nbsp;&nbsp; Weizmann Institute of Science.<br>&nbsp;&nbsp; <a href="http://www.weizmann.ac.il/sb/faculty_pages/Levy/">http://www.weizmann.ac.il/sb/faculty_pages/Levy/</a></div>
<div>- Done.</div>
<div><br clear="all">&nbsp;<br>Koby Levy research group,<br>Weizmann Institute of Science. <br><a href="http://www.weizmann.ac.il/sb/faculty_pages/Levy/">http://www.weizmann.ac.il/sb/faculty_pages/Levy/</a><br><br><br></div>
<div class="gmail_quote">On Sun, Sep 7, 2008 at 15:40, David van der Spoel <span dir="ltr">&lt;<a href="mailto:spoel@xray.bmc.uu.se">spoel@xray.bmc.uu.se</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 class="Ih2E3d"><br>
<blockquote class="gmail_quote" style="PADDING-LEFT: 1ex; MARGIN: 0px 0px 0px 0.8ex; BORDER-LEFT: #ccc 1px solid"><br>Could you please refer me to the proper resource, about gromacs.<br>I have tried to post the following question in gromacs-developer list,<br>
but could not post there:<br>[in short - i am asking where do the energy &amp; coordinates variables are<br>defined &amp; printed]<br><br>========================================<br>Hello,<br>I would your help on how to do the following:<br>
<br>I have a 2-body interaction, which I have defined in the file<br>&quot;topology.top&quot;, under the tag &quot;[ pairs ]&quot;.<br>I would like to, during the simulation itself, to generate a new file,<br>that for each frame will tell me:<br>
(1) Fraction of intact 2-bodies. [ defining intact is not an issue; I<br>could, for example, use a geometric criterion, or something similar ].<br></blockquote><br></div>You could define the energy of this new &quot;pair&quot; interaction as binary 1 or 0 and get the fraction by dividing by the total number of such interactions. You may be better off definig this as a bond interaction though. 
<div class="Ih2E3d"><br><br>
<blockquote class="gmail_quote" style="PADDING-LEFT: 1ex; MARGIN: 0px 0px 0px 0.8ex; BORDER-LEFT: #ccc 1px solid">(2) Current total energy, and energy parts.<br></blockquote><br></div>I don&#39;t understand what you mean (apart from what is defined already e.g. using energy groups). 
<div class="Ih2E3d"><br><br>
<blockquote class="gmail_quote" style="PADDING-LEFT: 1ex; MARGIN: 0px 0px 0px 0.8ex; BORDER-LEFT: #ccc 1px solid"><br>Now, I am familiar with C language, and not afraid of modifying the<br>source code.<br>==&gt;&gt; I will appreciate your help with telling me in what files.c and<br>
which function &amp; variables do the coordinates and energies are stored<br>and defined &lt;&lt;==<br>As for the actual printing, I believe that I could simply output my<br>stuff after the function &quot;write_xtc_traj&quot; is called.<br>
<br>Your help is highly appreciated! Omer Markovitch.<br>========================================<br><br>Koby Levy research group,<br>Weizmann Institute of Science.<br><a href="http://www.weizmann.ac.il/sb/faculty_pages/Levy/" target="_blank">http://www.weizmann.ac.il/sb/faculty_pages/Levy/</a><br>
<br><br>On Mon, Sep 1, 2008 at 14:03, David van der Spoel &lt;<a href="mailto:spoel@xray.bmc.uu.se" target="_blank">spoel@xray.bmc.uu.se</a><br>&lt;mailto:<a href="mailto:spoel@xray.bmc.uu.se" target="_blank">spoel@xray.bmc.uu.se</a>&gt;&gt; wrote:<br>
<br>&nbsp;<br></blockquote><br></div>
<div>
<div></div>
<div class="Wj3C7c">-- <br>David van der Spoel, Ph.D., Professor of Biology<br>Molec. Biophys. group, Dept. of Cell &amp; Molec. Biol., Uppsala University.<br>Box 596, 75124 Uppsala, Sweden. Phone: &nbsp;+46184714205. Fax: +4618511755.<br>
<a href="mailto:spoel@xray.bmc.uu.se" target="_blank">spoel@xray.bmc.uu.se</a> &nbsp; &nbsp;<a href="mailto:spoel@gromacs.org" target="_blank">spoel@gromacs.org</a> &nbsp; <a href="http://folding.bmc.uu.se/" target="_blank">http://folding.bmc.uu.se</a><br>
_______________________________________________<br>gmx-developers mailing list<br><a href="mailto:gmx-developers@gromacs.org" target="_blank">gmx-developers@gromacs.org</a><br><a href="http://www.gromacs.org/mailman/listinfo/gmx-developers" target="_blank">http://www.gromacs.org/mailman/listinfo/gmx-developers</a><br>
Please don&#39;t post (un)subscribe requests to the list. Use the www interface or send it to <a href="mailto:gmx-developers-request@gromacs.org" target="_blank">gmx-developers-request@gromacs.org</a>.<br></div></div></blockquote>
</div><br></div>