Hi guys,
I'm trying to make sense of the correct way to account for periodicity when computing distance components running with gromacs.
I am using the latest development version of plumed patched to gromacs 4.6.3.
I would like to bias the z component of a distance between a real particle and a ghost particle. The particle belongs to a protein and the ghost is defined with respect to 3 atoms in the same protein.
I understand I should specify before anything else in my plumed input
WHOLEMOLECULES ENTITY0=1-2619 (1-2619 being the protein atoms) so that the protein is considered as a whole
I then define my ghost particle
GHOST ATOMS=286,936,1707 COORDINATES=-0.424,0.659,-0.780 LABEL=G1
and my regular particle
A: GROUP ATOMS=2264
I then calculate the distance between the 2 and its 3 cartesian components with
DISTANCE ...
LABEL=A_G1
ATOMS=A,G1
COMPONENTS
... DISTANCE
This does not give the right behavior, along the trajectory, the z component of the distance is sometimes more than half the size of the box (I did get a warning in the output and from the manual that the component will not have the right behavior so no surprise there). I understand from the manual I should be using:
dA_G1: COMBINE ARG=A_G1.z PERIODIC=-Z,+Z
However, using pressure control, the size of the simulation box is fluctuating making it impossible to define the value of the z axis of the box.
It doesn't seem to me that gromacs has a keyword that allows to keep molecules whole either.
What do you guys recommend ? I would like to stick with NPT if possible.
Best,
Lucie