<html><head></head><body><div style="font-family: Verdana;font-size: 12.0px;"><div>
<div>Thank you for your response.</div>

<div>&nbsp;</div>

<div>The column &quot;Order of parameters and their units&quot; of table 5.5 states that I have to include a value for n and the force constant k.&nbsp;</div>

<div>I tried it by simply setting k to 1:</div>

<div>&nbsp;[ bonds ]<br/>
&nbsp;;ai&nbsp;&nbsp; aj&nbsp; func &nbsp;&nbsp; n&nbsp; k<br/>
&nbsp; 1 &nbsp;&nbsp; 2&nbsp;&nbsp;&nbsp;&nbsp; 9 &nbsp;&nbsp;&nbsp;&nbsp; 0&nbsp; 1</div>

<div>&nbsp;</div>

<div>it produces a similar error message (now for the angles instead of the bonds):</div>

<div>
<div>Fatal error:<br/>
Incorrect number of parameters - found 1, expected 2 or 4 for Tab. Angles.</div>

<div>&nbsp;</div>

<div>(I also added the n and k in the [angles]&nbsp; part like:</div>

<div>[ angles ]<br/>
;&nbsp; ai&nbsp;&nbsp;&nbsp;&nbsp; aj&nbsp;&nbsp;&nbsp;&nbsp; ak&nbsp;&nbsp;&nbsp; angleTyp&nbsp; n&nbsp;&nbsp; k<br/>
&nbsp;&nbsp;&nbsp; 1&nbsp;&nbsp;&nbsp;&nbsp; 2&nbsp; &nbsp; &nbsp; 3&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 8&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 1&nbsp;&nbsp; 1</div>

<div>because of the fact that table 5.5 also states that I have to include a value for n and the force constant k for the angles.</div>

<div>)</div>

<div>Any idea if I have to secify further values? (Some which are not in table 5.5)&nbsp;</div>

<div>Or does anybody know the activator for such an error message?</div>

<div>&nbsp;</div>

<div>Thank you in advance!</div>

<div>Best,</div>

<div>Liz</div>
</div>

<div>
<div name="quote" style="margin:10px 5px 5px 10px; padding: 10px 0 10px 10px; border-left:2px solid #C3D9E5; word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;">
<div style="margin:0 0 10px 0;"><b>Gesendet:</b>&nbsp;Dienstag, 04. August 2015 um 15:33 Uhr<br/>
<b>Von:</b>&nbsp;&quot;Mark Abraham&quot; &lt;mark.j.abraham@gmail.com&gt;<br/>
<b>An:</b>&nbsp;gmx-users@gromacs.org<br/>
<b>Betreff:</b>&nbsp;Re: [gmx-users] tabulated bonded interaction functions</div>

