GROMACS version: 2023-dev-20220412
GROMACS modification: No
I have a question that is similar to other questions asked before (L-J and electrostatic force - #3 by di_jin and Coulomb force calculation), but wanted to see if there was a better way of doing what I am trying right now. The gist of this is that I want to get only the electrostatic forces/energies out of the system, and not have any other forces/energies calculated in this output.
I have a lipid bilayer system with a peptide, and I have reason to believe that the electrostatic interaction of the peptide with its environment is the dominant source of peptide motion in my system. I have large XTC trajectory files, and so can use the -rerun option to get the forces back out of the system by post-processing my files. I am attempting to get out just the electrostatic force on each atom of the peptide from all atoms in the system (I realize that the force between any two specific groups is fictitious due to not including all of the charges/screening in the system). What I’m trying to do is avoid writing my own electrostatic force computation in python, as this calculation should already be done in GROMACS underneath the surface, but I cannot figure out how to only recalculate the electrostatic forces/energies and get them out of gromacs.
I’ve tried using energy groups, different coulombic cutoffs, and free energy groups, but nothing seems to work at effectively only getting the electrostatic force out of the system! In the end, I just want the force on each peptide atom as a function of time, but only the contribution from the electrostatic calculations. I would have thought that using a free-energy based calculation would have worked, but my setup doesn’t seem to handle this, or I am doing something wrong with my lambda states/values.
Any help on getting the electrostatic force only on my peptide would be greatly appreciated.