GMX-SOLVATE(1)
β¨ NAME β¨
Hiii bestie, welcome to GMX-SOLVATE(1) π β the GROMACS manual page for gmx-solvate, and its whole entire job is: Solvate a system. That's it, that's the assignment. Hydration era. π§π«Ά
π SYNOPSIS π
gmx solvate [-cp [<.gro/.g96/...>]] [-cs [<.gro/.g96/...>]]
[-p [<.top>]] [-o [<.gro/.g96/...>]] [-box <vector>]
[-radius <real>] [-scale <real>] [-shell <real>]
[-maxsol <int>] [-[no]vel]
πΈ DESCRIPTION πΈ
Okay so gmx solvate can do one of 2 things, and honestly both are iconic:
- Generate a box of solvent. Specify
-csand-box. Or specify-csand-cpwith a structure file with a box, but without atoms. - Solvate a solute configuration, e.g. a protein, in a bath of solvent molecules. Specify
-cp(solute) and-cs(solvent). The box specified in the solute coordinate file (-cp) is used, unless-boxis set. If you want the solute to be centered in the box, the programgmx editconfhas sophisticated options to change the box dimensions and center the solute. Solvent molecules are removed from the box where the distance between any atom of the solute molecule(s) and any atom of the solvent molecule is less than the sum of the scaled van der Waals radii of both atoms. A database (vdwradii.dat) of van der Waals radii is read by the program, and the resulting radii scaled by-scale. If radii are not found in the database, those atoms are assigned the (pre-scaled) distance-radius. Note that the usefulness of those radii depends on the atom names, and thus varies widely with force field. π
The default solvent is Simple Point Charge water (SPC), with coordinates from $GMXLIB/spc216.gro. These coordinates can also be used for other 3-site water models, since a short equibilibration will remove the small differences between the models. Other solvents are also supported, as well as mixed solvents. The only restriction to solvent types is that a solvent molecule consists of exactly one residue. The residue information in the coordinate files is used, and should therefore be more or less consistent. In practice this means that two subsequent solvent molecules in the solvent coordinate file should have different residue number. The box of solute is built by stacking the coordinates read from the coordinate file. This means that these coordinates should be equlibrated in periodic boundary conditions to ensure a good alignment of molecules on the stacking interfaces. The -maxsol option simply adds only the first -maxsol solvent molecules and leaves out the rest that would have fitted into the box. This can create a void that can cause problems later. Choose your volume wisely, bestie. π
Setting -shell larger than zero will place a layer of water of the specified thickness (nm) around the solute. Hint: it is a good idea to put the protein in the center of a box first (using gmx editconf). π
Finally, gmx solvate will optionally remove lines from your topology file in which a number of solvent molecules is already added, and adds a line with the total number of solvent molecules in your coordinate file. Cleanup queen behavior, no cap. π
π OPTIONS π
Options to specify input files:
-cp [<.gro/.g96/...>]β (protein.gro) (Optional) β Structure file:grog96pdbbrkentesptpr-cs [<.gro/.g96/...>]β (spc216.gro) (Library) β Structure file:grog96pdbbrkentesptpr
Options to specify input/output files:
-p [<.top>]β (topol.top) (Optional) β Topology file
Options to specify output files:
-o [<.gro/.g96/...>]β (out.gro) β Structure file:grog96pdbbrkentesp
Other options:
-box <vector>β (0 0 0) β Box size (in nm) π¦-radius <real>β (0.105) β Default van der Waals distance-scale <real>β (0.57) β Scale factor to multiply Van der Waals radii from the database inshare/gromacs/top/vdwradii.dat. The default value of0.57yields density close to1000 g/lfor proteins in water. β¨-shell <real>β (0) β Thickness of optional water layer around solute π«§-maxsol <int>β (0) β Maximum number of solvent molecules to add if they fit in the box. If zero (default) this is ignored-[no]velβ (no) β Keep velocities from input solute and solvent
π KNOWN ISSUES π
- Molecules must be whole in the initial configurations. Like, whole whole. No crumbs, no fragments, no half-eaten molecules. π
π SEE ALSO π
More information about GROMACS is available at http://www.gromacs.org/.
π¦ COPYRIGHT π¦
2026, GROMACS development team
And that's the whole page, bestie β this was GMX-SOLVATE(1) from GROMACS 2026.4, dated Oct 02, 2026. Go hydrate something. πβ¨π
π¦ 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