GMX-PRINCIPAL(1)

✨ GMX-PRINCIPAL(1) β€” the GROMACS girlies' guide ✨

okay so bestie, welcome to gmx-principal from the GROMACS manual πŸ’– buckle up, this one's short and sweet and honestly? lowkey iconic.


🌸 NAME 🌸

gmx-principal β€” calculates the principal axes of inertia for a group of atoms. that's it, that's the whole job πŸ’…


πŸ¦‹ SYNOPSIS πŸ¦‹

gmx principal [-f [<.xtc/.trr/...>]] [-s [<.tpr/.gro/...>]]
             [-n [<.ndx>]] [-a1 [<.xvg>]] [-a2 [<.xvg>]]
             [-a3 [<.xvg>]] [-om [<.xvg>]] [-b <time>] [-e <time>]
             [-dt <time>] [-tu <enum>] [-[no]w] [-xvg <enum>]
             [-[no]foo]

πŸŽ€ DESCRIPTION πŸŽ€

so gmx principal does one thing and does it gorgeously: it calculates the three principal axes of inertia for a group of atoms. main character energy fr fr 🫢

NOTE ⚠️ and this part matters, bestie: old versions of GROMACS wrote the output data in a strange transposed way. as of GROMACS 5.0, the output file paxis1.dat contains the x/y/z components of the first (major) principal axis for each frame, and similarly for the middle and minor axes in paxis2.dat and paxis3.dat. so if you're out here reading ancient output files and nothing makes sense... that's why. not you, it's the transposed data 😭

πŸ’– OPTIONS πŸ’–

✨ Options to specify input files ✨

  • -f [<.xtc/.trr/...>] (default traj.xtc) β€” the trajectory, bestie. accepts xtc trr cpt gro g96 pdb tng h5md πŸ“
  • -s [<.tpr/.gro/...>] (default topol.tpr) β€” structure + mass(db). accepts tpr gro g96 pdb brk ent 🧚
  • -n [<.ndx>] (default index.ndx) β€” index file. Optional, so no pressure πŸ’œ

✨ Options to specify output files ✨

  • -a1 [<.xvg>] (default paxis1.xvg) β€” xvgr/xmgr file 🌸
  • -a2 [<.xvg>] (default paxis2.xvg) β€” xvgr/xmgr file 🌸
  • -a3 [<.xvg>] (default paxis3.xvg) β€” xvgr/xmgr file 🌸
  • -om [<.xvg>] (default moi.xvg) β€” xvgr/xmgr file 🌸

✨ Other options ✨

  • -b <time> (default 0) β€” time of the first frame to read from the trajectory (default unit is ps) ⏰
  • -e <time> (default 0) β€” time of the 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) ⏰
  • -tu <enum> (default ps) β€” unit for time values: fs, ps, ns, us, ms, s πŸ•°οΈ
  • -[no]w (default no) β€” view output .xvg, .xpm, .eps and .pdb files πŸ‘€
  • -xvg <enum> (default xmgrace) β€” xvg plot formatting: xmgrace, xmgr, none πŸ“Š
  • -[no]foo (default no) β€” dummy option to avoid an empty array πŸ’€ yeah. it's literally just there so the array isn't empty. no notes. slay, i guess πŸ‘‘

🌈 SEE ALSO 🌈

more info about GROMACS lives at <http://www.gromacs.org/> β€” go peek, iykyk πŸ¦‹


2026, GROMACS development team πŸ’œ


and that's the whole page, bestie!! πŸŽ€ this was GROMACS 2026.4, dated Oct 02, 2026, and remember: same manual, same facts, just with way more sparkle ✨ mwah πŸ’…πŸ«Ά

πŸ“¦ where this page comes from