<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<style type="text/css" style="display:none;"><!-- P {margin-top:0;margin-bottom:0;} --></style>
</head>
<body dir="ltr">
<div id="divtagdefaultwrapper" style="font-size:12pt;color:#000000;background-color:#FFFFFF;font-family:'Times New Roman', Times, serif;">
<p>Hello all,<br>
</p>
<p><br>
</p>
<p>I'm new to the mailing list 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>
</p>
<p><br>
</p>
<p>What I'm trying to do;<br>
</p>
<p>I'm attempting to add functionality to 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 Monte
Carlo to change the value of lambda with an acceptance probability determined by the current running free energy estimated by the same integral used in Thermodynamic Integration.<br>
</p>
<p><br>
</p>
<p>What I've done so far;<br>
</p>
<p>I've added elamstatsAIM and elmcmoveAIM in enums.h.<br>
</p>
<p>I've added partial code to the ChooseNewLambda() function in expanded.c. I'm taking advantage of the metropolis sampler with trial +/- 1. <br>
</p>
<p><br>
</p>
<p>Where I'm stuck;<br>
</p>
<p>I'm not sure if I need to add code to UpdateWeights(). How is UpdateWeights() used?<br>
</p>
<p>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 there is a line that says "/* store_dh is dE */". Is the derivative "store_dhdl[]=enerd->term[F_DVDL]"?
Or, is this already being called somewhere in expanded.c that I can take advantage of, maybe dfhist? <br>
</p>
<p><br>
</p>
<p>I appreciate any advice that can be offered.<br>
</p>
<p><br>
</p>
<p>Thanks,<br>
</p>
<p><br>
</p>
<p>-ChrisM<br>
</p>
<p><br>
</p>
<div id="Signature">
<div name="divtagdefaultwrapper" style="font-family:Calibri,Arial,Helvetica,sans-serif; font-size:; margin:0">
<div style="font-family:Tahoma; font-size:13px">
<div style="font-family:'Times New Roman'; font-size:16px">Christopher A. Mirabzadeh</div>
<div style="font-family:'Times New Roman'; font-size:16px">Research Assistant/Physics Instructor<br>
</div>
<div style="font-family:'Times New Roman'; font-size:16px">Physics Department</div>
<div style="font-family:'Times New Roman'; font-size:16px">University of Idaho, Moscow</div>
<div style="font-family:'Times New Roman'; font-size:16px">509-339-5647</div>
</div>
</div>
</div>
</div>
</body>
</html>