# Water surface tension

**URL:** <https://gromacs.bioexcel.eu/t/water-surface-tension/12223>\
**Category:** User discussions\
**Created:** [June 11, 2025, 8:02am UTC](https://gromacs.bioexcel.eu/t/water-surface-tension/12223 "2025-06-11T08:02:58Z")\
**Posts on this page:** 13\
**Page:** 1

<div class="post-metadata">

**Author:** ![horlust](https://avatars.discourse-cdn.com/v4/letter/h/b2d939/32.png) [@horlust](https://gromacs.bioexcel.eu/u/horlust)\
**Post date:** [June 11, 2025, 8:02am UTC](https://gromacs.bioexcel.eu/t/water-surface-tension/12223/1 "2025-06-11T08:02:59Z")

</div>

Hi everyone,

I am trying to compute the surface tension of TIP4P water. I am not sure I am doing this right. I first created a 6 6 3 water box and performed EM, NVT equilibration and NPT equilibration. Then, I added vacuum in the z-axis using the following command:

gmx editconf -f \*.gro -o with\_vacuum.gro -box 6 6 18 -center 0 0 3

Then I performed an EM.

At the end, I have a box of 6 6 18. I then ran a 30 ns NPT simulation to compute surface tension. My .mdp file is:

integrator = md  
nsteps = 30000000 ; 20 ns  
dt = 0.001

cutoff-scheme = Verlet  
nstxout = 1000  
nstvout = 1000  
nstenergy = 1000  
nstlog = 1000  
nstxout-compressed = 1000

rlist = 1.2  
rcoulomb = 1.2  
coulombtype = PME

; van der Waals  
vdwtype = cutoff  
vdw-modifier = potential-switch  
rvdw-switch = 1.0  
rvdw = 1.2

; Temperature coupling  
tcoupl = Nose-Hoover  
tc-grps = System  
tau\_t = 1.0  
ref\_t = 298

; Pressure coupling for surface tension  
pcoupl = Parrinello-Rahman  
pcoupltype = semiisotropic  
ref-p = 1.0 1.0  
compressibility = 4.5e-5 4.5e-5

pbc = xyz  
constraints = h-bonds

I got a value of 88 mN/m (with gmx energy), but, as I have 2 interfaces, I think I have to divide it by 2, which makes it incorrect. Also, interfaces remain throughout the simulation, but the z-axis size grows a lot. I’m thinking maybe I should do:

ref-p = 1.0 0.0  
compressibility = 4.5e-5 0.0

instead of what I did, but I wanted to know your opinion on my simulation workflow (EM \> NVT \> NPT \> add vacuum \> EM \> NPT production run); I don’t know if it’s best to create the vacuum before or after the first EM. Everytime I tried to create vacuum before the first EM, during the NPT the water molecules would just “invade” the vacuum, and I don’t know how to prevent this from happening. Thoughts?

Thanks!

---

<div class="post-metadata">

**Author:** ![hess](https://dub1.discourse-cdn.com/flex017/user_avatar/gromacs.bioexcel.eu/hess/32/416_2.png) [@hess](https://gromacs.bioexcel.eu/u/hess)\
**Post date:** [June 11, 2025, 10:40am UTC](https://gromacs.bioexcel.eu/t/water-surface-tension/12223/2 "2025-06-11T10:40:19Z")

</div>

You should not use pressure coupling when calculating the surface tension.

---

<div class="post-metadata">

**Author:** ![horlust](https://avatars.discourse-cdn.com/v4/letter/h/b2d939/32.png) [@horlust](https://gromacs.bioexcel.eu/u/horlust)\
**Post date:** [June 12, 2025, 3:54am UTC](https://gromacs.bioexcel.eu/t/water-surface-tension/12223/3 "2025-06-12T03:54:24Z")

</div>

Thank you, hess. So the best method would be to build the box with interfaces, perform EM, then a NVT run and compute the surface tension of this run? I’m afraid if I do an EM with a box without interfaces \> NVT \> NPT \> add vacuum \> EM \> NVT then the system is not equilibrated enough. I tried this and got a high potential energy (10^17).

---

<div class="post-metadata">

**Author:** ![hess](https://dub1.discourse-cdn.com/flex017/user_avatar/gromacs.bioexcel.eu/hess/32/416_2.png) [@hess](https://gromacs.bioexcel.eu/u/hess)\
**Post date:** [June 12, 2025, 7:58am UTC](https://gromacs.bioexcel.eu/t/water-surface-tension/12223/4 "2025-06-12T07:58:54Z")

</div>

A water box equilibrates very quickly. I usually take an equilibrated 3D-periodic water box, if necessary stack a few copies, add vacuum, run. No extra EM needed. I ignore the first 1 ns for equilibration.

---

<div class="post-metadata">

**Author:** ![horlust](https://avatars.discourse-cdn.com/v4/letter/h/b2d939/32.png) [@horlust](https://gromacs.bioexcel.eu/u/horlust)\
**Post date:** [June 13, 2025, 9:04am UTC](https://gromacs.bioexcel.eu/t/water-surface-tension/12223/5 "2025-06-13T09:04:36Z")

</div>

Ok, so you add vacuum before equilibration and don’t run NPT? What if the system is more complex than water and takes more time to equilibrate / a NPT run to equilibrate?

---

<div class="post-metadata">

**Author:** ![hess](https://dub1.discourse-cdn.com/flex017/user_avatar/gromacs.bioexcel.eu/hess/32/416_2.png) [@hess](https://gromacs.bioexcel.eu/u/hess)\
**Post date:** [June 13, 2025, 3:42pm UTC](https://gromacs.bioexcel.eu/t/water-surface-tension/12223/6 "2025-06-13T15:42:47Z")

</div>

I don’t understand. You can not run NPT when you have vacuum in the system, as the equilibrium state would be that the vaccuum disappears. You do want to allow some time for the interface to equilibrate, but I simply ignore some of the initial part of the production simulation.

---

<div class="post-metadata">

**Author:** ![horlust](https://avatars.discourse-cdn.com/v4/letter/h/b2d939/32.png) [@horlust](https://gromacs.bioexcel.eu/u/horlust)\
**Post date:** [June 16, 2025, 9:20am UTC](https://gromacs.bioexcel.eu/t/water-surface-tension/12223/7 "2025-06-16T09:20:37Z")

</div>

I mean, if you add the interface before equilibrating the system, then you’re just supposed to equilibrate it with NVT? Or is it best to equilibrate a box without interfaces, add the interfaces and then run a NVT?

---

<div class="post-metadata">

**Author:** ![askforarun](https://avatars.discourse-cdn.com/v4/letter/a/c5a1d2/32.png) [@askforarun](https://gromacs.bioexcel.eu/u/askforarun)\
**Post date:** [June 16, 2025, 9:59am UTC](https://gromacs.bioexcel.eu/t/water-surface-tension/12223/8 "2025-06-16T09:59:54Z")

</div>

Equilibrate a bulk liquid (no interfaces) under NPT. Then extend the z dimension of the box such that there is vaccum on top and bottom and then run an NVT.  
Arun

---

<div class="post-metadata">

**Author:** ![hess](https://dub1.discourse-cdn.com/flex017/user_avatar/gromacs.bioexcel.eu/hess/32/416_2.png) [@hess](https://gromacs.bioexcel.eu/u/hess)\
**Post date:** [June 18, 2025, 9:52am UTC](https://gromacs.bioexcel.eu/t/water-surface-tension/12223/9 "2025-06-18T09:52:47Z")

</div>

Yes. You can not (completely) equilibrate an two-phase system with in an NPT-ensemble You need NVT equilibration after creating the interface. But I simply use the first part of the “production” simulation for the equilibration.

---

<div class="post-metadata">

**Author:** ![1746114419](https://avatars.discourse-cdn.com/v4/letter/1/58956e/32.png) [@1746114419](https://gromacs.bioexcel.eu/u/1746114419)\
**Post date:** [May 15, 2026, 1:24am UTC](https://gromacs.bioexcel.eu/t/water-surface-tension/12223/10 "2026-05-15T01:24:53Z")

</div>

Hello, Hess. I followed the method you suggested to simulate peptide adsorption at the air–water interface. When I calculated the air–water interfacial tension, I found that the value was 74 mN/m.

Then, I ran a simulation of pure water using the same system setup and calculated its interfacial tension as well, and the value was also 74 mN/m. After that, I performed simulations containing four peptide chains and even changed the peptide sequence, but the interfacial tension still remained unchanged. Why does the interfacial tension always stay the same?

---

<div class="post-metadata">

**Author:** ![hess](https://dub1.discourse-cdn.com/flex017/user_avatar/gromacs.bioexcel.eu/hess/32/416_2.png) [@hess](https://gromacs.bioexcel.eu/u/hess)\
**Post date:** [May 19, 2026, 6:20am UTC](https://gromacs.bioexcel.eu/t/water-surface-tension/12223/11 "2026-05-19T06:20:55Z")

</div>

I suppose those four chains only account for a small part of the surface area. And I don’t know by how much these peptides will reduce the surface tension, but certainly not to zero at full coverage.

---

<div class="post-metadata">

**Author:** ![1746114419](https://avatars.discourse-cdn.com/v4/letter/1/58956e/32.png) [@1746114419](https://gromacs.bioexcel.eu/u/1746114419)\
**Post date:** [May 19, 2026, 11:46am UTC](https://gromacs.bioexcel.eu/t/water-surface-tension/12223/12 "2026-05-19T11:46:22Z")

</div>

I added 20 peptide molecules to the system, but the surface tension decreased by only 0.53 mN/m. Should I add more peptides to increase the effect? Also, is it possible to calculate the surface coverage of peptides at the air–water interface?

---

<div class="post-metadata">

**Author:** ![hess](https://dub1.discourse-cdn.com/flex017/user_avatar/gromacs.bioexcel.eu/hess/32/416_2.png) [@hess](https://gromacs.bioexcel.eu/u/hess)\
**Post date:** [May 19, 2026, 12:06pm UTC](https://gromacs.bioexcel.eu/t/water-surface-tension/12223/13 "2026-05-19T12:06:41Z")

</div>

These are scientific, not GROMACS, questions. To estimate the effect, you need to compute the surface area fraction of the peptides and multiply that with an estimate of the surface tension of a full peptide covered surface. Surface area fraction you can get from `gmx sas`.
