<html>
<head>
<style>
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 10pt;
font-family:Verdana
}
</style>
</head>
<body class='hmmessage'>
<br><br>&gt; Date: Fri, 27 Mar 2009 09:56:02 +1100<br>&gt; From: Mark.Abraham@anu.edu.au<br>&gt; To: gmx-users@gromacs.org<br>&gt; Subject: Re: [gmx-users] How to add another electrostatic summation method        in        Gromacs<br>&gt; <br>&gt; Shuangxing Dai wrote:<br>&gt; &gt; Thank you for your help. I attached the page of the form of potential. <br>&gt; &gt; The equation (5.13) gives all the potential energy of neighbours of one <br>&gt; &gt; ion in a truncation sphere.  Rc is cut-off. Since this potential depends <br>&gt; &gt; on all the neighbours in a cut-off distance, I cannot give the pair <br>&gt; &gt; interaction because in this method, only the total potential energy of <br>&gt; &gt; one ion maks sense. In Ewald summation, both the real space and <br>&gt; &gt; reciprocal space summation can be written as the summation of pair <br>&gt; &gt; potential. But in wolf, I cannot do that.<br>&gt; <br>&gt; It looks separable into a double sum over atom pairs from within a <br>&gt; cutoff, since the value of that limit is constant.<br>&gt; <br>&gt; &gt; Since I cannot use Ewald without peoriodical boundary conditions while <br>&gt; &gt; this Wolf method can, so I cannot simply use Gromacs to do my <br>&gt; &gt; simulation. The question is which files needed to be modified if I want <br>&gt; &gt; to add a new one? Is there any direct way? Or I should read all the <br>&gt; &gt; whole code?<br>&gt; <br>&gt; You can start by reading the kernel code generated by mknb during the <br>&gt; make process and found in src/gmxlib/nonbonded/nb_kernel. If you play <br>&gt; with the flags to mknb you can get comments embedded in the C files. <br>&gt; Find the one that does Ewald without table lookups and consider how <br>&gt; you'd need to change it to suit your needs.<br>&gt; <br>&gt; Mark<br><br>Note that in 4.0 there are now also plain c loops:<br>src/gmxlib/nonbonded/nb_generic.c<br>which are easy to modify.<br>You will need to set the env var GMX_NB_GENERIC to use them.<br><br>Berk<br><br><br /><hr />Express yourself instantly with MSN Messenger! <a href='http://clk.atdmt.com/AVE/go/onm00200471ave/direct/01/' target='_new'>MSN Messenger</a></body>
</html>