For molecular modelers, ensuring accurate simulations is crucial when setting up systems with periodic boundary conditions. One often overlooked—but essential—concept to keep in mind is the minimum image convention. Here’s why understanding and applying it can save your simulations from troublesome inaccuracies.
The Importance of the Minimum Image Convention
When using periodic boundary conditions, particles in your simulation interact with themselves and their surroundings. However, to ensure accurate calculations for short-range interactions, GROMACS employs the minimum image convention: a rule stating that each particle only interacts with the closest periodic image of every other particle. This approach is indispensable for maintaining reliable forces within the simulation box.
Here’s the catch: if your solute is too close to the boundaries of the simulation box, it may inadvertently interact with its own periodic image. This not only compromises the physics of your system but leads to misleading results.
How to Prevent Errors
To avoid issues caused by self-interactions, leave sufficient space between the solute and the edges of your box. As a general guideline, ensure at least 1.0 nm between the solute and the box boundaries. This guarantees a minimum distance of 2.0 nm between periodic images of the solute, eliminating unwanted interactions and maintaining the integrity of the system.
For example, when you use a spherical solute, selecting unit cell shapes like the rhombic dodecahedron or truncated octahedron can be particularly efficient. These shapes approximate spheres better than cubes and reduce unnecessary solvent molecules while maintaining the minimum image convention. Here’s how a rhombic dodecahedron looks:

Setting Up Your Box in SAMSON’s GROMACS Wizard
With SAMSON’s GROMACS Wizard, you can specify the box dimensions in two ways depending on your needs:
- Box lengths: Manually define precise box dimensions. This allows you to tightly fit the system into the box and adjust the size later to respect the minimum image convention.
- Solute-box distance: Focus on the distance between the solute and the box. This is great for ensuring enough space is provided between periodic images, especially for systems requiring flexible boundaries.
Both options help you achieve accurate setups for periodic boundary conditions, ensuring forces calculated during your simulation are physically meaningful.

Don’t underestimate the significance of choosing the right unit cell and setting appropriate distances—it’s a small adjustment that prevents significant problems in the long run.
Learn More
To dive deeper into periodic boundary conditions, the minimum image convention, and box preparation in GROMACS Wizard, visit the official documentation page.
Note: SAMSON and all SAMSON Extensions are free for non-commercial use. You can download SAMSON at samson-connect.net.
