GROMACS version:
GROMACS modification: Yes/No
Here post your question
I cannot to calcule SDF of Na in aqueous solution. As result have a sphere big, I think that must set Na as a reference molecule to fix this issue.
Would anybody know-how set the reference molecule with trjorder command?
The reference molecule and the molecules to be reordered are defined in the index file. With the command -n the index file will be read by gmx trjorder. with the option -da you can control how to define the position of the reference
see more https://manual.gromacs.org/2021/onlinehelp/gmx-editconf.html
if one wants to order the water molecules (each water molecule is 3 atoms) around an ion, one needs an index file with a group with the ion (e.i Na ion) and a separate group with water molecules.
Then the command will be
gmx trjorder -f traj.xtc -s topol.tpr -n index.ndx -o order.xtc -na 3 -da 1
If one want to order according to the center of mass of the water molecules
gmx trjorder -f traj.xtc -s topol.tpr -n index.ndx -o order.xtc -na 3 -da 0
If the group to order is composed by molecules made by more than 3 atoms (e.i methane) than ‘-da 5’
'-com ’ uses the distance to the center of mass of the reference group