# Solvation density issue

**URL:** <https://gromacs.bioexcel.eu/t/solvation-density-issue/2886>\
**Category:** User discussions\
**Created:** [September 30, 2021, 5:23am UTC](https://gromacs.bioexcel.eu/t/solvation-density-issue/2886 "2021-09-30T05:23:42Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![young](https://avatars.discourse-cdn.com/v4/letter/y/258eb7/32.png) [@young](https://gromacs.bioexcel.eu/u/young)\
**Post date:** [September 30, 2021, 5:23am UTC](https://gromacs.bioexcel.eu/t/solvation-density-issue/2886/1 "2021-09-30T05:23:42Z")

</div>

GROMACS version: 2021.2 / 2021.3  
GROMACS modification: No

OS: Ubuntu 20.04 LTS  
CPU: AMD Ryzen 9 3900X 12-Core Processor  
GPU: RTX 2080 ti  
CUDA: 11.4  
GCC: 8.4.0

When I use gmx solvate with default options, the density is not 1000g/L.  
Command: gmx solvate -cp emptybox.gro -cs spc216.gro -p topol.top -o solv.gro  
I tried 4 box types as follow.  
Small cubic: 1.86206 1.86206 1.86206 (same as spc216.gro file) (1000g/L)  
Large cubic: 9.15513 9.15513 9.15513 (1180g/L)  
Small dodecahedron: 2.00000 2.00000 1.41421 0.00000 0.00000 0.00000 0.00000 1.00000 1.00000 (1180g/L)  
Large dodecahedron: 9.15513 9.15513 6.47366 0.00000 0.00000 0.00000 0.00000 4.57757 4.57757 (1180g/L)  
I also used ‘-scale’ option with 0.57 and checked vdwradii.dat file has no problem.

I installed same version of gromacs on the other machine, solvent density was 1000g/L.

Because when I use same size box with spc216.gro, the density was normal, I think there is a problem on converting box step from spc216.gro to new gro file.  
How can I solve this issue?

---

<div class="post-metadata">

**Author:** ![MichelePellegrino](https://dub1.discourse-cdn.com/flex017/user_avatar/gromacs.bioexcel.eu/michelepellegrino/32/628_2.png) [@MichelePellegrino](https://gromacs.bioexcel.eu/u/MichelePellegrino)\
**Post date:** [October 1, 2021, 7:46am UTC](https://gromacs.bioexcel.eu/t/solvation-density-issue/2886/2 "2021-10-01T07:46:19Z")

</div>

Hi young,

have you run a NPT simulation at the desired pressure and temperature to equilibrate the system (after maybe a quick energy minimization)?

I generally would never expect solvant density to exactly match the desired one after `gmx solvate`

---

<div class="post-metadata">

**Author:** ![young](https://avatars.discourse-cdn.com/v4/letter/y/258eb7/32.png) [@young](https://gromacs.bioexcel.eu/u/young)\
**Post date:** [October 1, 2021, 8:27am UTC](https://gromacs.bioexcel.eu/t/solvation-density-issue/2886/3 "2021-10-01T08:27:31Z")

</div>

Hi,

I’ve run an energy minimization, a NVT simulation, and a NPT simulation.  
But the problem is, my system is protein-ligand complex, and the ligand comes out from the binding pocket during the NVT simulation because there exists lots of water molecules in the pocket and they always push the ligand out. It is abnormal because if I use another machine which solvates water molecules as 1000g/L, the ligand maintains its position.

---

<div class="post-metadata">

**Author:** ![ddesh5208660](https://avatars.discourse-cdn.com/v4/letter/d/8797f3/32.png) [@ddesh5208660](https://gromacs.bioexcel.eu/u/ddesh5208660)\
**Post date:** [October 13, 2023, 11:09am UTC](https://gromacs.bioexcel.eu/t/solvation-density-issue/2886/4 "2023-10-13T11:09:22Z")

</div>

Hi Michele ,

I am curious why density after gmx solvate and npt equilibration are not matched.  
Please could you elaborate on this more?

Moreover, I also want to know what are the assumptions(states of matters) during gmx solvate to fill the solute molecule.

---

<div class="post-metadata">

**Author:** ![MichelePellegrino](https://dub1.discourse-cdn.com/flex017/user_avatar/gromacs.bioexcel.eu/michelepellegrino/32/628_2.png) [@MichelePellegrino](https://gromacs.bioexcel.eu/u/MichelePellegrino)\
**Post date:** [October 13, 2023, 11:18am UTC](https://gromacs.bioexcel.eu/t/solvation-density-issue/2886/5 "2023-10-13T11:18:52Z")

</div>

Hi,

I am not sure I understand what you mean by “assumptions”. I don’t know the inner workings of `gmx solvate`, I would imagine it tries to place molecules semi-randomly making sure there’s no overlap between hard spheres.

About the first part of your question, I think the answer is quite simple: after NPT equilibration the average box dimensions might change, which means that for the same number of moleucles one would get a different (average) density.

---

<div class="post-metadata">

**Author:** ![ddesh5208660](https://avatars.discourse-cdn.com/v4/letter/d/8797f3/32.png) [@ddesh5208660](https://gromacs.bioexcel.eu/u/ddesh5208660)\
**Post date:** [October 13, 2023, 12:14pm UTC](https://gromacs.bioexcel.eu/t/solvation-density-issue/2886/6 "2023-10-13T12:14:47Z")

</div>

Ok . By assumptions I mean to say that weather gmx solvate considers all the atoms hard-sphere like solids or soft matters like liquids and gases.

---

<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:** [October 13, 2023, 1:19pm UTC](https://gromacs.bioexcel.eu/t/solvation-density-issue/2886/7 "2023-10-13T13:19:52Z")

</div>

`gmx solvate` has no concept of physics. It takes a pre-equilibrated solvent box and tiles it through the volume of the user-provided box. Based on van der Waals radii (tabulated in a database file), it determines if any added solvent molecules are too close to existing solute molecules or each other.
