[gmx-users] How can I implement a radial potential field in GROMACS?
Wes Michaels
wpm216 at stanford.edu
Mon Jul 31 19:07:17 CEST 2017
Hello,
(Cross-post from my original post here: https://www.researchgate.net/post/How_can_I_implement_a_radial_potential_field_in_a_MD_simulation_GROMACS)
Is there a way to apply a potential field to all atoms in a simulation box in GROMACS? I'd like to implement some radial potential energy function, such as U(r)=k*r^2 or similar, that applies a force to each atom as a function of its position. In my case, I’d like to draw atoms towards the center of the box.
I looked into implementing this with the pull code with a dummy atom, but I gathered that the pull code acts on the center of mass of the specified index group, not on each atom in the group. So, if all the atoms in my simulation in a given index group are distributed radially around the center of my box, no force will be applied. Scaling behavior of Coulomb and LJ potentials on the dummy atom seems to rule them out as possible sources of a potential, too.
Is there a way I can modify the reference positions of position restraints of atoms to be centered at the middle of the box, instead of the atom's initial position? Or, can I implement a solution using force switching that acts only on the dummy atom? Or, is there another way to tackle this problem?
Thanks! Any and all suggestions are appreciated. If clarification is needed on my desired goal, just let me know.
-Wes
More information about the gromacs.org_gmx-users
mailing list