<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=us-ascii">
</head>
<body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class="">
<div style="margin-top: 0px; margin-bottom: 0px; font-family: 'Times New Roman', Times, serif; font-size: 16px; background-color: rgb(255, 255, 255);" class="">
Hello all,<br class="">
</div>
<div style="margin-top: 0px; margin-bottom: 0px; font-family: 'Times New Roman', Times, serif; font-size: 16px; background-color: rgb(255, 255, 255);" class="">
<br class="">
</div>
<div style="margin-top: 0px; margin-bottom: 0px; font-family: 'Times New Roman', Times, serif; font-size: 16px; background-color: rgb(255, 255, 255);" class="">
I'm new to the mailing list&nbsp;so hopefully I'm doing this correctly. I searched through the archives but didn't find anything helpful. There may have been something that I looked over or missed entirely. Apologies if this has already been covered elsewhere. If
 so, please point me in that direction.<br class="">
</div>
<div style="margin-top: 0px; margin-bottom: 0px; font-family: 'Times New Roman', Times, serif; font-size: 16px; background-color: rgb(255, 255, 255);" class="">
<br class="">
</div>
<div style="margin-top: 0px; margin-bottom: 0px; font-family: 'Times New Roman', Times, serif; font-size: 16px; background-color: rgb(255, 255, 255);" class="">
What I'm trying to do;<br class="">
</div>
<div style="margin-top: 0px; margin-bottom: 0px; font-family: 'Times New Roman', Times, serif; font-size: 16px; background-color: rgb(255, 255, 255);" class="">
I'm attempting to add functionality to&nbsp;the expanded ensemble calculations in Gromacs by adding the Adaptive Integration Method by Fasnacht, DOI: 10.1103/PhysRevE.69.056704, for free energy calculations. AIM is an enhanced sampling method that uses Metropolis&nbsp;Monte
 Carlo to change the value of lambda&nbsp;with an acceptance probability determined by the current running free energy estimated by the same integral used in Thermodynamic Integration.<br class="">
</div>
<div style="margin-top: 0px; margin-bottom: 0px; font-family: 'Times New Roman', Times, serif; font-size: 16px; background-color: rgb(255, 255, 255);" class="">
<br class="">
</div>
<div style="margin-top: 0px; margin-bottom: 0px; font-family: 'Times New Roman', Times, serif; font-size: 16px; background-color: rgb(255, 255, 255);" class="">
What I've done so far;<br class="">
</div>
<div style="margin-top: 0px; margin-bottom: 0px; font-family: 'Times New Roman', Times, serif; font-size: 16px; background-color: rgb(255, 255, 255);" class="">
I've added elamstatsAIM and elmcmoveAIM in enums.h.<br class="">
</div>
<div style="margin-top: 0px; margin-bottom: 0px; font-family: 'Times New Roman', Times, serif; font-size: 16px; background-color: rgb(255, 255, 255);" class="">
I've added partial code to the ChooseNewLambda() function in expanded.c. I'm taking advantage of the metropolis sampler with trial &#43;/- 1.&nbsp;<br class="">
</div>
<div style="margin-top: 0px; margin-bottom: 0px; font-family: 'Times New Roman', Times, serif; font-size: 16px; background-color: rgb(255, 255, 255);" class="">
<br class="">
</div>
<div style="margin-top: 0px; margin-bottom: 0px; font-family: 'Times New Roman', Times, serif; font-size: 16px; background-color: rgb(255, 255, 255);" class="">
Where I'm stuck;<br class="">
</div>
<div style="margin-top: 0px; margin-bottom: 0px; font-family: 'Times New Roman', Times, serif; font-size: 16px; background-color: rgb(255, 255, 255);" class="">
I'm not sure if I need to add code to UpdateWeights(). How is UpdateWeights() used?<br class="">
</div>
<div style="margin-top: 0px; margin-bottom: 0px; font-family: 'Times New Roman', Times, serif; font-size: 16px; background-color: rgb(255, 255, 255);" class="">
I need the derivative of the Hamiltonian with respect to lambda at every md step. I'm having a hard time narrowing down this variable. I know it's calculated and I see in mdebin.c&nbsp;there is a line that says &quot;/* store_dh is dE */&quot;. Is the derivative&nbsp;&quot;store_dhdl[]=enerd-&gt;term[F_DVDL]&quot;?
 &nbsp;Or, is this already being called&nbsp;somewhere in expanded.c that I can take advantage of, maybe dfhist?&nbsp;<br class="">
</div>
<div style="margin-top: 0px; margin-bottom: 0px; font-family: 'Times New Roman', Times, serif; font-size: 16px; background-color: rgb(255, 255, 255);" class="">
<br class="">
</div>
<div style="margin-top: 0px; margin-bottom: 0px; font-family: 'Times New Roman', Times, serif; font-size: 16px; background-color: rgb(255, 255, 255);" class="">
I appreciate any advice that can be offered.<br class="">
</div>
<div style="margin-top: 0px; margin-bottom: 0px; font-family: 'Times New Roman', Times, serif; font-size: 16px; background-color: rgb(255, 255, 255);" class="">
<br class="">
</div>
<div style="margin-top: 0px; margin-bottom: 0px; font-family: 'Times New Roman', Times, serif; font-size: 16px; background-color: rgb(255, 255, 255);" class="">
Thanks,<br class="">
</div>
<div style="margin-top: 0px; margin-bottom: 0px; font-family: 'Times New Roman', Times, serif; font-size: 16px; background-color: rgb(255, 255, 255);" class="">
<br class="">
</div>
<div style="margin-top: 0px; margin-bottom: 0px; font-family: 'Times New Roman', Times, serif; font-size: 16px; background-color: rgb(255, 255, 255);" class="">
-ChrisM<br class="">
</div>
<div style="margin-top: 0px; margin-bottom: 0px; font-family: 'Times New Roman', Times, serif; font-size: 16px; background-color: rgb(255, 255, 255);" class="">
<br class="">
</div>
<div id="Signature" style="font-family: 'Times New Roman', Times, serif; font-size: 16px; background-color: rgb(255, 255, 255);" class="">
<div name="divtagdefaultwrapper" style="font-family: Calibri, Arial, Helvetica, sans-serif; margin: 0px;" class="">
<div style="font-family: Tahoma; font-size: 13px;" class="">
<div style="font-family: 'Times New Roman'; font-size: 16px;" class="">Christopher A. Mirabzadeh</div>
<div style="font-family: 'Times New Roman'; font-size: 16px;" class="">Research Assistant/Physics Instructor<br class="">
</div>
<div style="font-family: 'Times New Roman'; font-size: 16px;" class="">Physics Department</div>
<div style="font-family: 'Times New Roman'; font-size: 16px;" class="">University of Idaho, Moscow</div>
<div style="font-family: 'Times New Roman'; font-size: 16px;" class="">509-339-5647</div>
</div>
</div>
</div>
</body>
</html>