Whittaker's History (1910), reviewed › The review's files › sim/whittaker/partE/
partE_electrolysis.py
#!/usr/bin/env python3
"""Whittaker review, Part E, chapter XI: conduction in solutions.
W11.2-W11.3 Hittorf and Kohlrausch; W11.5 Lippmann; W11.7 Helmholtz's concentration cell;
W11.8 Arrhenius; W11.9 Nernst. Modern values from memory of standard tables (CRC/Atkins) unless marked.
Run: OMP_NUM_THREADS=1 ~/aspden-review-venv/bin/python3 partE_electrolysis.py
"""
import subprocess
import numpy as np
print("git HEAD:", subprocess.run(["git", "rev-parse", "HEAD"], cwd="/home/doug/aetherscience.org",
capture_output=True, text=True).stdout.strip())
F = 96485.33212 # C/mol, exact since 2019 (N_A e) [S]
R = 8.314462618 # J/(mol K), exact [S]
T = 298.15
print("\n=== 1. The Faraday constant (Whittaker p. 375 note: 'E is 96580 coulombs') ===")
print(f" Whittaker 96580 C vs F = {F:.3f} C/mol: {100*(96580/F-1):+.3f}% [accurate to 0.1%]")
m_H = 1.007825e-3 # kg/mol, 1H atom (from memory)
m_e_over_e = 9.1093837139e-31 / 1.602176634e-19
m_H_over_e = m_H / F
print(f" hydrogen ion in electrolysis: m/e = {m_H_over_e:.4e} kg/C = {m_H_over_e*1e3*10:.4e} g per emu (1 emu = 10 C) [Thomson's '10^-4']")
print(f" electron: m/e = {m_e_over_e:.4e} kg/C = {m_e_over_e*1e3*10:.4e} g per emu; ratio H+/e = {m_H_over_e/m_e_over_e:.1f}")
print("\n=== 2. Kohlrausch's law of independent migration (1879, read at source: 'Gesetz von der unabhaengigen Wanderung der Jonen') ===")
# limiting molar ionic conductivities at 25 C, S cm^2 mol^-1 (from memory of standard tables)
lam = {"H+": 349.8, "Na+": 50.1, "K+": 73.5, "Li+": 38.7, "Ag+": 61.9,
"Cl-": 76.3, "NO3-": 71.4, "OH-": 198.3, "CH3COO-": 40.9}
meas = {"KCl": 149.9, "NaCl": 126.5, "HCl": 426.2, "KNO3": 145.0, "NaNO3": 121.5, "LiCl": 115.0, "AgNO3": 133.4}
pairs = {"KCl": ("K+", "Cl-"), "NaCl": ("Na+", "Cl-"), "HCl": ("H+", "Cl-"), "KNO3": ("K+", "NO3-"),
"NaNO3": ("Na+", "NO3-"), "LiCl": ("Li+", "Cl-"), "AgNO3": ("Ag+", "NO3-")}
print(" salt sum of ions measured Lambda0 difference")
for s, (cat, an) in pairs.items():
tot = lam[cat] + lam[an]
print(f" {s:6s} {tot:8.1f} {meas[s]:8.1f} {100*(tot/meas[s]-1):+5.2f}%")
print(f" Kohlrausch's constant differences: KCl - NaCl = {meas['KCl']-meas['NaCl']:.1f}, KNO3 - NaNO3 = {meas['KNO3']-meas['NaNO3']:.1f} (both = lambda(K+) - lambda(Na+) = {lam['K+']-lam['Na+']:.1f})")
print(" Ionic mobilities u = lambda/F and drift speeds at 1 V/cm (Whittaker p. 374-375: 'absolute velocities of drift'):")
for ion in ["H+", "K+", "Na+", "Cl-", "OH-"]:
u = lam[ion] * 1e-4 / F # m^2 V^-1 s^-1
print(f" {ion:5s}: u = {u:.3e} m^2/(V s); at 1 V/cm drift = {u*100*100:.2e} cm/s (about {u*100*100*3600:.1f} cm per hour)")
tK = lam["K+"] / (lam["K+"] + lam["Cl-"])
print(f" Hittorf transport number of K+ in KCl from these: t+ = {tK:.3f} (measured 0.490 at infinite dilution, from memory)")
print("\n=== 3. Kohlrausch's square-root law and Debye-Hueckel-Onsager (the modern account of 'incomplete dissociation' of strong electrolytes) ===")
A, B = 60.2, 0.229 # Onsager coefficients in water at 25 C (from memory), Lambda = Lambda0 - (A + B Lambda0) sqrt(c)
L0 = meas["KCl"]
for cmol, Lmeas in [(0.001, 146.9), (0.01, 141.3), (0.1, 128.9)]:
L = L0 - (A + B * L0) * np.sqrt(cmol)
alpha_arr = Lmeas / L0
print(f" KCl c = {cmol:5.3f} M: DHO {L:6.1f}, measured {Lmeas:6.1f} (from memory); Arrhenius 'degree of dissociation' Lambda/Lambda0 = {alpha_arr:.3f}")
print(" For KCl the fall of Lambda with c is the ionic atmosphere (DHO), not undissociated salt: Arrhenius's alpha = Lambda/Lambda0")
print(" is right for weak electrolytes and wrong for strong ones. [Superseded in part]")
print("\n=== 4. Arrhenius + Ostwald for a weak acid (acetic acid), the surviving case ===")
L0_HAc = lam["H+"] + lam["CH3COO-"]
Ka_lit = 1.75e-5
for cmol, Lmeas in [(0.001, 49.2), (0.01, 16.2), (0.1, 5.2)]:
a = Lmeas / L0_HAc
K = a**2 * cmol / (1 - a)
print(f" c = {cmol:5.3f} M: Lambda = {Lmeas:5.1f} (from memory), alpha = {a:.4f}, K = alpha^2 c/(1-alpha) = {K:.2e} (literature Ka = {Ka_lit:.2e})")
print(" The thermodynamic argument on Whittaker pp. 385-386 (n2^2/n1 ~ V^-1 x f(T), complete dissociation as V -> infinity) is this law. [Confirmed]")
print("\n=== 5. Nernst's concentration cell (pp. 386-389) ===")
RT_F = R * T / F
print(f" RT/F at 25 C = {RT_F*1e3:.3f} mV; per decade of concentration {RT_F*np.log(10)*1e3:.2f} mV (z = 1)")
# Whittaker's formula: E = (RT/nu) (u - v)/(u + v) log(c2/c1). Modern [S]:
# liquid-junction (diffusion) potential of c1 | c2, 1:1 electrolyte: E_j = (t+ - t-) (RT/F) ln(c1/c2) [magnitude (u-v)/(u+v) RT/F ln(c2/c1)]
# concentration cell WITH transference, electrodes reversible to the cation (Helmholtz's Cu|CuSO4(c1)|CuSO4(c2)|Cu):
# E = 2 t- (RT/zF) ln(c2/c1)
# amalgam cell (electrolyte uniform; Whittaker's zinc-amalgam example): E = (RT/zF) ln(c2/c1)
for name, tplus, z in [("KCl (t+ = 0.49)", 0.49, 1), ("CuSO4 (t+ = 0.40, from memory)", 0.40, 2), ("HCl (t+ = 0.82)", 0.82, 1)]:
tminus = 1 - tplus
ratio = 10.0
E_whit = (tplus - tminus) * RT_F / z * np.log(ratio)
E_cell = 2 * tminus * RT_F / z * np.log(ratio)
print(f" {name:32s} c2/c1 = 10: Whittaker's (u-v)/(u+v) factor gives {E_whit*1e3:+7.2f} mV; the cell with cation electrodes gives 2 t- -> {E_cell*1e3:+7.2f} mV")
print(" Whittaker's (u - v)/(u + v) is the diffusion (liquid-junction) potential, which his integration on p. 389 computes;")
print(" the EMF of Helmholtz's copper cell (p. 381) also contains the electrode terms and is 2 t- (RT/zF) ln(c2/c1).")
print(" Helmholtz's own formula in Whittaker's note (p. 383), with the factor (1 - n) = t-, has the right structure. [Error in the application, by this derivation]")
print(f" Amalgam cell (p. 387), z = 2, c2/c1 = 10: E = (RT/2F) ln 10 = {RT_F/2*np.log(10)*1e3:.2f} mV [Confirmed]")
print("\n=== 6. Lippmann's electrocapillary curve (pp. 376-378) ===")
# -d(gamma)/dV = sigma (surface charge); gamma a parabola means constant double-layer capacitance C = -d2 gamma/dV2.
C_dl = 0.20 # F/m^2 (20 microfarad/cm^2, typical of mercury in dilute acid, from memory)
gamma_max = 0.425 # N/m (mercury/water near the maximum, from memory)
for V in [0.2, 0.5, 1.0]:
print(f" {V:3.1f} V from the maximum: sigma = C V = {C_dl*V:.3f} C/m^2 = {C_dl*V*1e6/1e4:.1f} uC/cm^2; gamma drop = C V^2/2 = {0.5*C_dl*V**2:.3f} N/m ({100*0.5*C_dl*V**2/gamma_max:.0f}% of gamma_max)")
print(" Whittaker's 'maximum at about one volt' and 'd2 gamma/dV2 sensibly independent of V' are the constant-capacitance (Helmholtz) layer;")
print(" the modern curve departs from a parabola because the capacitance depends on V (Gouy-Chapman-Stern), from memory. [Credited/Superseded]")
print("\n=== 7. The heat-engine remark (p. 389-390): a concentration cell's work comes from the surroundings' heat ===")
print(" With available energy proportional to T, dE/dT = E/T and the reaction enthalpy is zero: the cell is an isothermal")
print(f" 'heat pump'. For KCl, c2/c1 = 10 at 25 C: E = {2*0.51*RT_F*np.log(10)*1e3:.1f} mV, T dE/dT = E -> heat absorbed per faraday = {2*0.51*RT_F*np.log(10)*F:.0f} J. [Confirmed]")