<div name="quoted-content">Hi,<br/>
<br/>
Yes you have to specify k. That detail is in table 5.5, to which that<br/>
section refers you.<br/>
<br/>
Mark<br/>
<br/>
On Tue, Aug 4, 2015 at 3:26 PM Liz Bell &lt;LizBell@gmx.at&gt; wrote:<br/>
<br/>
&gt; Dear all,<br/>
&gt; Regarding my question concerning the format of the [bonds] part of the topology file, I tried some new things:<br/>
&gt; Changing the [bonds] part in the topology to:<br/>
&gt; [ bonds ]<br/>
&gt; ;ai aj func n<br/>
&gt; 1 2 9 0<br/>
&gt;<br/>
&gt; for n=0 (and therefore the file: table_b0.xvg) produces this error<br/>
&gt; message:<br/>
&gt;<br/>
&gt; Fatal error:<br/>
&gt; Incorrect number of parameters - found 1, expected 2 or 4 for Tab. Bonds.<br/>
&gt;<br/>
&gt; But the other error message reported in the first post vanished.<br/>
&gt; I would be really grateful if somebody could tell me how the line in the<br/>
&gt; [bonds] part has to look like when using tabulated boned interactions.<br/>
&gt; Do I for example have to specify the force constant reported in the 4.2.14<br/>
&gt; section of the manual (by simply writing it behind the n) ?<br/>
&gt;<br/>
&gt; Best,<br/>
&gt; Liz<br/>
&gt;<br/>
&gt;<br/>
&gt; *Gesendet:* Dienstag, 04. August 2015 um 14:41 Uhr<br/>
&gt; *Von:* &quot;Liz Bell&quot; &lt;LizBell@gmx.at&gt;<br/>
&gt; *An:* gromacs.org_gmx-users@maillist.sys.kth.se<br/>
&gt; *Betreff:* [gmx-users] tabulated bonded interaction functions<br/>
&gt;<br/>
&gt; Dear all,<br/>
&gt;<br/>
&gt; I am perfoming MD simulations of P3Ht chains and I would like to define the bonded as well as the nonbonded parameters using tables.<br/>
&gt; Regarding the bonded parameters, there are no problems until now, as I simply wrote some additional lines in the mdp file (similar to this explanation: <a href="http://www.gromacs.org/Documentation/How-tos/Tabulated_Potentials" target="_blank">http://www.gromacs.org/Documentation/How-tos/Tabulated_Potentials</a>).<br/>
&gt; But how do I tell gromacs to use the information for [bonds], [angles]... (all the bonded potentials)... from table_b0.xvg for example.<br/>
&gt;<br/>
&gt; The first line of the [bonds] section in my topology file looks like:<br/>
&gt; [ bonds ]<br/>
&gt; ;ai aj func<br/>
&gt; 1 2 9<br/>
&gt; Where 1 and 2 are the atoms and 9 is the function type.<br/>
&gt; Running grompp produces various of those mistakes:<br/>
&gt;<br/>
&gt; No default Tab. Bonds NC types<br/>
&gt; No default Lin. Angle types<br/>
&gt; No default Proper Dih. types<br/>
&gt;<br/>
&gt; I think Gromacs can not find the values that I defined in the<br/>
&gt; table_b*.xvg, table_a*.xvg and table_d*.xvg.<br/>
&gt;<br/>
&gt; The section 4.2.12 in the gromacs manual tells &quot;...for a bond with n=0 [...] the table is read from the file table_b0.xvg.<br/>
&gt; But where do I have to specify that the atoms 1 2 have the bonds with n=0, with the information provided in the table_b0.xvg?<br/>
&gt;<br/>
&gt; Does anybody know how to adapt the topology file, or whether some<br/>
&gt; additional lines are needed in the mdp files?<br/>
&gt;<br/>
&gt; Thank you very much in advance,<br/>
&gt;<br/>
&gt; Liz<br/>
&gt; -- Gromacs Users mailing list * Please search the archive at<br/>
&gt; <a href="http://www.gromacs.org/Support/Mailing_Lists/GMX-Users_List" target="_blank">http://www.gromacs.org/Support/Mailing_Lists/GMX-Users_List</a> before<br/>
&gt; posting! * Can&#39;t post? Read <a href="http://www.gromacs.org/Support/Mailing_Lists" target="_blank">http://www.gromacs.org/Support/Mailing_Lists</a><br/>
&gt; * For (un)subscribe requests visit<br/>
&gt; <a href="https://maillist.sys.kth.se/mailman/listinfo/gromacs.org_gmx-users" target="_blank">https://maillist.sys.kth.se/mailman/listinfo/gromacs.org_gmx-users</a> or<br/>
&gt; send a mail to gmx-users-request@gromacs.org.<br/>
&gt; --<br/>
&gt; Gromacs Users mailing list<br/>
&gt;<br/>
&gt; * Please search the archive at<br/>
&gt; <a href="http://www.gromacs.org/Support/Mailing_Lists/GMX-Users_List" target="_blank">http://www.gromacs.org/Support/Mailing_Lists/GMX-Users_List</a> before<br/>
&gt; posting!<br/>
&gt;<br/>
&gt; * Can&#39;t post? Read <a href="http://www.gromacs.org/Support/Mailing_Lists" target="_blank">http://www.gromacs.org/Support/Mailing_Lists</a><br/>
&gt;<br/>
&gt; * For (un)subscribe requests visit<br/>
&gt; <a href="https://maillist.sys.kth.se/mailman/listinfo/gromacs.org_gmx-users" target="_blank">https://maillist.sys.kth.se/mailman/listinfo/gromacs.org_gmx-users</a> or<br/>
&gt; send a mail to gmx-users-request@gromacs.org.<br/>
--<br/>
Gromacs Users mailing list<br/>
<br/>
* Please search the archive at <a href="http://www.gromacs.org/Support/Mailing_Lists/GMX-Users_List" target="_blank">http://www.gromacs.org/Support/Mailing_Lists/GMX-Users_List</a> before posting!<br/>
<br/>
* Can&#39;t post? Read <a href="http://www.gromacs.org/Support/Mailing_Lists" target="_blank">http://www.gromacs.org/Support/Mailing_Lists</a><br/>
<br/>
* For (un)subscribe requests visit<br/>
<a href="https://maillist.sys.kth.se/mailman/listinfo/gromacs.org_gmx-users" target="_blank">https://maillist.sys.kth.se/mailman/listinfo/gromacs.org_gmx-users</a> or send a mail to gmx-users-request@gromacs.org.</div>
</div>
</div>
</div></div></body></html>