GMX-SORIENT(1)

πŸ’– gmx-sorient πŸ’–

okay bestie, welcome to the GROMACS manual page for gmx-sorient β€” yes that's the whole name, we're analyzing solvent orientation around solutes and we ARE going to slay it ✨


✨ NAME ✨

gmx-sorient β€” analyze solvent orientation around solutes 🌸


πŸŽ€ SYNOPSIS πŸŽ€

gmx sorient [-f [<.xtc/.trr/...>]] [-s [<.tpr/.gro/...>]] [-n [<.ndx>]]
            [-o [<.xvg>]] [-no [<.xvg>]] [-ro [<.xvg>]]
            [-co [<.xvg>]] [-rc [<.xvg>]] [-b <time>] [-e <time>]
            [-dt <time>] [-[no]w] [-xvg <enum>] [-[no]com] [-[no]v23]
            [-rmin <real>] [-rmax <real>] [-cbin <real>]
            [-rbin <real>] [-[no]pbc]

πŸ’… DESCRIPTION πŸ’…

so, gmx sorient looks at how the solvent molecules are oriented around your solutes. the way it does this: it takes the vector from one or more reference positions to the first atom of each solvent molecule, and then it calculates two angles off of that. two. angles. periodt.

  • theta_1: the angle with the vector from the first atom of the solvent molecule to the midpoint between atoms 2 and 3 πŸ¦‹
  • theta_2: the angle with the normal of the solvent plane β€” and that plane is defined by the same three atoms β€” or, when the option -v23 is set, the angle with the vector between atoms 2 and 3 🌈

so the reference can be either a set of atoms, or the center of mass of a set of atoms, your choice bestie. and the group of solvent atoms should consist of 3 atoms per solvent molecule (three, not two, not four, three πŸ’€). also!! only the solvent molecules sitting between -rmin and -rmax are considered for -o and -no, every single frame. no exceptions.

here's the breakdown of what each output actually gives, because i know you want the details:

  • -o: distribution of cos(theta_1) for rmin<=r<=rmax.
  • -no: distribution of cos(theta_2) for rmin<=r<=rmax.
  • -ro: <cos(theta_1)> and <3cos(^2theta_2)-1> as a function of the distance.
  • -co: the sum over all solvent molecules within distance r of cos(theta_1) and 3cos(^2(theta_2)-1) as a function of r.
  • -rc: the distribution of the solvent molecules as a function of r

🌸 OPTIONS 🌸

πŸ’– Options to specify input files πŸ’–

  • -f [<.xtc/.trr/...>] (default traj.xtc) β€” the trajectory, obviously πŸ’« and the formats it'll eat are: xtc trr cpt gro g96 pdb tng h5md
  • -s [<.tpr/.gro/...>] (default topol.tpr) β€” structure+mass(db), the whole vibe: tpr gro g96 pdb brk ent
  • -n [<.ndx>] (default index.ndx) (Optional) β€” index file, only if you want it boo πŸŽ€

πŸ¦‹ Options to specify output files πŸ¦‹

  • -o [<.xvg>] (default sori.xvg) β€” xvgr/xmgr file ✨
  • -no [<.xvg>] (default snor.xvg) β€” xvgr/xmgr file ✨
  • -ro [<.xvg>] (default sord.xvg) β€” xvgr/xmgr file ✨
  • -co [<.xvg>] (default scum.xvg) β€” xvgr/xmgr file ✨
  • -rc [<.xvg>] (default scount.xvg) β€” xvgr/xmgr file ✨

πŸ‘‘ Other options πŸ‘‘

  • -b <time> (default 0) β€” time of first frame to read from the trajectory (default unit is ps) ⏰
  • -e <time> (default 0) β€” time of last frame to read from the trajectory (default unit is ps) ⏰
  • -dt <time> (default 0) β€” only use a frame when t MOD dt = first time (default unit is ps) ⏰
  • -[no]w (default no) β€” view the output .xvg, .xpm, .eps and .pdb files πŸ‘€
  • -xvg <enum> (default xmgrace) β€” xvg plot formatting, and your options are: xmgrace, xmgr, none 🎨
  • -[no]com (default no) β€” use the center of mass as the reference position 🫢
  • -[no]v23 (default no) β€” use the vector between atoms 2 and 3 🌈
  • -rmin <real> (default 0) β€” minimum distance (in nm) πŸ“
  • -rmax <real> (default 0.5) β€” maximum distance (in nm) πŸ“
  • -cbin <real> (default 0.02) β€” binwidth for the cosine πŸ“Š
  • -rbin <real> (default 0.02) β€” binwidth for r (in nm) πŸ“Š
  • -[no]pbc (default no) β€” check PBC for the center of mass calculation. this one's only necessary when your reference group consists of several molecules, so don't stress if it's just the one πŸ’œ

πŸ”₯ SEE ALSO πŸ”₯


2026, GROMACS development team


okay that's the whole thing, you're officially a solvent-orientation girlie now 🧚 no cap. this was GROMACS 2026.4, dated Oct 02, 2026 β€” love you, go analyze something iconic πŸ’–βœ¨πŸ‘‘

πŸ“¦ where this page comes from