Skip to content

Commit bdfb17a

Browse files
authored
Merge pull request #253 from ugognw/clarify-pe-redox
Clarify definition of pE vs. redox potential in documentation
2 parents c288792 + f3ebfb1 commit bdfb17a

1 file changed

Lines changed: 34 additions & 4 deletions

File tree

src/pyEQL/solution.py

Lines changed: 34 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ def __init__(
5959
default_diffusion_coeff: float = 1.6106e-9,
6060
log_level: Literal["DEBUG", "INFO", "WARNING", "ERROR", "CRITICAL"] | None = "ERROR",
6161
) -> None:
62-
"""
62+
r"""
6363
Instantiate a Solution from a composition.
6464
6565
Args:
@@ -88,9 +88,39 @@ def __init__(
8888
Negative log of H+ activity. If omitted, the solution will be
8989
initialized to pH 7 (neutral) with appropriate quantities of
9090
H+ and OH- ions
91-
pE: the pE value (redox potential) of the solution. Lower values = more reducing,
92-
higher values = more oxidizing. At pH 7, water is stable between approximately
93-
-7 to +14. The default value corresponds to a pE value typical of natural
91+
pE: the :math:`pe` value of the solution. :math:`pe` measures the relative abundance of electrons
92+
analogous to how pH measures the relative abundance of protons. Specifically, :math:`pe` is defined in
93+
terms of the activity of electrons :math:`[e^{-}]`:
94+
95+
.. math:: pe = - \log [e^{-}]
96+
97+
The relationship between the redox potential :math:`Eh` and :math:`pe` can be illustrated by considering
98+
the general redox reaction,
99+
100+
.. math::
101+
102+
\begin{gather*}
103+
\text{A}^x \pm ne^{-} \longrightarrow \text{A}^{x \mp n} \quad\quad
104+
K = \frac{[\text{A}^{x \mp n}]}{[\text{A}^x][e^{-}]^{\pm n}}
105+
\end{gather*}
106+
107+
Writing :math:`pe` in terms of the equilibrium constant :math:`K` and the activities,
108+
:math:`[\text{A}^{x}]` and :math:`[\text{A}^{x \mp n}]`, we have:
109+
110+
.. math::
111+
112+
\begin{gather*}
113+
pe = -\log[e^{-}] = \mp \frac{1}{n} \log\left(\frac{1}{K} \frac{[\text{A}^{x \mp n}]}{[\text{A}^x]}\right)
114+
= \mp \frac{\Delta G}{nRT \ln 10} = \frac{FEh}{RT \ln 10}
115+
\end{gather*}
116+
117+
Thus, the redox potential :math:`Eh` is then related to :math:`pe` via:
118+
119+
.. math:: Eh = 2.303 \frac{RT}{F}pe
120+
121+
where :math:`F` is Faraday's constant. Note that lower values of ``pE`` (and thus :math:`Eh`)
122+
correspond to more reducing environments, while higher values = more oxidizing. At pH 7, water is stable
123+
between approximately -7 to +14. The default value corresponds to a :math:`pe` value typical of natural
94124
waters in equilibrium with the atmosphere.
95125
balance_charge: The strategy for balancing charge during init and equilibrium calculations. Valid options
96126
are

0 commit comments

Comments
 (0)