<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
</head>
<body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">
Dear all,
<div><br>
</div>
<div>I'm trying to define modified morse potential in Gromacs to be used as a forcefield using tabulated potentials.</div>
<div><br>
</div>
<div>My potential's functional form is as:&nbsp;<span style="background-color: rgb(249, 249, 249); font-family: sans-serif; line-height: 19px; ">ε Exp[-2A(r-r*)] -2&nbsp;</span><span style="background-color: rgb(249, 249, 249); font-family: sans-serif; line-height: 19px; ">ε
 Exp[-A(r-r*)]</span></div>
<div><span style="background-color: rgb(249, 249, 249); font-family: sans-serif; line-height: 19px; "><br>
</span></div>
<div><span style="background-color: rgb(249, 249, 249); "><font face="sans-serif"><span style="line-height: 19px; ">So I have to define g®&nbsp;=&nbsp;</span></font></span><span style="background-color: rgb(249, 249, 249); font-family: sans-serif; line-height: 19px; ">ε
 Exp[</span><span style="background-color: rgb(249, 249, 249); "><font face="sans-serif"><span style="line-height: 19px; ">-2A(r-r*)] &nbsp;and h®=</span></font></span><span style="background-color: rgb(249, 249, 249); font-family: sans-serif; line-height: 19px; ">-2&nbsp;</span><span style="background-color: rgb(249, 249, 249); "><font face="sans-serif"><span style="line-height: 19px; ">ε
 Exp[-A(r-r*)]. They have to be defined as values&nbsp;in a&nbsp;xvg&nbsp;table where the table is filled with values of r, f®, f'®, g®,….</span></font></span></div>
<div><font face="sans-serif"><span style="line-height: 19px; ">My question is how can I make vales of these&nbsp;functions, while there's a variable in the exponential term.&nbsp;</span></font></div>
<div><font face="sans-serif"><span style="line-height: 19px; ">I saw in the manual on the&nbsp;</span></font><a href="http://www.gromacs.org/Documentation/How-tos/Tabulated_Potentials#Constructing_the_Table(s)">website</a><font face="sans-serif"><span style="line-height: 19px; ">&nbsp;noting
 that h®&nbsp;for buckingham is expressed as h®=AExp[-Br] so I was wondering how they make the table of h®&nbsp;values while B is a variable.</span></font></div>
<div><font face="sans-serif"><span style="line-height: 19px; "><br>
</span></font></div>
<div><font face="sans-serif"><span style="line-height: 19px; ">Solutions which cam&nbsp;ego&nbsp;my mind were:</span></font></div>
<div><font face="sans-serif"><span style="line-height: 19px; ">Should we use some&nbsp;</span></font><span style="font-family: sans-serif; line-height: 19px; ">mathematical approximations like Exp[-u]=1-u.</span></div>
<div><font face="sans-serif"><span style="line-height: 19px; ">or simply tabulated potentials does not support potentials more complex than lennard jones, and Buckingham is an integrated feature which doesn't need the&nbsp;xvv&nbsp;table.</span></font></div>
<div><font face="sans-serif"><span style="line-height: 19px; ">Any&nbsp;suggestions&nbsp;will be appreciated</span></font></div>
<div><font face="sans-serif"><span style="line-height: 19px; "><br>
</span></font></div>
<div><font face="sans-serif"><span style="line-height: 19px; ">regards</span></font></div>
<div><font face="sans-serif"><span style="line-height: 19px; ">Reza&nbsp;</span></font></div>
</body>
</html>