GMX-CURRENT(1)
π GMX-CURRENT(1) π
ok so this is a page from the GROMACS manual, bestie β it's gmx-current, and it lives in section 1. Let's get into it β¨
πΈ NAME πΈ
gmx-current β the tool that calculates dielectric constants and the current autocorrelation function. no cap.
π¦ SYNOPSIS π¦
gmx current [-s [<.tpr/.gro/...>]] [-n [<.ndx>]] [-f [<.xtc/.trr/...>]]
[-o [<.xvg>]] [-caf [<.xvg>]] [-dsp [<.xvg>]]
[-md [<.xvg>]] [-mj [<.xvg>]] [-mc [<.xvg>]] [-b <time>]
[-e <time>] [-dt <time>] [-[no]w] [-xvg <enum>]
[-sh <int>] [-[no]nojump] [-eps <real>] [-bfit <real>]
[-efit <real>] [-bvit <real>] [-evit <real>]
[-temp <real>]
β¨ DESCRIPTION β¨
okay so gmx current is THE girl for computing the current autocorrelation function, the correlation of the rotational and translational dipole moment of your system, and the static dielectric constant that falls out of it π«Ά To get a reasonable result, the index group has to be neutral β that part is not optional, it's giving non-negotiable π
And likeβ¦ the routine can also pull the static conductivity out of the current autocorrelation function, if velocities are given. And bonus: an Einstein-Helfand fit can be used to get the static conductivity too π₯
The -caf flag is for the output of the current autocorrelation function, and -mc writes the correlation of the rotational and translational part of the dipole moment into the corresponding file. But heads up bestie β that -mc option is only available for trajectories containing velocities π
Options -sh and -tr are the ones responsible for the averaging and integration of the autocorrelation functions. Since the averaging proceeds by shifting the starting point through the trajectory, you can modify that shift with -sh so you actually get the choice of uncorrelated starting points π
And towards the end, the statistical inaccuracy grows β so integrating the correlation function only yields reliable values until a certain point, which depends on the number of frames. The option -tr is what controls the region of the integral that gets taken into account for calculating the static dielectric constant.
Option -temp sets the temperature required for the computation of the static dielectric constant π‘οΈ
Option -eps controls the dielectric constant of the surrounding medium β for simulations using a Reaction Field or dipole corrections of the Ewald summation. (-eps=0 corresponds to tin-foil boundary conditions β¨).
-[no]nojump unfolds the coordinates to allow free diffusion. This is required to get a continuous translational dipole moment, which is required for the Einstein-Helfand fit π§ The results from the fit let you determine the dielectric constant for a system of charged molecules. But lowkey? It's also possible to extract the dielectric constant from the fluctuations of the total dipole moment in folded coordinates. However β that option has to be used with care, since only very short time spans fulfill the approximation that the density of the molecules is approximately constant and the averages are already converged π To be on the safe side, the dielectric constant should be calculated with the help of the Einstein-Helfand method for the translational part of the dielectric constant. periodt.
π OPTIONS π
πΎ Options to specify input files:
-s [<.tpr/.gro/...>](topol.tpr) β Structure+mass(db):tpr gro g96 pdb brk ent-n [<.ndx>](index.ndx) (Optional) β Index file-f [<.xtc/.trr/...>](traj.xtc) β Trajectory:xtc trr cpt gro g96 pdb tng h5md
π Options to specify output files:
-o [<.xvg>](current.xvg) β xvgr/xmgr file-caf [<.xvg>](caf.xvg) (Optional) β xvgr/xmgr file-dsp [<.xvg>](dsp.xvg) β xvgr/xmgr file-md [<.xvg>](md.xvg) β xvgr/xmgr file-mj [<.xvg>](mj.xvg) β xvgr/xmgr file-mc [<.xvg>](mc.xvg) (Optional) β xvgr/xmgr file
π§ Other options:
-b <time>(0) β Time of first frame to read from trajectory (default unit ps)-e <time>(0) β Time of last frame to read from trajectory (default unit ps)-dt <time>(0) β Only use frame whent MOD dt = first time(default unit ps)-[no]w(no) β View output.xvg,.xpm,.epsand.pdbfiles-xvg <enum>(xmgrace) β xvg plot formatting:xmgrace,xmgr,none-sh <int>(1000) β Shift of the frames for averaging the correlation functions and the mean-square displacement.-[no]nojump(yes) β Removes jumps of atoms across the box.-eps <real>(0) β Dielectric constant of the surrounding medium. The value zero corresponds to infinity (tin-foil boundary conditions).-bfit <real>(100) β Begin of the fit of the straight line to the MSD of the translational fraction of the dipole moment.-efit <real>(400) β End of the fit of the straight line to the MSD of the translational fraction of the dipole moment.-bvit <real>(0.5) β Begin of the fit of the current autocorrelation function toa*t^b.-evit <real>(5) β End of the fit of the current autocorrelation function toa*t^b.-temp <real>(300) β Temperature for calculating epsilon.
π SEE ALSO π
More info about GROMACS is available at http://www.gromacs.org/ (the original page breaks that URL across lines, but you get it bestie π«Ά).
Β©οΈ COPYRIGHT Β©οΈ
2026, GROMACS development team
and that's the whole vibe check, bestie π this was GMX-CURRENT(1) from GROMACS version 2026.4, dated Oct 02, 2026 β go slay your dielectric constants, ily πβ¨π¦
π¦ where this page comes from
- nixpkgs unstable: gromacs 2026.4
- ubuntu stonking: gromacs-data 2026.4-1ubuntu1
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms