[gmx-users] Output center of mass of each molecules in a system.

Justin Lemkul jalemkul at vt.edu
Thu Jun 8 23:11:17 CEST 2017



On 6/8/17 12:19 PM, Christopher Neale wrote:
> make an index file with gmx make_ndx and then script it to create an index for each water molecule, e.g.:
> 
> 
> gmx make_ndx -f my.gro -o index.ndx << EOF
> 
> $(for((i=1;i<=100;i++)); do echo r${i}; done)
> 
> q
> 
> EOF
> 
> 

Even easier:

splitres (number of desired group)

-Justin

> then you can likewise script the input to gmx traj
> 
> ________________________________
> From: gromacs.org_gmx-users-bounces at maillist.sys.kth.se <gromacs.org_gmx-users-bounces at maillist.sys.kth.se> on behalf of Li, Shi <sli259 at g.uky.edu>
> Sent: 08 June 2017 11:26:46
> To: gromacs.org_gmx-users at maillist.sys.kth.se
> Subject: [gmx-users] Output center of mass of each molecules in a system.
> 
> Dear GMX users,
> 
> I want to output the center of mass of each molecule in my simulation box.
> I think I should use gmx traj, with -com option. But this only gave me the
> center of mass for the whole system. If my system only contains 100 same
> solvent molecules, is there a method to output the center of mass for each
> individual molecule in the system?
> 
> Thank you for any help!
> Shi
> --
> Gromacs Users mailing list
> 
> * Please search the archive at http://www.gromacs.org/Support/Mailing_Lists/GMX-Users_List before posting!
> 
> * Can't post? Read http://www.gromacs.org/Support/Mailing_Lists
> 
> * For (un)subscribe requests visit
> https://maillist.sys.kth.se/mailman/listinfo/gromacs.org_gmx-users or send a mail to gmx-users-request at gromacs.org.
> 

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

Justin A. Lemkul, Ph.D.
Ruth L. Kirschstein NRSA Postdoctoral Fellow

Department of Pharmaceutical Sciences
School of Pharmacy
Health Sciences Facility II, Room 629
University of Maryland, Baltimore
20 Penn St.
Baltimore, MD 21201

jalemkul at outerbanks.umaryland.edu | (410) 706-7441
http://mackerell.umaryland.edu/~jalemkul

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


More information about the gromacs.org_gmx-users mailing list