# Unit of potential.xvg, charge.xvg, and field.xvg

**URL:** <https://gromacs.bioexcel.eu/t/unit-of-potential-xvg-charge-xvg-and-field-xvg/8877>\
**Category:** User discussions\
**Created:** [April 14, 2024, 2:36pm UTC](https://gromacs.bioexcel.eu/t/unit-of-potential-xvg-charge-xvg-and-field-xvg/8877 "2024-04-14T14:36:35Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Wade](https://avatars.discourse-cdn.com/v4/letter/w/9de053/32.png) [@Wade](https://gromacs.bioexcel.eu/u/Wade)\
**Post date:** [April 14, 2024, 2:36pm UTC](https://gromacs.bioexcel.eu/t/unit-of-potential-xvg-charge-xvg-and-field-xvg/8877/1 "2024-04-14T14:36:35Z")

</div>

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

I am using gmx potential to extract the potential profile, charge density profile, electric field profile from gromacs.  
The results are larger than I expected.  
For example, the following case is a KCl solution between two charged walls with 0.13 C/m^2.  
I wonder if the unit of field.xvg is V/nm as it states in the field.

 ![image](https://europe1.discourse-cdn.com/flex017/uploads/bioexcel1/original/2X/8/87be4fe4e53cad40ce52a24e010a41571444338f.png)

---

<div class="post-metadata">

**Author:** ![scinikhil](https://dub1.discourse-cdn.com/flex017/user_avatar/gromacs.bioexcel.eu/scinikhil/32/3483_2.png) [@scinikhil](https://gromacs.bioexcel.eu/u/scinikhil)\
**Post date:** [April 15, 2024, 1:40am UTC](https://gromacs.bioexcel.eu/t/unit-of-potential-xvg-charge-xvg-and-field-xvg/8877/2 "2024-04-15T01:40:17Z")

</div>

It is with applied voltage?

---

<div class="post-metadata">

**Author:** ![Wade](https://avatars.discourse-cdn.com/v4/letter/w/9de053/32.png) [@Wade](https://gromacs.bioexcel.eu/u/Wade)\
**Post date:** [April 15, 2024, 1:58am UTC](https://gromacs.bioexcel.eu/t/unit-of-potential-xvg-charge-xvg-and-field-xvg/8877/3 "2024-04-15T01:58:41Z")

</div>

Yes. electric field 0.25 V/nm is applied in the y direction.  
The electric field profile shown in the post is extracted by “gmx potential -d Z”.  
Charged Silicon walls are on z = 5 and z = 8.5 nm with 0.13 C/m^2.

---

<div class="post-metadata">

**Author:** ![Wade](https://avatars.discourse-cdn.com/v4/letter/w/9de053/32.png) [@Wade](https://gromacs.bioexcel.eu/u/Wade)\
**Post date:** [April 17, 2024, 11:47am UTC](https://gromacs.bioexcel.eu/t/unit-of-potential-xvg-charge-xvg-and-field-xvg/8877/4 "2024-04-17T11:47:38Z")

</div>

I found the reason, so leave the answer here.  
The electric field output from the “gmx potential” didn’t consider the dielectric constant, which mean the dielectric constant is equal to 1.  
If we are using the SPC/E or other water models and want to know the potential or electric field from the “gmx potential”, the output value is required to be divided by dielectric constant of the water models.

BTW, if we want to output the curve similar to Poisson-Boltzmann equation, choosing the “non-water” to exclude the influence of water can achieve it.
