Molecular modelers often face an important challenge when setting up simulations: selecting the appropriate unit cell shape and size. The choice directly influences the efficiency and accuracy of the simulation, especially when working with periodic boundary conditions (PBC). The GROMACS Wizard in SAMSON provides essential tools to help users navigate this process effectively. Let’s explore the key unit cell options that can improve your molecular modeling setup.
Why Unit Cell Shapes Matter
In simulations that utilize PBC, the unit cell determines how your system repeats across space. Choosing the right unit cell shape can save computational resources and ensure that solute molecules do not interact with their own periodic images incorrectly. Some shapes are more suited for studying specific types of systems, such as approximately spherical macromolecules in solution.
Available Unit Cell Shapes in GROMACS Wizard
The GROMACS Wizard supports the following unit cell shapes:
- Cubic: A basic shape that is easy to configure but not ideal for all systems.
- Orthorhombic: Suitable for systems that are not completely isotropic but still require a regular structure.
- Triclinic: Offers more flexibility for systems that do not conform to standard geometries.
- Rhombic Dodecahedron: Closer to a spherical shape, this unit cell reduces the number of solvent molecules needed for spherical solutes, saving about 29% of CPU time compared to a cubic cell.
- Truncated Octahedron: A versatile option that balances efficiency and system compatibility for roughly spherical solutes.
Here’s a visual representation of the supported unit cell shapes:

Rhombic Dodecahedron: Optimize for Spherical Solutes
Among these shapes, the rhombic dodecahedron stands out for its efficiency when simulating spherical or flexible molecules in a solvent. With a volume that is only 71% of a cubic cell having the same image distance, this unit cell greatly minimizes the number of solvent molecules required, speeding up your computation without sacrificing accuracy.
How to Select and Size Your Unit Cell
The GROMACS Wizard offers two main ways to select and fit a unit cell:
- Box Lengths: Specify the exact dimensions of the box to tightly fit your system. Adjust the length to account for the minimum image convention, ensuring at least 1 nm between the solute and the box boundary.
- Solute-Box Distance: Instead of defining the box size directly, set the distance between the solute and the box. This method automatically adjusts the box size based on the solute configuration, making it a convenient option for batch projects.
The following image illustrates how to choose and configure your unit cell:

Conclusion
Choosing the right unit cell shape and size is a key step in optimizing simulations with PBC. Whether you’re working with cubic shapes for simplicity or rhombic dodecahedra for efficiency, the GROMACS Wizard in SAMSON offers tools to guide you through the process. For detailed instructions and insights, visit the original documentation page.
SAMSON and all SAMSON Extensions are free for non-commercial use. Get SAMSON today at SAMSON’s official website.
