GMX-GENION(1)
β¨ GMX-GENION β¨
okay bestie, welcome to gmx-genion π this is the GROMACS one, and she is the girl for sprinkling ions into your simulation box like glitter on a craft project β¨
πΈ NAME πΈ
gmx-genion β generate monoatomic ions on energetically favorable positions π§
π SYNOPSIS π
gmx genion [-s [<.tpr>]] [-n [<.ndx>]] [-p [<.top>]]
[-o [<.gro/.g96/...>]] [-np <int>] [-pname <string>]
[-pq <int>] [-nn <int>] [-nname <string>] [-nq <int>]
[-rmin <real>] [-seed <int>] [-conc <real>] [-[no]neutral]
π DESCRIPTION π
so what she does is: gmx genion randomly replaces solvent molecules with monoatomic ions π₯ random, but make it science.
the group of solvent molecules you pick has to be continuous and every single molecule in it has to have the same number of atoms β no chaotic mixed bags, bestie, she can't work with that π
then you gotta add the ion molecules to your topology file yourself, OR let the -p option do it for you automatically π«Ά
the naming lore, pay attention π
the ion molecule type, residue and atom names in all force fields are the capitalized element names without sign. this molecule name is what you hand over with -pname or -nname, and then the [molecules] section of your topology gets updated accordingly β either by hand or with -p.
β οΈ do NOT use an atom name instead, bestie. that is not the vibe. π
ions that can have multiple charge states get the multiplicity added, without sign, for the uncommon states only β¨
and for the bigger ions β like sulfate, for example β we recommend using gmx insert-molecules instead π
β¨ OPTIONS β¨
π¦ Options to specify input files π¦
-s [<.tpr>](topol.tpr) β portable xdr run input file, aka the whole blueprint of your run π-n [<.ndx>](index.ndx) (Optional) β index file, if you have one π
π Options to specify input/output files π
-p [<.top>](topol.top) (Optional) β topology file, she reads it and edits it, main character energy π
π Options to specify output files π
-o [<.gro/.g96/...>](out.gro) β structure file:grog96pdbbrkentespπΈ
π Other options π
-np <int>(0) β number of positive ions π₯-pname <string>(NA) β name of the positive ion β¨-pq <int>(1) β charge of the positive ion β-nn <int>(0) β number of negative ions π-nname <string>(CL) β name of the negative ion π-nq <int>(-1) β charge of the negative ion π§-rmin <real>(0.6) β minimum distance between ions and non-solvent π-seed <int>(0) β seed for random number generator (0means generate) π²-conc <real>(0) β specify salt concentration (mol/liter). this will add sufficient ions to reach up to the specified concentration as computed from the volume of the cell in the input.tprfile. overrides the-npand-nnoptions π-[no]neutral(no) β this option will add enough ions to neutralize the system. these ions are added on top of those specified with-np/-nnor-concβοΈ
π KNOWN ISSUES π
- if you specify a salt concentration, existing ions are not taken into account. in effect, you therefore specify the amount of salt to be added π
π 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 GROMACS 2026.4, dated Oct 02, 2026 β go ionize something iconic π β¨
π¦ 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