I have a coarse-grain molecular dynamic performed in Gromacs. I am interested, in computing the distance between an atom (bead) and a group of atoms (beads). That is to say, I want the distance from a particular bead of my membrane protein to the last beads of the lipids chains (this is the center of the membrane). All the lipids have the same bead at the final of the chain.
Please, any suggestions?