<html><head><meta http-equiv="content-type" content="text/html; charset=utf-8"></head><body dir="auto"><div></div><div>Yes, exactly. For an efficient code, especially with long range interactions, I might recommend the use of C++. </div><div><br>On 14 May 2017, at 02:05, McMahon, Andrew P <<a href="mailto:andrew.mcmahon13@imperial.ac.uk">andrew.mcmahon13@imperial.ac.uk</a>> wrote:<br><br></div><blockquote type="cite"><div>

<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">



<div id="divtagdefaultwrapper" style="font-size:12pt;color:#000000;font-family:Calibri,Arial,Helvetica,sans-serif;" dir="ltr">
<p>Hi all,</p>
<p><br>
</p>
<p>Forgive previous email, have now installed the ALPS package and I have tutorials etc running.</p>
<p><br>
</p>
<p>I am trying to develop a classical Monte Carlo simulation with long range dipole-dipole interactions, the energy of which will be calculated through an Ewald summation - does anyone have any advice on how best to approach this through ALPS (I don't want
 to reinvent the wheel if there is already a way to do it in the package)?</p>
<p><br>
</p>
<p>I suppose I can just create my own classes and energy methods in a similar fashion to this example
<a href="http://alps.comp-phys.org/mediawiki/index.php/Tutorials:Code-01_Python" class="OWAAutoLink" id="LPlnk90292" previewremoved="true">
http://alps.comp-phys.org/mediawiki/index.php/Tutorials:Code-01_Python</a>, where the developer defines the energy update, is this how you would recommend I do it? I'm trying to think of the most efficient way from a development point of view.</p>
<p><br>
</p>
<p>Thanks all, great package by the way,</p>
<p>Andy McMahon.</p>
<p><br>
</p>
<div id="Signature">
<div style="font-family:Tahoma; font-size:13px">-----------------------------------------------<br>
Andrew P. McMahon<br>
Theory and Simulation of Materials<br>
Imperial College London<br>
<a href="mailto:andrew.mcmahon13@imperial.ac.uk">andrew.mcmahon13@imperial.ac.uk</a><br>
------------------------------------------------<br>
</div>
</div>
</div>


</div></blockquote><blockquote type="cite"><div><span></span><br><span></span><br><span>----</span><br><span>Comp-phys-alps-users Mailing List for the ALPS Project</span><br><span><a href="http://alps.comp-phys.org/">http://alps.comp-phys.org/</a></span><br><span></span><br><span>List info: <a href="https://lists.phys.ethz.ch//listinfo/comp-phys-alps-users">https://lists.phys.ethz.ch//listinfo/comp-phys-alps-users</a></span><br><span>Archive: <a href="https://lists.phys.ethz.ch//pipermail/comp-phys-alps-users">https://lists.phys.ethz.ch//pipermail/comp-phys-alps-users</a></span><br><span></span><br><span>Unsubscribe by writing a mail to <a href="mailto:comp-phys-alps-users-leave@lists.phys.ethz.ch">comp-phys-alps-users-leave@lists.phys.ethz.ch</a>.</span></div></blockquote></body></html>