# Smeared Charge System

**URL:** <https://gromacs.bioexcel.eu/t/smeared-charge-system/9893>\
**Category:** User discussions\
**Created:** [August 15, 2024, 11:31pm UTC](https://gromacs.bioexcel.eu/t/smeared-charge-system/9893 "2024-08-15T23:31:19Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![joh](https://avatars.discourse-cdn.com/v4/letter/j/e56c9b/32.png) [@joh](https://gromacs.bioexcel.eu/u/joh)\
**Post date:** [August 15, 2024, 11:31pm UTC](https://gromacs.bioexcel.eu/t/smeared-charge-system/9893/1 "2024-08-15T23:31:19Z")

</div>

GROMACS version:  
GROMACS modification: Yes/No  
Here post your question

Hello Gromacs Community,

I am currently planning to conduct a simulation with a smeared charge system. Specifically, instead of using explicit ions to balance the charge in the system, I want to uniformly spread the ion charge throughout the system (smear). For example, if I need to use 2 Cl- ions for the neutrality of the system, I want to smear a charge of 2 e- throughout the system instead of using explicit Cl- ions.

Based on my knowledge, Gromacs handles long-range electrostatic interactions using PME, and PME may not be able to handle this smeared charge system. Is there any method to simulate this system in Gromacs?

Thank you in advance for your assistance!

---

<div class="post-metadata">

**Author:** ![obZehn](https://dub1.discourse-cdn.com/flex017/user_avatar/gromacs.bioexcel.eu/obzehn/32/2629_2.png) [@obZehn](https://gromacs.bioexcel.eu/u/obZehn)\
**Post date:** [August 16, 2024, 6:48am UTC](https://gromacs.bioexcel.eu/t/smeared-charge-system/9893/2 "2024-08-16T06:48:02Z")

</div>

Dear @joh

How do you intend to smear the charge? Because if you have a charge of -2 and you smear it across the atoms in the box by modifying all their charges, then the total will still be zero and I wouldn’t expect complains from `grompp`.

---

<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:** [August 16, 2024, 7:31am UTC](https://gromacs.bioexcel.eu/t/smeared-charge-system/9893/3 "2024-08-16T07:31:35Z")

</div>

When using PME with a net charged system, GROMACS applies a background charge to neutralize the system. This is not physical and not as realistic as adding counter ions. But the effect should be similar to smearing the counter charge over the atoms in the system.

A neutralizing background charge, or smearing the counter charge may not be the solution. See, e.g., [[gmx-users] What's the point of adding ions to neutralize the system?](https://mailman-1.sys.kth.se/pipermail/gromacs.org_gmx-users/2015-August/100117.html) and [Electroneutrality in the MD Simulation](https://gromacs.bioexcel.eu/t/electroneutrality-in-the-md-simulation/1926) for some more information.

---

<div class="post-metadata">

**Author:** ![joh](https://avatars.discourse-cdn.com/v4/letter/j/e56c9b/32.png) [@joh](https://gromacs.bioexcel.eu/u/joh)\
**Post date:** [August 16, 2024, 10:16pm UTC](https://gromacs.bioexcel.eu/t/smeared-charge-system/9893/4 "2024-08-16T22:16:30Z")

</div>

Thank you obZehn. I planned to use background charge, but your method looks better. Thank you so much!

---

<div class="post-metadata">

**Author:** ![joh](https://avatars.discourse-cdn.com/v4/letter/j/e56c9b/32.png) [@joh](https://gromacs.bioexcel.eu/u/joh)\
**Post date:** [August 16, 2024, 10:22pm UTC](https://gromacs.bioexcel.eu/t/smeared-charge-system/9893/5 "2024-08-16T22:22:58Z")

</div>

Thank you, MagnusL. I just wanted to compare the difference between the system with counter ions and the system with smeared charge. If the system is homogeneous, this comparison can be fair?

---

<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:** [August 19, 2024, 6:43am UTC](https://gromacs.bioexcel.eu/t/smeared-charge-system/9893/6 "2024-08-19T06:43:26Z")

</div>

With such a system, the comparison should be fair, as far as I can see. And the “smeared charge” approach should be equivalent (or at least very similar) to the background charge that is automatically applied when using PME with a net charged system.
