GROMACS version: 2021.3
GROMACS modification: No
I have a small system with 100 identical UA molecules, and I’m trying to get the RDFs, with the groups made up of selections of atoms from these molecules. So, for example, if one molecule consists of 20 atoms, I’d like to get the RDF between atoms 1-4 and 8-10.
I’m using this gmx command
gmx rdf -f traj.xtc -s min.gro -rmax 3 -bin 0.02 -o rdf.xvg -b 0 -e 50000 -ref A -sel B -selrpos dyn_res_cog -seltype dyn_res_cog -n index.ndx
The index.ndx file (which I wrote) reads something like this:
[ A ]
1 2 3 4
21 22 23 24
41 42 43 44
and so on
[ B ]
8 9 10
28 29 30
48 49 50
…
Given the above, I’m getting really odd and unexpected results, such as high RDFs at 0 nm (which is obviously incorrect).
My questions are thus:
- am I using the correct gmx syntax?
- is the index.ndx file written correctly? does one line correspond to one atom grouping? or does it read the grouping as being 1 2 3 4 21 22 23 24… i.e. as one big group?
- What if I have multiple atom groupings on the same molecule which I want to classify as being the same type of group e.g. atoms 11-13 and 18-20 are both of type [ C ]?
Thanks,
Robert