Re: Adding bias potential

From: Pang, Yui Tik (
Date: Thu Nov 12 2020 - 15:25:58 CST

Dear Peter,

I am the co-developer of GaMD and am happy to answer your question. The boost potential was applied on the source code level which involves modifying the "Controller" module of NAMD. You may grep "accelMD" from the NAMD source code to find out the details.

It is, however, usually not necessary to modify NAMD source code to add customize bias potential. There are several ways to do it, like scriptedFunction in colvars, TclForce or TclBC. You may explore different approaches before going down the path of modifying NAMD source code.

Hope it helps.

From: <> on behalf of Peter Rosenquist <>
Sent: Thursday, November 12, 2020 4:00 PM
To: <>
Subject: namd-l: Adding bias potential


I am trying to add a custom bias potential along the lines of aMD or GaMD, specifically the /delta*V(r) of: V*(r) = V(r) + /delta*V(r), where V(r) is original potential and /delta*V(r) is defined as the output of my custom function p(r). How does aMD add the bias potential? Is there another way to do this in NAMD?


This archive was generated by hypermail 2.1.6 : Fri Dec 31 2021 - 23:17:10 CST