[gmx-users] Distance COM of two systems

Justin Lemkul jalemkul at vt.edu
Thu Feb 7 19:46:53 CET 2019



On 2/6/19 11:26 AM, Antonio PEÓN wrote:
> Hello,
> I would like to calculate the distance from the center of masses (COM) 
> between two systems. One would be the center of mass of waters and
> another would be the center of mass of a lipid membrane. I was using
> this command and wanted to know if it is correct.
>
> gmx pairdist -f total.xtc -s md_0143.tpr -n in13.ndx -sel 2 -ref 5 -o
> distpair.avg -selrpos whole_mol_com -seltype whole_mol_com
> where 2 and 5 are the lipid membrane and waters respectively.
> Thanks in advance.
>

You want gmx distance -select "com of group 'X' plus com of group 'Y'" 
substituting in real group names for X and Y.

-Justin

-- 
==================================================

Justin A. Lemkul, Ph.D.
Assistant Professor
Office: 301 Fralin Hall
Lab: 303 Engel Hall

Virginia Tech Department of Biochemistry
340 West Campus Dr.
Blacksburg, VA 24061

jalemkul at vt.edu | (540) 231-3129
http://www.thelemkullab.com

==================================================



More information about the gromacs.org_gmx-users mailing list