[gmx-users] interaction lists in idef.h

David van der Spoel spoel at xray.bmc.uu.se
Tue Sep 4 08:37:11 CEST 2007


wnoid at hec.utah.edu wrote:
> hello all.
> 
> 
> 
> i am trying to trying to write an analysis program that takes advantage
> of the gromacs utilities/structures.  for my analysis i need to identify
> each type of interaction in the potential energy function and the atoms
> involved in each equivalent interaction of the given type.  for example,
> for each different type of bond angle, i would like to identify each
> triple of bonded atoms forming the given type of bond angle.  also i
> would like to be able to identify each pair of atoms - one of type A and
> one of type B - that interact through a nonbonded (lennard-jones type)
> A-B interaction.


try checking out similar utilities, like src/tools/mk_angndx.c
you may even use that to generate simpler index file as input for your 
tools.
for nonbonded an interaction matrix is stored at the beginning of the idef
(idef->ntypes * idef->ntypes entries).
> 
> 
> 
> i would like to use something like "read_tps_conf" to read a tpr file
> and then extract these lists of pairs, triples, etc. from the
> interaction list in the topology data structure.  however, after
> spending some time fiddling around with interaction list data structures
> such as idef and ilist, it is still not obvious to me how to extract
> this information.  after reading through types/idef.h, it seems that the
> information i need is stored in these structures, but i still don't
> understand how they are used.  is there a relatively easy way to get
> these lists of interactions for each interaction type out of the tpr
> file?  and if so, can someone please enlighten me as to how this is done?
> 
> 
> 
> of course this information can be obtained from the .top file and i have
> started writing my own utility for extracting this information directly
> from the .top file.  however, if there is a clean way to extract the
> information from the .tpr file using gromacs utilities that are already
> written, that would be a big help.
> 
> 
> 
> thanks to anyone who can help me out here.
> 
> 
> 
> will noid
> 
> 
> 
> _______________________________________________
> gmx-users mailing list    gmx-users at gromacs.org
> http://www.gromacs.org/mailman/listinfo/gmx-users
> Please search the archive at http://www.gromacs.org/search before posting!
> Please don't post (un)subscribe requests to the list. Use thewww 
> interface or send it to gmx-users-request at gromacs.org.
> Can't post? Read http://www.gromacs.org/mailing_lists/users.php


-- 
David van der Spoel, Ph.D.
Molec. Biophys. group, Dept. of Cell & Molec. Biol., Uppsala University.
Box 596, 75124 Uppsala, Sweden. Phone:	+46184714205. Fax: +4618511755.
spoel at xray.bmc.uu.se	spoel at gromacs.org   http://folding.bmc.uu.se



More information about the gromacs.org_gmx-users mailing list