<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40">

<head>
<meta http-equiv=Content-Type content="text/html; charset=us-ascii">
<meta name=Generator content="Microsoft Word 12 (filtered medium)">
<style>
<!--
 /* Font Definitions */
 @font-face
        {font-family:"Cambria Math";
        panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
 /* Style Definitions */
 p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0in;
        margin-bottom:.0001pt;
        font-size:11.0pt;
        font-family:"Calibri","sans-serif";}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:purple;
        text-decoration:underline;}
p.MsoListParagraph, li.MsoListParagraph, div.MsoListParagraph
        {mso-style-priority:34;
        margin-top:0in;
        margin-right:0in;
        margin-bottom:0in;
        margin-left:.5in;
        margin-bottom:.0001pt;
        font-size:11.0pt;
        font-family:"Calibri","sans-serif";}
span.EmailStyle17
        {mso-style-type:personal-compose;
        font-family:"Calibri","sans-serif";
        color:windowtext;}
.MsoChpDefault
        {mso-style-type:export-only;}
@page Section1
        {size:8.5in 11.0in;
        margin:1.0in 1.0in 1.0in 1.0in;}
div.Section1
        {page:Section1;}
 /* List Definitions */
 @list l0
        {mso-list-id:1524896581;
        mso-list-type:hybrid;
        mso-list-template-ids:1164608218 1943671758 67698713 67698715 67698703 67698713 67698715 67698703 67698713 67698715;}
@list l0:level1
        {mso-level-text:"\(%1\)";
        mso-level-tab-stop:none;
        mso-level-number-position:left;
        text-indent:-.25in;}
ol
        {margin-bottom:0in;}
ul
        {margin-bottom:0in;}
-->
</style>
<!--[if gte mso 9]><xml>
 <o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
 <o:shapelayout v:ext="edit">
  <o:idmap v:ext="edit" data="1" />
 </o:shapelayout></xml><![endif]-->
</head>

<body lang=EN-US link=blue vlink=purple>

<div class=Section1>

<p class=MsoNormal>Dear GROMACS users,<o:p></o:p></p>

<p class=MsoNormal><o:p>&nbsp;</o:p></p>

<p class=MsoNormal>I am hoping to get &nbsp;some information from you experts
regarding the use of user-defined potentials (table*.xvg). &nbsp;With the help
of the GROMACS manual and several posts in the mailing list, I have been able
to make user-defined potential functions that I would like to apply to a system
of small molecules (16 atoms each, ~100 molecules).&nbsp; The crux of the
problem (see below) is that I would like to apply **separate** user-defined
potentials for *intra* and *inter* molecular interactions **<b>in a
computationally efficient way</b>**. &nbsp;The molecule I&#8217;m simulating
(in united-atom representation) is:<o:p></o:p></p>

<p class=MsoNormal><o:p>&nbsp;</o:p></p>

<p class=MsoNormal>C1 &#8211; O1 &#8211; C &#8211; C &#8211; O2 &#8211; C2<o:p></o:p></p>

<p class=MsoNormal><o:p>&nbsp;</o:p></p>

<p class=MsoNormal>and I want:<o:p></o:p></p>

<p class=MsoNormal><o:p>&nbsp;</o:p></p>

<p class=MsoListParagraph style='text-indent:-.25in;mso-list:l0 level1 lfo1'><![if !supportLists]><span
style='mso-list:Ignore'>(1)<span style='font:7.0pt "Times New Roman"'>&nbsp;&nbsp;&nbsp;
</span></span><![endif]>a user defined potential applied between C1 and C2 on the
same molecule<o:p></o:p></p>

<p class=MsoListParagraph style='text-indent:-.25in;mso-list:l0 level1 lfo1'><![if !supportLists]><span
style='mso-list:Ignore'>(2)<span style='font:7.0pt "Times New Roman"'>&nbsp;&nbsp;&nbsp;
</span></span><![endif]>a different user defined potential between C2 and O1 (&amp;
&nbsp;C1 and O2) on the same molecule<o:p></o:p></p>

