GMX-VELACC(1)

๐Ÿ’– GMX-VELACC(1) โ€” the GROMACS girlie's guide ๐Ÿ’–

okay so bestie, this is the manual page for gmx-velacc, one of the many little gems that live inside GROMACS ๐Ÿ’… it computes velocity autocorrelation functions, and honestly? it's giving physics main character energy. let's get into it ๐Ÿฆ‹


โœจ NAME โœจ

gmx-velacc โ€” no cap, this one just calculates velocity autocorrelation functions ๐ŸŽ€


๐ŸŒธ SYNOPSIS ๐ŸŒธ

gmx velacc [-f [<.trr/.cpt/...>]] [-s [<.tpr/.gro/...>]] [-n [<.ndx>]]
           [-o [<.xvg>]] [-os [<.xvg>]] [-b <time>] [-e <time>]
           [-dt <time>] [-[no]w] [-xvg <enum>] [-[no]m] [-[no]recip]
           [-[no]mol] [-acflen <int>] [-[no]normalize] [-P <enum>]
           [-fitfn <enum>] [-beginfit <real>] [-endfit <real>]

like look at her. so many flags. so many possibilities ๐Ÿซถ


๐Ÿ’œ DESCRIPTION ๐Ÿ’œ

So gmx velacc computes the velocity autocorrelation function. Periodt. ๐Ÿ”ฅ

And when you hit it with the -m option? It calculates the momentum autocorrelation function instead. Two moods, one tool ๐Ÿ’…

Then there's -mol โ€” with this one, you get the velocity autocorrelation function of molecules. Lowkey important detail: in that case your index group should consist of molecule numbers instead of atom numbers. Don't mix them up bestie, iykyk ๐Ÿ™ˆ

Oh and here's the fun part โ€” using -os you can also extract the estimated (vibrational) power spectrum, which is literally the Fourier transform of the velocity autocorrelation function. Iconic. But fr fr, be sure that:

  • your trajectory contains frames with velocity information (i.e. nstvout was set in your original .mdp file) ๐Ÿ‘‘
  • the time interval between data collection points is much shorter than the time scale of the autocorrelation โญ

that's not optional, that's the vibe check โœ…


โœจ OPTIONS โœจ

๐ŸŽ€ Options to specify input files

  • -f [<.trr/.cpt/...>] (traj.trr) โ€” the Full precision trajectory, she's a whole menu: trr cpt tng h5md ๐ŸŒˆ
  • -s [<.tpr/.gro/...>] (topol.tpr) (Optional) โ€” Structure+mass(db), take your pick: tpr gro g96 pdb brk ent ๐Ÿ’–
  • -n [<.ndx>] (index.ndx) (Optional) โ€” the Index file, your little list of who's who ๐Ÿ“‹

๐Ÿฆ‹ Options to specify output files

  • -o [<.xvg>] (vac.xvg) โ€” an xvgr/xmgr file, this is the moment ๐Ÿ’…
  • -os [<.xvg>] (spectrum.xvg) (Optional) โ€” also an xvgr/xmgr file, in case you want the spectrum too ๐Ÿ‘‘

๐ŸŒธ Other options

  • -b <time> (0) โ€” Time of first frame to read from trajectory (default unit is ps) โฐ
  • -e <time> (0) โ€” Time of last frame to read from trajectory (default unit is ps) โฐ
  • -dt <time> (0) โ€” Only use a frame when t MOD dt = first time (default unit is ps) ๐Ÿงฎ
  • -[no]w (no) โ€” View output .xvg, .xpm, .eps and .pdb files ๐Ÿ‘€
  • -xvg <enum> (xmgrace) โ€” xvg plot formatting, pick your fighter: xmgrace, xmgr, none ๐ŸŽจ
  • -[no]m (no) โ€” Calculate the momentum autocorrelation function ๐Ÿƒ
  • -[no]recip (yes) โ€” Use cm^-1 on the X-axis instead of 1/ps for spectra ๐Ÿ”
  • -[no]mol (no) โ€” Calculate the velocity acf of molecules ๐Ÿงช
  • -acflen <int> (-1) โ€” Length of the ACF; default is half the number of frames ๐Ÿ“
  • -[no]normalize (yes) โ€” Normalize the ACF โœจ
  • -P <enum> (0) โ€” Order of Legendre polynomial for the ACF (and 0 indicates none): 0, 1, 2, 3 ๐ŸŒ€
  • -fitfn <enum> (none) โ€” Fit function: none, exp, aexp, exp_exp, exp5, exp7, exp9 ๐Ÿ“‰
  • -beginfit <real> (0) โ€” Time where to begin the exponential fit of the correlation function ๐Ÿ
  • -endfit <real> (-1) โ€” Time where to end the exponential fit of the correlation function; -1 means until the end ๐Ÿ”š

๐Ÿ‘‘ SEE ALSO ๐Ÿ‘‘

More info about GROMACS is available at http://www.gromacs.org/ โ€” go read it, bestie, it's free โœจ


2026, GROMACS development team


okay that's the whole page, no notes ๐Ÿ’… if you're still confused, that's a you problem (affectionate) โ€” go run it and see ๐Ÿซถ

and that's a wrap on GMX-VELACC(1) from the GROMACS manual, version 2026.4, dated Oct 02, 2026 ๐ŸŽ€ mwah, slay, periodt ๐Ÿ’–โœจ

๐Ÿ“ฆ where this page comes from