For molecular modelers, getting the simulation box dimensions correct in GROMACS is critical, and errors here can compromise results down the line, especially when working on center-of-mass (COM) pulling simulations. This blog post focuses on setting up a suitable simulation box in SAMSON’s GROMACS Wizard, an essential step for effective COM pulling workflows.
Why Simulation Box Dimensions Matter
In COM pulling workflows, the simulation box ensures that periodic boundary conditions (PBC) don’t interfere with the system you’re observing. For instance, if the pulling distance exceeds half the box length (accounting for periodicity), artifacts caused by overlaps can confuse your results. Knowing how to tailor box length ensures that your results are accurate and reproducible.
Step-by-Step: Configuring Your Simulation Box
Goal: For this tutorial, you’ll pull chain A from chain B by 5 nm in the z-direction. That means the z-axis length of the box should be at least twice the pulling distance — 10 nm — with extra space for safety margins. After all, nobody wants results thrown off by poor box setup! Here’s how to configure it:
- Choose an orthorhombic unit cell. (A uniform, boxy shape is generally reliable for molecular simulations.)
- Click Compute fitted box to generate a preliminary size based on your molecular system.
- Refine the box dimensions manually: set
6.5 nm x 4.5 nm x 12 nm. This adds an adequate 1 nm clearance around the 10 nm pulling range in the z-direction to ensure compliance with the minimum image convention. - Deactivate Center in box. Instead, set the center of mass to
0.5 x 0.5 x 0.2, aligning the molecule asymmetrically to allow more space in the pulling direction.
Once you set these parameters, a visualization of the simulated box will appear directly in the viewport. This can help you confirm the setup visually and avoid unwanted surprises.
Pro Tip: Orient Your System for Efficient Pulling
What if your pulling direction isn’t perfectly aligned with the coordinate axes? SAMSON makes this easy: right-click your structure in the viewport, navigate to Move selection > Align…, and orient it with the axes or a plane. Perfect alignment can save you time and effort during the pulling stage.
Final Verification
After setting up your box, double-check its suitability for the pulling project. Ensure the parameters meet the guidelines for PBC and pulling distance. For example, use images of your box setup or visualization tools in SAMSON’s viewport to confirm everything looks correct.

Diving Deeper
While this post covers simulation box setup for COM pulling, the broader workflow includes steps like pre-processing, energy minimization, and NPT equilibration. To further refine your simulations and avoid common pitfalls, don’t miss the complete SAMSON documentation on COM pulling: Learn more here.
*Note: SAMSON and all SAMSON Extensions are free for non-commercial use. You can download SAMSON at SAMSON Connect.