<p class=MsoListParagraph style='text-indent:-.25in;mso-list:l0 level1 lfo1'><![if !supportLists]><span
style='mso-list:Ignore'>(3)<span style='font:7.0pt "Times New Roman"'>&nbsp;&nbsp;&nbsp;
</span></span><![endif]>a normal gromacs table potential applied between C1 and
C2 on *<b>different</b>* molecules<o:p></o:p></p>

<p class=MsoListParagraph style='text-indent:-.25in;mso-list:l0 level1 lfo1'><![if !supportLists]><span
style='mso-list:Ignore'>(4)<span style='font:7.0pt "Times New Roman"'>&nbsp;&nbsp;&nbsp;
</span></span><![endif]>a normal gromacs table potential applied between C2 and
O1 (also C1 and O2) on *<b>different</b>* molecules<o:p></o:p></p>

<p class=MsoNormal><o:p>&nbsp;</o:p></p>

<p class=MsoNormal>I can do this by defining a large number of &#8216;energygrps&#8217;;
specifically I need 4 different &#8216;energygrps&#8217; for each molecule (i.e.
separate ones for &nbsp;&#8216;C1&#8217;, &#8216;C2&#8217;, &#8216;O1&#8217;, &amp;
&#8216;O2&#8217;, with all other atoms lumped into a single &#8216;energygrp&#8217;
for all molecules). &nbsp;Because my simulation system currently contains 91 molecules
this results in 365 &#8216;energygrps&#8217; in the *.mdp file. &nbsp;Since
this is a lot of &#8216;energygrps&#8217; I redimensioned the gromacs arrays in
order to handle it as noted previously in the mailing list:<o:p></o:p></p>

<p class=MsoNormal><o:p>&nbsp;</o:p></p>

<p class=MsoNormal><a
href="http://www.gromacs.org/pipermail/gmx-users/2007-October/030084.html">http://www.gromacs.org/pipermail/gmx-users/2007-October/030084.html</a><o:p></o:p></p>

<p class=MsoNormal><o:p>&nbsp;</o:p></p>

<p class=MsoNormal>This works great but **<b>here&#8217;s the problem</b>** : <b>the
simulations run exceedingly slow when I use such a high number of defined &#8216;energygrps&#8217;</b>.
&nbsp;Without using the user defined potential functions I was getting roughly
25 ns/day (which, as always with GROMACS, is amazingly fast!).&nbsp; &nbsp;With
the applied potential functions and &#8216;energygrps&#8217; however I am only getting
&nbsp;1.5 ns/day.&nbsp; I thought one problem might be the number of times that
&#8216;mdrun&#8217; spends writing to the energy (.edr) file, but I have ruled
this out as a possibility because when I increased my &#8216;nstenergy&#8217;
in my *.mdp file by 100 fold &#8216;mdrun&#8217; still runs at the same slow rate.&nbsp;
The slowdown therefore appears to be directly related to the number of &#8216;energygrps.&#8217;.
To confirm this, I decreased the number of &#8216;energygrps&#8217; to 3 (by
lumping all &#8216;C1&#8217; and &#8216;C2&#8217; atoms together into one &#8216;energygrp&#8217;
and all &#8216;O1&#8217; and &#8216;O2&#8217; atoms into another &#8216;energygrp&#8217;)
and this accelerated &nbsp;the simulations dramatically; however, the same user
defined potential functions are then applied to both **intra** and **inter**molecular
interactions, which is not what I want!<o:p></o:p></p>

<p class=MsoNormal><o:p>&nbsp;</o:p></p>

<p class=MsoNormal>If anyone has any suggestions for speeding up the simulations
I&#8217;d really appreciate hearing from you!<o:p></o:p></p>

<p class=MsoNormal>Thanks in advance for your help. Any and all comments are
appreciated :)<o:p></o:p></p>

<p class=MsoNormal><o:p>&nbsp;</o:p></p>

<p class=MsoNormal>Eli Musselman<o:p></o:p></p>

</div>

</body>

</html>