# Vacuum Simulations in GROMACS 2020+

**URL:** <https://gromacs.bioexcel.eu/t/vacuum-simulations-in-gromacs-2020/7249>\
**Category:** User discussions\
**Tags:** mdp-parameters, simulation-setup\
**Created:** [September 22, 2023, 5:56pm UTC](https://gromacs.bioexcel.eu/t/vacuum-simulations-in-gromacs-2020/7249 "2023-09-22T17:56:03Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![ecdybeck](https://avatars.discourse-cdn.com/v4/letter/e/3bc359/32.png) [@ecdybeck](https://gromacs.bioexcel.eu/u/ecdybeck)\
**Post date:** [September 22, 2023, 5:56pm UTC](https://gromacs.bioexcel.eu/t/vacuum-simulations-in-gromacs-2020/7249/1 "2023-09-22T17:56:03Z")

</div>

GROMACS version: \>2020

Has the ability to run GROMACS in a ‘vacuum’ (non-periodic) state been recovered yet? I know that in the 2020 version update the ‘group’ cut-off scheme was removed, and this was the only method for running pbc=‘no’. It’s been about 3 years now, so I wanted to check in to see if the ability to run vacuum simulations had been restored. I see from the MDP options that ‘group’ cut-off is still deprecated, but is there perhaps some other combination of MDP options that gets this simulation type to run?

Thanks!  
Eric

---

<div class="post-metadata">

**Author:** ![jalemkul](https://dub1.discourse-cdn.com/flex017/user_avatar/gromacs.bioexcel.eu/jalemkul/32/18_2.png) [@jalemkul](https://gromacs.bioexcel.eu/u/jalemkul)\
**Post date:** [September 23, 2023, 6:42pm UTC](https://gromacs.bioexcel.eu/t/vacuum-simulations-in-gromacs-2020/7249/2 "2023-09-23T18:42:38Z")

</div>

There is still no way to do a non-PBC simulation in GROMACS. There is an open GitLab issue about this as it is really important for force field comparisons but it has not been a high priority (or is for some reason particularly challenging to implement).

---

<div class="post-metadata">

**Author:** ![ecdybeck](https://avatars.discourse-cdn.com/v4/letter/e/3bc359/32.png) [@ecdybeck](https://gromacs.bioexcel.eu/u/ecdybeck)\
**Post date:** [September 26, 2023, 7:19pm UTC](https://gromacs.bioexcel.eu/t/vacuum-simulations-in-gromacs-2020/7249/3 "2023-09-26T19:19:32Z")

</div>

Got it. So, what would be the most ‘canonical’ way to run a ‘vacuum’ simulation in current versions? I have been using an older version of gromacs for these simulations in my workflow (i.e. gromacs 2019), but its going to become unsustainable to keep doing that as gromacs changes, so I’m exploring alternatives.

I saw this comment in the mdp options for ‘pbc’=‘no’:  
To simulate without cut-offs, set all cut-offs and `nstlist` to 0. For best performance without cut-offs on a single MPI rank, set `nstlist` to zero and `ns-type=simple` .

So, if I set both the cutoff and nstlist to 0, will the system compute all pairwise interactions between all particles in the system directly in real space?

Naturally one could mimic a vacuum box with pbc=‘xyz’ by running in a very large box (e.g. 10 nm). The challenge with this is that the simulations become quite slow, even though its a trivial calculation. The advantage of running with pbc=‘no’ is that its an essentially instantaneous calculation on a single core. Is there a way to accomplish this more or less using pbc=‘xyz’ along with the right combination of other mdp options? For example, if I set ‘vdwtype’=‘Cut-off’ and ‘coulombtype’=‘Cut-off’, will that result in only realspace interactions with no long-range corrections? Will that make the simulation fast even if there is a box?

-Eric

---

<div class="post-metadata">

**Author:** ![Neena](https://avatars.discourse-cdn.com/v4/letter/n/bc79bd/32.png) [@Neena](https://gromacs.bioexcel.eu/u/Neena)\
**Post date:** [September 27, 2023, 7:05pm UTC](https://gromacs.bioexcel.eu/t/vacuum-simulations-in-gromacs-2020/7249/4 "2023-09-27T19:05:42Z")

</div>

@ecdybeck  
This is how I did vacuum simulations, here is my nvt.mdp file:

 ![image](https://europe1.discourse-cdn.com/flex017/uploads/bioexcel1/original/2X/3/37669276fd6714d139c1c53a14fc04a59852e2a9.png)

Try it out, let me know how it goes!

---

<div class="post-metadata">

**Author:** ![vasi786](https://avatars.discourse-cdn.com/v4/letter/v/da6949/32.png) [@vasi786](https://gromacs.bioexcel.eu/u/vasi786)\
**Post date:** [April 11, 2024, 9:49pm UTC](https://gromacs.bioexcel.eu/t/vacuum-simulations-in-gromacs-2020/7249/5 "2024-04-11T21:49:06Z")

</div>

Hi @Neena,

How was the performance in your case? I guess you are using a 999.99 nm^3 box.
