When setting up molecular dynamics (MD) simulations involving center-of-mass (COM) pulling, one crucial yet often misunderstood step is defining the simulation box. A poorly defined box can compromise the pulling workflow and lead to unwanted interactions across periodic boundaries—issues you definitely want to avoid. Let’s walk through a systematic guide to defining your periodic simulation box for a successful pulling simulation in GROMACS Wizard, part of the SAMSON platform.
Why Box Definition Matters for Pulling Simulations
The box must not only accommodate your molecular system but also allow adequate space in the pulling direction to ensure smooth execution of the pulling simulation. Too small a box risks overlapping molecules due to periodic boundary conditions (PBC), while an unnecessarily large box may introduce inefficiencies in computational cost.
For example, if we intend to pull a protein chain (chain A) away from another (chain B) by 5 nm in the z-direction, the box length along the z-axis must be long enough to account for this displacement while respecting GROMACS’ minimum image convention. Specifically, the pulling distance should be less than half the box length along the pulling direction—including periodic effects.
Step-by-Step Guide to Box Definition
In this tutorial, we use the SAMSON GROMACS Wizard to define a well-suited simulation box for COM pulling of 2BEG.
1. Set the Required Box Dimensions
We calculate the necessary box size as follows:
- The pulling distance is 5 nm. Since our pull distance should be less than half the box length (for the z-axis), the total z length must be at least 10 nm.
- We add 2 nm as a buffer for flexibility, resulting in a z-axis length of 12 nm.
For the orthorhombic box, use dimensions of 6.5 nm x 4.5 nm x 12 nm to include sufficient space for molecular movement and maintain efficiency during computation.
2. Visualize the Box in SAMSON
You can visualize your defined box in SAMSON’s Viewport and adjust if necessary. This feature ensures a clear understanding of how your molecular system sits within the periodic boundaries.

3. Center the System Correctly
To center the system properly while leaving space for pulling, deactivate the Center in box option and set the center of mass coordinates to 0.5 x 0.5 x 0.2. This ensures the molecular system is appropriately positioned at the bottom of the box along the z-axis, providing plenty of room for the pulling process.

Tips for Other Pulling Directions
If the pulling direction is not aligned with the axes of the box, SAMSON offers intuitive tools to realign your system. You can use the moving editors or the right-click context menu to align your structure with the appropriate axis or plane, ensuring precise alignment in the desired pulling direction.
Conclusion
Defining the periodic box dimensions is a critical step in preparing your simulation for COM pulling. By carefully aligning your system and ensuring the box accounts for PBC and pull length, you can ensure reliable and reproducible results. With the tools in SAMSON’s GROMACS Wizard, box definition becomes intuitive and efficient.
Learn more by exploring the detailed documentation at this link.
Note: SAMSON and all SAMSON Extensions are free for non-commercial use. You can download SAMSON at this link.
