GROMACS Command Generator
Choose your settings, then get every command and .mdp file in running order. Nothing is executed or sent anywhere; all text is generated in your browser.
1. Topology
Input structure file
Force field
amber99sb-ildn
amber99sb
charmm27
oplsaa
gromos54a7
Water model
tip3p
spce
tip4p
tip5p
spc
The force field must be installed in your GROMACS. Check that the force field and water model are a recommended pair for your work.
2. Box
Box type
cubic
dodecahedron
octahedron
Distance from solute to box edge (nm)
3. Ionization
Cation
Na+
K+
Mg2+
Salt concentration (mol/L)
The anion is Cl-. The system is also neutralized. Ion names follow the ions.itp of your force field; check them if genion fails.
4. Minimization and equilibration
Temperature (K)
Cutoff radius (nm)
EM force tolerance (kJ/mol/nm)
1000
500
100
EM maximum steps
NVT length (ps)
50
100
200
500
NPT length (ps)
50
100
200
500
NPT pressure coupling
C-rescale (GROMACS 2021 or later)
Berendsen (GROMACS before 2021)
Parrinello-Rahman (GROMACS before 2021)
Position restraints on the protein in NVT and NPT (-DPOSRES, with -r)
Add -maxwarn 1 to grompp (ignores one warning; use only if you understand it)
The temperature is applied to every stage (ref_t and gen_temp). The cutoff sets rcoulomb, rvdw and rlist; the recommended value depends on your force field. For equilibration, Berendsen is the usual choice on older GROMACS.
5. Production MD
Length (ns)
Save a frame every (ps)
Pressure coupling
C-rescale (GROMACS 2021 or later)
Parrinello-Rahman (GROMACS before 2021)
Berendsen (GROMACS before 2021)
Initial velocities
Continue from NPT (use npt.cpt)
Generate new velocities
Random seed (-1 = random)
Berendsen does not produce a correct ensemble, so it is better not to use it for production runs.
Advanced .mdp settings
Temperature coupling groups
Protein / Non-Protein
System (one group)
EM integrator
steep
cg
Time step dt (ps)
tau_t (ps)
tau_p (ps)
Compressibility (bar^-1)
nstlist
With constraints = h-bonds, dt = 0.002 is standard. A larger dt can make the simulation unstable. "Protein / Non-Protein" requires a protein in your system.
6. mdrun options
CPU
CPU threads
GPU
Runs everything on the CPU (-nb cpu), with the number of threads chosen by GROMACS.
Show progress (-v)
Stop safely after hours (-maxh, production MD only)
Save a checkpoint every minutes (-cpt, production MD only)
The hardware options and -v are added to every mdrun command. -maxh and -cpt are added to production MD only, so equilibration is never cut short. A resume command is added at the end.
Generate
Download commands.txt
Copy all commands
Targets the gmx command style (GROMACS 2018 and later). Review all generated commands and parameters before running them. Generated files are starting points, not a substitute for checking them against your system. When you press Generate, your selected options (for example the input file name, temperature and run length) are sent to this tool's server to build the text. No structure files are uploaded. This is an independent tool and is not affiliated with or endorsed by the GROMACS project.