<html>
<head>
<style><!--
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 10pt;
font-family:Tahoma
}
--></style>
</head>
<body class='hmmessage'>
Yes.<br><br>The pow function is expensive though. The code will run much faster<br>if you can use rinvsix, such as check for  2*rinvsix &gt; c6/c12.<br>(I forgot the factor 2 in my previous mail).<br><br>Berk<br><br>&gt; From: makoto-yoneya@aist.go.jp<br>&gt; To: gmx-users@gromacs.org<br>&gt; Date: Tue, 11 Jan 2011 10:10:56 +0900<br>&gt; Subject: [gmx-users] truncated LJ potential<br>&gt; <br>&gt; Dear Berk:<br>&gt; <br>&gt; Thanks again for the further reply.<br>&gt; <br>&gt; &gt;&gt; The LJ potential and force code in the above looks like in the c6-c12<br>&gt; form<br>&gt; &gt;&gt; not in epsilon-sigma one.<br>&gt; &gt;&gt; The LJ potential modification I'd like to try is based on the epsilon-<br>&gt; &gt;&gt; sigma form and the mixing rule is the Lorents-Bertelot's one.<br>&gt; &gt;&gt; Could you kindly tell me the LJ potential and force routine in the<br>&gt; epsilon-<br>&gt; &gt;&gt; Sigma form.<br>&gt; &gt;<br>&gt; &gt;There is no such code.<br>&gt; &gt;<br>&gt; &gt;You can simply check for rinvsix &gt; c6/c12<br>&gt; <br>&gt; Is it means that the LJ potential in epsion-sigma form (with the<br>&gt; Lorents-Bertelot <br>&gt; mixing rule) is evaluated after the coversion into c6-c12 form in GROMACS?<br>&gt; Then, may I evaluate the modified LJ potential:<br>&gt; <br>&gt; &gt; &gt; V(r)<br>&gt; &gt; &gt;    = 4*epsilon*{ (sigma/r)^(12) - (sigma/r)^6 + (1/4) } for r&lt;=<br>&gt; &gt; &gt; 2^(1/6)*sigma<br>&gt; &gt; &gt;    = 0 for r&gt;  2^(1/6)*sigma<br>&gt; <br>&gt; with translated into the equivalent c6-c12 form:<br>&gt; <br>&gt; V(r)<br>&gt;    = (c12/r)^(12) - (c6/r)^6 + (c6/2)*(c6/2*c12) for r&lt;= (2*c12/c6)^(1/6)<br>&gt;    = 0 for r &gt; (2*c12/c6)^(1/6)<br>&gt; <br>&gt; in the following routines.<br>&gt; &gt; &gt; You can also set the environment variable nb_generic.c and modify<br>&gt; &gt; &gt; src/gmxlib/nonbonded/nb_generic.c, but might lead to somewhat<br>&gt; &gt; &gt; slower simulations.<br>&gt; <br>&gt; If my understanding in the above would correct, I'll try that.<br>&gt; <br>&gt; Thank you for advance.<br>&gt; <br>&gt; Makoto Yoneya, Dr.<br>&gt; http://staff.aist.go.jp/makoto-yoneya/<br>&gt; <br>&gt; -- <br>&gt; gmx-users mailing list    gmx-users@gromacs.org<br>&gt; http://lists.gromacs.org/mailman/listinfo/gmx-users<br>&gt; Please search the archive at http://www.gromacs.org/Support/Mailing_Lists/Search before posting!<br>&gt; Please don't post (un)subscribe requests to the list. Use the <br>&gt; www interface or send it to gmx-users-request@gromacs.org.<br>&gt; Can't post? Read http://www.gromacs.org/Support/Mailing_Lists<br>                                               </body>
</html>