# Box re-sizing After running the md simulation

**URL:** <https://gromacs.bioexcel.eu/t/box-re-sizing-after-running-the-md-simulation/12167>\
**Category:** User discussions\
**Created:** [May 28, 2025, 5:10pm UTC](https://gromacs.bioexcel.eu/t/box-re-sizing-after-running-the-md-simulation/12167 "2025-05-28T17:10:17Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![Zina](https://avatars.discourse-cdn.com/v4/letter/z/f08c70/32.png) [@Zina](https://gromacs.bioexcel.eu/u/Zina)\
**Post date:** [May 28, 2025, 5:10pm UTC](https://gromacs.bioexcel.eu/t/box-re-sizing-after-running-the-md-simulation/12167/1 "2025-05-28T17:10:17Z")

</div>

I’ve completed a 250 ns molecular dynamics simulation. Even after applying re-centering and ‘nojump’ corrections during trajectory processing, I still have 6 atoms outside the simulation box. Does this mean I need to enlarge the simulation box and rerun the entire 250 ns simulation? Alternatively, can I resize the box post-simulation and proceed with analysis (e.g., RMSD), assuming the dynamics are unaffected? For context, RMSD and other analyses appear normal even with these 6 atoms out.

 ![Screenshot from 2025-05-28 12-09-47](https://europe1.discourse-cdn.com/flex017/uploads/bioexcel1/original/2X/6/63aaa23faf1c33d0a116d272291242b56ae82b45.png)

---

<div class="post-metadata">

**Author:** ![obZehn](https://dub1.discourse-cdn.com/flex017/user_avatar/gromacs.bioexcel.eu/obzehn/32/2629_2.png) [@obZehn](https://gromacs.bioexcel.eu/u/obZehn)\
**Post date:** [May 29, 2025, 1:03pm UTC](https://gromacs.bioexcel.eu/t/box-re-sizing-after-running-the-md-simulation/12167/2 "2025-05-29T13:03:58Z")

</div>

There is no outside the box in MD simulations as PBCs wrap the full 3D space. What do you mean with 6 atoms out?

---

<div class="post-metadata">

**Author:** ![Zina](https://avatars.discourse-cdn.com/v4/letter/z/f08c70/32.png) [@Zina](https://gromacs.bioexcel.eu/u/Zina)\
**Post date:** [May 29, 2025, 3:37pm UTC](https://gromacs.bioexcel.eu/t/box-re-sizing-after-running-the-md-simulation/12167/3 "2025-05-29T15:37:53Z")

</div>

Thank you so much for getting back to me .. so when i run  
` gmx check -c md_0_250.tpr -f md_0_250_centerNoJump.xtc`  
It ends up with a notes that some atoms are outside the box. it happens as well when i try to check only the tpr file `gmx check -c md_0_250.tpr`

 ![image](https://europe1.discourse-cdn.com/flex017/uploads/bioexcel1/original/2X/9/90fdc1af8cb1e9fe50167b56d39e5f1af88b44b8.png)

---

<div class="post-metadata">

**Author:** ![Zina](https://avatars.discourse-cdn.com/v4/letter/z/f08c70/32.png) [@Zina](https://gromacs.bioexcel.eu/u/Zina)\
**Post date:** [May 29, 2025, 3:40pm UTC](https://gromacs.bioexcel.eu/t/box-re-sizing-after-running-the-md-simulation/12167/4 "2025-05-29T15:40:43Z")

</div>

I thought if I did re centering and some atoms are still outside the box it means the box is small for my system and I need to resize it.

---

<div class="post-metadata">

**Author:** ![obZehn](https://dub1.discourse-cdn.com/flex017/user_avatar/gromacs.bioexcel.eu/obzehn/32/2629_2.png) [@obZehn](https://gromacs.bioexcel.eu/u/obZehn)\
**Post date:** [June 4, 2025, 7:45am UTC](https://gromacs.bioexcel.eu/t/box-re-sizing-after-running-the-md-simulation/12167/5 "2025-06-04T07:45:49Z")

</div>

Sorry for the late reply.

In all honesty, I have never seen a `gmx check` report. Anyway, as the output says, `These may occur often and are normally not a problem`. I would go ahead and not worry about them, as there is no in or out of a MD box, this should just change where the original (not PBC) copy of the atoms appears.

On the other hand, atoms crossing PBCs boundaries can generate artifact in analysis like RMSD. Have you tried `gmx trjconv` to clean up the trajectory from PBCs and recenter only the group for RMSD calculation? Another couple of tools to check if the box is large enough should be `gmx mindist`, specifically with the `-pi` flag and visualizing it with software like VMD along with the box.

---

<div class="post-metadata">

**Author:** ![Zina](https://avatars.discourse-cdn.com/v4/letter/z/f08c70/32.png) [@Zina](https://gromacs.bioexcel.eu/u/Zina)\
**Post date:** [June 12, 2025, 4:44pm UTC](https://gromacs.bioexcel.eu/t/box-re-sizing-after-running-the-md-simulation/12167/6 "2025-06-12T16:44:12Z")

</div>

Thank you so much for your detailed reply. I am sorry for my late reply. Yes I did `gmx trajconv`  
I will try `gmx mindist` to figure out about the box size.
