I want to measure the distance between the com of group "SOL" and all atoms named OW (not the com of these atoms!!). I tried to use gmx distance -s md.tpr -f nvt1.part0001.trr -n index.ndx -select 'com of group "SOL" plus name "OW"' -oall but it is not right. Do you have any answer? best regards