# Pressure equilibration

**URL:** <https://gromacs.bioexcel.eu/t/pressure-equilibration/10592>\
**Category:** User discussions\
**Created:** [November 20, 2024, 2:04pm UTC](https://gromacs.bioexcel.eu/t/pressure-equilibration/10592 "2024-11-20T14:04:30Z")\
**Posts on this page:** 11\
**Page:** 1

<div class="post-metadata">

**Author:** ![radhiz123](https://dub1.discourse-cdn.com/flex017/user_avatar/gromacs.bioexcel.eu/radhiz123/32/4386_2.png) [@radhiz123](https://gromacs.bioexcel.eu/u/radhiz123)\
**Post date:** [November 20, 2024, 2:04pm UTC](https://gromacs.bioexcel.eu/t/pressure-equilibration/10592/1 "2024-11-20T14:04:30Z")

</div>

GROMACS version: 2022.4  
halo everyone  
I have equilibrated one window for pulling simulation with reference pressure 1 bar and compressibility 4.5e-5 per bar. After 45 ns run, average pressure is 3.89 bar with rmsd value 244.81. Is it acceptable? Please help.

---

<div class="post-metadata">

**Author:** ![MagnusL](https://dub1.discourse-cdn.com/flex017/user_avatar/gromacs.bioexcel.eu/magnusl/32/2380_2.png) [@MagnusL](https://gromacs.bioexcel.eu/u/MagnusL)\
**Post date:** [November 20, 2024, 2:18pm UTC](https://gromacs.bioexcel.eu/t/pressure-equilibration/10592/2 "2024-11-20T14:18:50Z")

</div>

Pressure fluctuates a lot, especially if your simulation is small. It sounds like it could be acceptable, but just numbers don’t say much.

Is the pressure stable during the simulation? It is often a good idea to discard the beginning of the data. Are the results in the same ballpark if you use `-b 5000` with `gmx energy`?

---

<div class="post-metadata">

**Author:** ![radhiz123](https://dub1.discourse-cdn.com/flex017/user_avatar/gromacs.bioexcel.eu/radhiz123/32/4386_2.png) [@radhiz123](https://gromacs.bioexcel.eu/u/radhiz123)\
**Post date:** [November 20, 2024, 2:27pm UTC](https://gromacs.bioexcel.eu/t/pressure-equilibration/10592/3 "2024-11-20T14:27:46Z")

</div>

Here i present some screenshots regarding above.

 ![Screenshot from 2024-11-20 19-56-01](https://europe1.discourse-cdn.com/flex017/uploads/bioexcel1/original/2X/6/612b498c058c247d5c9cf7db766ab562fd6ffe1e.png)  
 ![Screenshot from 2024-11-20 19-52-37](https://europe1.discourse-cdn.com/flex017/uploads/bioexcel1/original/2X/0/08ed3719467fe55b8c70a6ba85ecee32603640de.png)  
Is pressure stable during the run?

---

<div class="post-metadata">

**Author:** ![MagnusL](https://dub1.discourse-cdn.com/flex017/user_avatar/gromacs.bioexcel.eu/magnusl/32/2380_2.png) [@MagnusL](https://gromacs.bioexcel.eu/u/MagnusL)\
**Post date:** [November 20, 2024, 2:39pm UTC](https://gromacs.bioexcel.eu/t/pressure-equilibration/10592/4 "2024-11-20T14:39:15Z")

</div>

It looks reasonably stable to me. You will have to decide what is stable enough/acceptable. It might be easier to judge if you use “Data” → “Transformations” → “Running average”, in xmgrace, with a high number, let’s say 10,000. From the Tot-Drift of your numbers, the pressure is probably dropping slightly over the course of the simulation.

---

<div class="post-metadata">

**Author:** ![radhiz123](https://dub1.discourse-cdn.com/flex017/user_avatar/gromacs.bioexcel.eu/radhiz123/32/4386_2.png) [@radhiz123](https://gromacs.bioexcel.eu/u/radhiz123)\
**Post date:** [November 20, 2024, 2:42pm UTC](https://gromacs.bioexcel.eu/t/pressure-equilibration/10592/5 "2024-11-20T14:42:30Z")

</div>

I present here an image after taking 10,000 in running average as suggested.

 ![Screenshot from 2024-11-20 20-10-46](https://europe1.discourse-cdn.com/flex017/uploads/bioexcel1/original/2X/1/1a64633daed855c065e370031f69bfde98d65061.png)  
Is it fine?

---

<div class="post-metadata">

**Author:** ![MagnusL](https://dub1.discourse-cdn.com/flex017/user_avatar/gromacs.bioexcel.eu/magnusl/32/2380_2.png) [@MagnusL](https://gromacs.bioexcel.eu/u/MagnusL)\
**Post date:** [November 20, 2024, 2:43pm UTC](https://gromacs.bioexcel.eu/t/pressure-equilibration/10592/6 "2024-11-20T14:43:02Z")

</div>

If you hide the first data set it will help. And remember to rescale the axes.

---

<div class="post-metadata">

**Author:** ![radhiz123](https://dub1.discourse-cdn.com/flex017/user_avatar/gromacs.bioexcel.eu/radhiz123/32/4386_2.png) [@radhiz123](https://gromacs.bioexcel.eu/u/radhiz123)\
**Post date:** [November 20, 2024, 3:12pm UTC](https://gromacs.bioexcel.eu/t/pressure-equilibration/10592/7 "2024-11-20T15:12:02Z")

</div>

I have removed initial 0 to 4900 ps data and have rescaled the x axis from 5000 ps to 45000 ps taking running average as 10000. Please excuse as I am very much new to gromacs and xmgrace. I present here one image. Let me know if I have to bring more.  
Thank you.

 ![Screenshot from 2024-11-20 20-37-09](https://europe1.discourse-cdn.com/flex017/uploads/bioexcel1/original/2X/6/680801600abd69f2a36d97e2d163251bdd465524.png)

---

<div class="post-metadata">

**Author:** ![MagnusL](https://dub1.discourse-cdn.com/flex017/user_avatar/gromacs.bioexcel.eu/magnusl/32/2380_2.png) [@MagnusL](https://gromacs.bioexcel.eu/u/MagnusL)\
**Post date:** [November 20, 2024, 3:15pm UTC](https://gromacs.bioexcel.eu/t/pressure-equilibration/10592/8 "2024-11-20T15:15:37Z")

</div>

The problem is that it is very difficult to say anything about the red line due to the scale of the plot. As I said, you need to hide the first (black) data set and then use the automatic rescale tool in the toolbar.

You can of course also keep the black dataset, but then you need to manually set the scale of the axes. Double click on the y axis and set the range to, e.g., -5 to 5. It might help if you set the scale of the x axis to 10,000 to 40,000 as well.

---

<div class="post-metadata">

**Author:** ![radhiz123](https://dub1.discourse-cdn.com/flex017/user_avatar/gromacs.bioexcel.eu/radhiz123/32/4386_2.png) [@radhiz123](https://gromacs.bioexcel.eu/u/radhiz123)\
**Post date:** [November 20, 2024, 3:35pm UTC](https://gromacs.bioexcel.eu/t/pressure-equilibration/10592/9 "2024-11-20T15:35:57Z")

</div>

This is an image I could generate by far (and it looks scary!). I have set y axis from -5 bar to 5 bar and x axis from 5000 ps to 45000 ps. I have also put 10000 in running average section. Please have a look.

 ![Screenshot from 2024-11-20 21-00-23](https://europe1.discourse-cdn.com/flex017/uploads/bioexcel1/original/2X/5/5aa34fa575b6024fbdacdd93db07923204f77f9c.png)

---

<div class="post-metadata">

**Author:** ![MagnusL](https://dub1.discourse-cdn.com/flex017/user_avatar/gromacs.bioexcel.eu/magnusl/32/2380_2.png) [@MagnusL](https://gromacs.bioexcel.eu/u/MagnusL)\
**Post date:** [November 20, 2024, 3:42pm UTC](https://gromacs.bioexcel.eu/t/pressure-equilibration/10592/10 "2024-11-20T15:42:20Z")

</div>

So, the difference is still quite small, but the trend definitely seems like the pressure is going down over the course of the simulation. I can’t judge if that’s a problem or not, but if you are very interested in a stable pressure you might want to extend the simulation and discard more data in the beginning.

The problem is that with the large fluctuations in pressure it is difficult to get it to exactly the target value (1 bar), but with a long enough simulation (and discarding drifting data in the beginning) I would expect that you can get the Average (over a “stable” period of time) to 1 bar ± (2 x Err.Est.).

---

<div class="post-metadata">

**Author:** ![ahosseini9473](https://avatars.discourse-cdn.com/v4/letter/a/e274bd/32.png) [@ahosseini9473](https://gromacs.bioexcel.eu/u/ahosseini9473)\
**Post date:** [February 14, 2025, 7:45am UTC](https://gromacs.bioexcel.eu/t/pressure-equilibration/10592/11 "2025-02-14T07:45:49Z")

</div>

Hi,  
What is the coupling pressure time?
