Choosing the right unit cell shape is a critical step for any molecular modeler looking to run simulations with GROMACS. Properly configured unit cells not only ensure accurate results but also save valuable computational resources. This blog post explores the different unit cell shapes supported by the GROMACS Wizard in SAMSON and tips to optimize them for your simulations.
The Importance of Unit Cell Shapes
GROMACS uses periodic boundary conditions, allowing simulations to approximate infinite systems by replicating the simulation box. At the heart of this functionality is the choice of unit cell shape. The selected shape impacts computational efficiency and ensures that the minimum image convention is respected.
Available Unit Cell Shapes in GROMACS Wizard
The GROMACS Wizard provides support for the following unit cell shapes:
| Unit cell shape | Representation |
|---|---|
| Cubic | ![]() |
| Orthorhombic | ![]() |
| Triclinic | ![]() |
| Rhombic dodecahedron | ![]() |
| Truncated octahedron | ![]() |
Which Unit Cell Should You Choose?
Each unit cell shape has its strengths:
- Cubic: Simple to set up and often a default choice. However, it isn’t the best option for spherical solutes due to higher solvent requirements.
- Rhombic dodecahedron: Ideal for spherical macromolecules in solution, offering a volume that is just 71% of a cube for the same image distance. This can result in approximately 29% savings in CPU time.
- Truncated octahedron: Also well-suited for spherical systems, with slightly different geometric characteristics than the rhombic dodecahedron.
For simulations of spherical or flexible molecules in solution, the rhombic dodecahedron and truncated octahedron are often the most efficient choices. They reduce the number of solvent molecules required for a given minimum distance, optimizing computational efficiency.
Practical Tips: Box Dimensions Matter
When preparing the simulation system, you must ensure that the solute doesn’t interact with its periodic images. A practical guideline is to leave at least 1.0 nm between the solute and the box boundary, creating a minimum of 2.0 nm between periodic images of the solute. This ensures compliance with the minimum image convention, avoiding incorrect force calculations.
You can define box size in two ways:
- Box lengths: Specify the box dimensions directly. When fitting the box, increase its size as necessary to ensure sufficient distance between the solute and the boundary.
- Solute-box distance: Specify the distance between the solute and the box boundary. This method is particularly useful for batch projects, ensuring correct fitting for varying conformations.
Conclusion
Choosing the right unit cell shape and box dimensions can make a significant difference in simulation accuracy and efficiency. By carefully assessing the characteristics of your system and leveraging the tools in SAMSON's GROMACS Wizard, you can optimize your molecular modeling projects effectively.
For more detailed guidance on periodic boundary conditions and unit cells, refer to the GROMACS Wizard documentation.
SAMSON and all SAMSON Extensions are free for non-commercial use. You can download SAMSON at samson-connect.net.





