When setting up molecular dynamics simulations, one challenge that molecular modelers often face is choosing the correct shape for their simulation box—or unit cell. The shape of the unit cell does more than define the boundaries of the simulation; it directly influences the system’s efficiency and accuracy. This post guides you through the available unit cell shapes in the GROMACS Wizard on SAMSON and offers practical advice on making optimized choices.
Why Unit Cell Shape Matters
In molecular dynamics, periodic boundary conditions (PBC) are typically used to ensure that molecules simulated in a box mimic behavior in an infinite space. Choosing the wrong unit cell shape, however, can unnecessarily increase computational cost or distort the natural behavior of your solute. Optimizing the unit cell shape ensures that your solute behaves naturally while minimizing the computational effort required to simulate the solvent and interactions.
Available Unit Cell Shapes in GROMACS Wizard
The GROMACS Wizard offers a range of commonly used space-filling unit cells. Here are the main shapes you can choose from:
| Unit cell shape | Representation |
|---|---|
| Cubic | ![]() |
| Orthorhombic | ![]() |
| Triclinic | ![]() |
| Rhombic dodecahedron | ![]() |
| Truncated octahedron | ![]() |
Key Shapes for Spherical Solutes
If your solute has a spherical geometry—such as a protein or a flexible macromolecule in solution—you should seriously consider space-saving shapes like the rhombic dodecahedron or the truncated octahedron:
- Rhombic dodecahedron: This is the smallest unit cell that can still cover all periodic images without gaps. It requires only 71% of the volume of a cubic box with the same periodic image distance, reducing computational costs significantly.
- Truncated octahedron: This shape is another great fit for spherical solutes, striking a balance between volume savings and geometric simplicity.
By choosing these shapes, you not only reduce the number of solvent molecules needed to fill your box but also save up to 29% of CPU time!
Best Practices When Setting Up a Box
Choosing the right unit cell shape is only part of the process. You must also ensure the box satisfies the minimum image convention. This means leaving a sufficient distance—typically at least 1.0 nm—between the solute and the box boundary to avoid interactions with periodic images of itself. The GROMACS Wizard gives you two options for fitting your box:
- Box lengths: Specify exact box dimensions and adjust as needed.
- Solute-box distance: Define the minimum distance between the solute and box boundaries (recommended minimum: 1.0 nm).
For batch simulations, you can consistently apply the same box size across all conformations or allow the Wizard to calculate sizes individually for each frame.
Key Takeaway
With a thoughtful approach to unit cell shape and size, you can strike the perfect balance between computational efficiency and accurate molecular behavior. The GROMACS Wizard on SAMSON simplifies this for you with intuitive options and optimized shapes. To learn more about periodic boundary conditions and unit cell configurations, check out the full documentation at GROMACS Wizard: Periodic boundary conditions.
SAMSON and all SAMSON Extensions are free for non-commercial use. Get SAMSON at https://www.samson-connect.net.





