Position restraints of positions relative to moving center of mass

GROMACS version:
GROMACS modification: Yes/No
Here post your question

Hi,

I want to pull the center of mass of a group of atoms in x-direction by using the harmonic potential, but I also want each atom in the group to stay static relative to the group’s center of mass. I can freeze y and z coordinates, but what should I do with the x-coordinates so that they travel at the constant designated pulling velocity without diffusing in x? Is this done through position restrains?

Hi di_jin,
Did you find a way to achieve relative position restrains? I would like to do a similar thing, but I fear this may not be supported in the current Gromacs release. In any case I would be interested in any follow-up on this question.

Hi Michele, Unfortunately I haven’t found a solution yet but I am still thinking about it. Let’s update each other if there is any progress.

I don’t see why position restraints would not work for this. You can turn on free-energy and supply an “A” and “B” position restraint file which differ only in x-coordaintes and then pull using delta-lambda.

Hi Berk,

This solution may be sufficient for di_jin’s particular problem, but I think the general problem is a bit more complicated. We would like to restrain atoms to distances related to the centre of mass, but not the centre of mass itself. That is, the COM is free to move (or be pulled), while atoms are restrained to a fixed x/y/z coordinate w.r.t it.

E.g this might be necessary for an accurate calculation of solid liquid friction, I can explain why in person.

But that is exactly what position restraints with refcoord-scaling does, right? At least if you need a single group only.

Ah, no position restraints with refcoord-scaling fixes the COM relative to the box.

To use the actual COM, one would need to compute it. This can be problematic in a periodic system and this will be expensive when running in parallel.