A molecular system can look ready for simulation and still be set up for trouble. One common source of problems is the periodic box: make it too small, and the system may interact with its own periodic images. Add ions without solvent, and the preparation cannot proceed as intended. These choices are easy to overlook because the structure itself may appear perfectly reasonable in the viewport.
This guide focuses on making those preparation decisions deliberately in SAMSON’s GROMACS Wizard: choosing a box, adding solvent, and deciding whether to neutralize or add salt. The aim is not to prescribe one setup for every molecule, but to help you understand the consequences of the available options.
Start with the system you actually want to prepare
Before defining a box, set the molecular system in the Document source. If the document contains several structural models, select the intended model or models in the Document view. If you leave the selection empty, GROMACS Wizard may ask whether to include all structural models.
This matters especially for batch projects. A box must include every structure selected for preparation. When working with multiple conformations, decide whether you want a consistent box size across the batch or a box fitted separately to each conformation.
Choose box settings based on your workflow
GROMACS Wizard supports cubic, orthorhombic, triclinic, rhombic dodecahedron, and truncated octahedron unit cells. For a straightforward setup, you can choose a unit cell and click Compute fitted box. The fitted box is based on the selected system’s dimensions.
There are two useful ways to set the box:
- Solute-box distance: Set the desired distance between the solute and the box. The tutorial recommends at least 1 nm to help satisfy the minimum image convention. In a batch project, this means each conformation or trajectory frame can have a different box size.
- Box lengths: Set the box dimensions yourself. In a batch project, the initial size is based on all conformations or the full trajectory path, which can be useful when the same box size is needed throughout. Make sure the box is large enough to leave adequate space around the system.

Why leave space? With periodic boundary conditions, the simulation repeats the box in every direction. The minimum image convention helps prevent a molecule from interacting with its own periodic image. The tutorial recommends at least 1.0 nm between the solute and box edges, corresponding to at least 2.0 nm between periodic images. Treat this as a practical recommendation, not a substitute for checking the assumptions of your force field and cutoff scheme.

Solvent and ions are connected choices
If you want an explicit-solvent simulation, choose a water model available for the selected force field and enable Add solvent. In the tutorial example, the selected model is SPC/E. Choosing none as the water model prevents adding solvent and ions.
Ions are added by replacing water molecules, so solvent must be enabled if you want to add ions. To neutralize the system, select Neutralize system. GROMACS determines whether positive or negative ions are needed from the total system charge. You can use the Update button to calculate the charge before running preparation; for example, a total charge of +8 requires eight negative ions for neutralization.
Neutralization and salt concentration are not the same setting. Neutralization balances the system’s net charge. If you also want additional salt, enable Add additional ions and choose either a number of ions or a salt concentration. A concentration of 0.15 M NaCl is given in the tutorial as a popular choice for representing physiological conditions. When specifying a concentration, existing ions are not counted toward that amount; the specified salt is added on top of neutralizing counterions.
A quick pre-run check
- Confirm that the intended structure or batch is selected.
- Check that the box includes every selected structure and leaves suitable space around the solute.
- For a batch, choose box settings with the desired consistency—or per-conformation sizing—in mind.
- If adding ions, confirm that solvent is enabled.
- Decide separately whether the system needs neutralization, additional salt, or both.
- Review the output and any warnings after clicking Prepare.
Thinking through these choices before preparation can prevent avoidable setup confusion later, when the project moves on to energy minimization and equilibration.
For the complete workflow and additional details, see the GROMACS Wizard preparation tutorial.
Note: SAMSON and all SAMSON Extensions are free for non-commercial use. Get SAMSON at samson-connect.net.
