# Simulate the freezing of saline under an external electric field

**URL:** <https://gromacs.bioexcel.eu/t/simulate-the-freezing-of-saline-under-an-external-electric-field/12892>\
**Category:** User discussions\
**Tags:** simulation-setup\
**Created:** [November 10, 2025, 1:46am UTC](https://gromacs.bioexcel.eu/t/simulate-the-freezing-of-saline-under-an-external-electric-field/12892 "2025-11-10T01:46:30Z")\
**Posts on this page:** 13\
**Page:** 1

<div class="post-metadata">

**Author:** ![chenhr](https://avatars.discourse-cdn.com/v4/letter/c/c57346/32.png) [@chenhr](https://gromacs.bioexcel.eu/u/chenhr)\
**Post date:** [November 10, 2025, 1:46am UTC](https://gromacs.bioexcel.eu/t/simulate-the-freezing-of-saline-under-an-external-electric-field/12892/1 "2025-11-10T01:46:30Z")

</div>

GROMACS version:2020  
GROMACS modification: No  
Here post your question

Dear all,

When I simulate the freezing of saline under an external electric field, the simulation system gets compressed when the set electric field is \>0.4 V/nm. How should I set up the mdp file during the simulation to achieve a normal simulation process?

---

<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:** [November 10, 2025, 10:09am UTC](https://gromacs.bioexcel.eu/t/simulate-the-freezing-of-saline-under-an-external-electric-field/12892/2 "2025-11-10T10:09:45Z")

</div>

I guess you are using PME. Are you aware that the electric field is enhanced by the dielectric of your solution? This will be more than two orders of magnitude for saline. See: [Electric fields - GROMACS 2025.3 documentation](https://manual.gromacs.org/current/reference-manual/special/electric-fields.html)

---

<div class="post-metadata">

**Author:** ![chenhr](https://avatars.discourse-cdn.com/v4/letter/c/c57346/32.png) [@chenhr](https://gromacs.bioexcel.eu/u/chenhr)\
**Post date:** [November 10, 2025, 2:18pm UTC](https://gromacs.bioexcel.eu/t/simulate-the-freezing-of-saline-under-an-external-electric-field/12892/4 "2025-11-10T14:18:58Z")

</div>

Yes, I used PME. I did overlook the influence of electric fields on the dielectric properties of solutions, but I also simulated the freezing of pure water under electric fields, and this problem also occurred in this system. I saw that Bug with electric field simulation using gromacs2020 (#3800) · Issues · GROMACS / GROMACS · GitLab Mentioning that this is a bug in GROMACS2020, does it have any reference value?

---

<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:** [November 10, 2025, 2:40pm UTC](https://gromacs.bioexcel.eu/t/simulate-the-freezing-of-saline-under-an-external-electric-field/12892/5 "2025-11-10T14:40:32Z")

</div>

But water has dielectric permittivity of around 80, so the field will be around a factor 80 higher that what you specify in the mdp file.

The bug you mention only affects the 2020 release.

---

<div class="post-metadata">

**Author:** ![chenhr](https://avatars.discourse-cdn.com/v4/letter/c/c57346/32.png) [@chenhr](https://gromacs.bioexcel.eu/u/chenhr)\
**Post date:** [November 10, 2025, 3:04pm UTC](https://gromacs.bioexcel.eu/t/simulate-the-freezing-of-saline-under-an-external-electric-field/12892/7 "2025-11-10T15:04:04Z")

</div>

This strength of electric field is used in several literature I have seen, so I am trying to reproduce this strength of electric field

---

<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:** [November 10, 2025, 3:15pm UTC](https://gromacs.bioexcel.eu/t/simulate-the-freezing-of-saline-under-an-external-electric-field/12892/8 "2025-11-10T15:15:40Z")

</div>

Yes, but is that the electric field applied as we apply it in GROMACS or the actual electric that the effect on the system corresponds to?

---

<div class="post-metadata">

**Author:** ![chenhr](https://avatars.discourse-cdn.com/v4/letter/c/c57346/32.png) [@chenhr](https://gromacs.bioexcel.eu/u/chenhr)\
**Post date:** [November 11, 2025, 12:34am UTC](https://gromacs.bioexcel.eu/t/simulate-the-freezing-of-saline-under-an-external-electric-field/12892/9 "2025-11-11T00:34:36Z")

</div>

thanks for your suggestion. The electric field that literature mentioned is applied in GROMACS, and the GROMACS I used is 2020 version, it maybe cause the question.

---

<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:** [November 11, 2025, 8:51am UTC](https://gromacs.bioexcel.eu/t/simulate-the-freezing-of-saline-under-an-external-electric-field/12892/10 "2025-11-11T08:51:19Z")

</div>

The issue in 2020 was only with parallel simulations. I would not think that that bug affected their results.

---

<div class="post-metadata">

**Author:** ![chenhr](https://avatars.discourse-cdn.com/v4/letter/c/c57346/32.png) [@chenhr](https://gromacs.bioexcel.eu/u/chenhr)\
**Post date:** [November 12, 2025, 6:23am UTC](https://gromacs.bioexcel.eu/t/simulate-the-freezing-of-saline-under-an-external-electric-field/12892/11 "2025-11-12T06:23:52Z")

</div>

yes, I use other version GROMACS do it, it also has this result.May I ask if you have any suggestions for reference?

---

<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:** [November 12, 2025, 9:02am UTC](https://gromacs.bioexcel.eu/t/simulate-the-freezing-of-saline-under-an-external-electric-field/12892/12 "2025-11-12T09:02:25Z")

</div>

What do you mean with “for reference”?

I just ran a simulation with an input field of 0.4 V/nm and PME and get an extreme water orientation, more than 50%. A field of 0.4/epsilon is still high, but leads to less extreme orientation.

When the system consists of neutral update groups, e.g. only water, you can set epsilon-surface=1 and you actually get the field you set in the mdp file.

---

<div class="post-metadata">

**Author:** ![chenhr](https://avatars.discourse-cdn.com/v4/letter/c/c57346/32.png) [@chenhr](https://gromacs.bioexcel.eu/u/chenhr)\
**Post date:** [November 12, 2025, 9:33am UTC](https://gromacs.bioexcel.eu/t/simulate-the-freezing-of-saline-under-an-external-electric-field/12892/13 "2025-11-12T09:33:21Z")

</div>

Thank you for your feedback. What I mean is, could you provide an MDP file setting that simulates this system. I will install your feedback and simulate it again.

---

<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:** [November 12, 2025, 9:43am UTC](https://gromacs.bioexcel.eu/t/simulate-the-freezing-of-saline-under-an-external-electric-field/12892/14 "2025-11-12T09:43:19Z")

</div>

If you want an external field of 0.4 while using PME, you need to specify a field of 0.4/epsilon, where epsilon is the dielectric permittivity of your solution. You can obtain that using gmx dipoles -eps with a simulation of your system without electric field.

---

<div class="post-metadata">

**Author:** ![chenhr](https://avatars.discourse-cdn.com/v4/letter/c/c57346/32.png) [@chenhr](https://gromacs.bioexcel.eu/u/chenhr)\
**Post date:** [November 13, 2025, 12:37am UTC](https://gromacs.bioexcel.eu/t/simulate-the-freezing-of-saline-under-an-external-electric-field/12892/15 "2025-11-13T00:37:33Z")

</div>

Thanks for your advice, I will try to do it.
