# Entrering Ion Concentrations to Each side a Membrane System on GROMACS

**URL:** <https://gromacs.bioexcel.eu/t/entrering-ion-concentrations-to-each-side-a-membrane-system-on-gromacs/9529>\
**Category:** User discussions\
**Created:** [June 28, 2024, 12:58am UTC](https://gromacs.bioexcel.eu/t/entrering-ion-concentrations-to-each-side-a-membrane-system-on-gromacs/9529 "2024-06-28T00:58:38Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![harshil.jegan](https://avatars.discourse-cdn.com/v4/letter/h/cc9497/32.png) [@harshil.jegan](https://gromacs.bioexcel.eu/u/harshil.jegan)\
**Post date:** [June 28, 2024, 12:58am UTC](https://gromacs.bioexcel.eu/t/entrering-ion-concentrations-to-each-side-a-membrane-system-on-gromacs/9529/1 "2024-06-28T00:58:38Z")

</div>

I have imported a system from CHARMM-GUI which includes a membrane, a sodium channel transmembrane protein, and surrounding water. I am trying to add different ion concentrations on either side of the membrane to mimic a real human neuron. For example on one side of the membrane I am trying to add a 0.015 molarity of NA on the intracellular side and a 0.142 molarity of NA on the extracellular side. I am trying to do this for moltiple ions. However the function I found for adding ions is gmx genion, but this function keeps adding a concentration of ions to the whole system. Does anyone know how to add certain concentrations of ions to a certain side of the membrane?

---

<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:** [June 28, 2024, 8:26am UTC](https://gromacs.bioexcel.eu/t/entrering-ion-concentrations-to-each-side-a-membrane-system-on-gromacs/9529/2 "2024-06-28T08:26:55Z")

</div>

Dear @harshil.jegan

Does your system consist of only one membrane bilayer?

---

<div class="post-metadata">

**Author:** ![harshil.jegan](https://avatars.discourse-cdn.com/v4/letter/h/cc9497/32.png) [@harshil.jegan](https://gromacs.bioexcel.eu/u/harshil.jegan)\
**Post date:** [June 28, 2024, 1:14pm UTC](https://gromacs.bioexcel.eu/t/entrering-ion-concentrations-to-each-side-a-membrane-system-on-gromacs/9529/3 "2024-06-28T13:14:27Z")

</div>

Yes with an embedded sodium channel and water on each side.

---

<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:** [June 29, 2024, 3:09pm UTC](https://gromacs.bioexcel.eu/t/entrering-ion-concentrations-to-each-side-a-membrane-system-on-gromacs/9529/4 "2024-06-29T15:09:12Z")

</div>

Then because of periodic boundary conditions you have only one water slab, that is, there is no one side/the other side of the bilayer, but both sides “communicate” (they are, in fact, the same side). As such, you can’t really create an ion gradient in this way. I guess you will need at least another bilayer to keep the water phases separated!

---

<div class="post-metadata">

**Author:** ![harshil.jegan](https://avatars.discourse-cdn.com/v4/letter/h/cc9497/32.png) [@harshil.jegan](https://gromacs.bioexcel.eu/u/harshil.jegan)\
**Post date:** [July 2, 2024, 3:16am UTC](https://gromacs.bioexcel.eu/t/entrering-ion-concentrations-to-each-side-a-membrane-system-on-gromacs/9529/5 "2024-07-02T03:16:39Z")

</div>

So how would I create a realistic way to model a human membrane of a neuron to find out how the transmembrane protein works.

---

<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:** [July 2, 2024, 8:12am UTC](https://gromacs.bioexcel.eu/t/entrering-ion-concentrations-to-each-side-a-membrane-system-on-gromacs/9529/6 "2024-07-02T08:12:18Z")

</div>

One option could be to have two bilayers in your simulation box so that you can effectively have two water phases that are separated and can have different concentrations.

However, my opinion is that your best option is to check previous literature and see if there are any other methods or better ways to simulate such gradients, as I am sure this is not a new problem in the MD simulations field. Taking a few hours to explore and study previous published work will easily save you hundreds of hours of effort and computational time!
