Skip to content

Electrical double layer ​

Module: sci_form::edl (core since 2026-10-14; alpha::edl re-export) Feature flag: none (core)


Validation and limits ​

QuestionAnswer
Compared withanalytic Gouy-Chapman and Stern closed forms
Measured separationworst deviation 2.0e-14
Confidence region3 temperatures × 3 ionic strengths × 6 potentials/charges
Main limitation1:1 electrolyte, mean-field model, no finite ion size beyond the Stern layer

The raw rows and the exact tolerances are in the full validation matrix.


Overview ​

Continuum models of the electrochemical double layer at charged interfaces: Helmholtz compact layer, Gouy-Chapman diffuse layer, and the combined Gouy-Chapman-Stern (GCS) model, plus coupling adapters to CPM (cpm), EEQ charges (charges_eeq), and ALPB solvation (solvation_alpb).


Theory ​

Gouy-Chapman (1:1 electrolyte) ​

ϕ(x)=2kTzeln⁡1+γe−κx1−γe−κx,γ=tanh⁡zeϕ04kT

with Debye parameter κ−1=ε0εrkT/2c0z2e2NA.

Grahame equation ​

σ=8c0ε0εrkTsinh⁡zeϕd2kT

inverted for the Stern split ϕd=(2kT/ze)asinh(σ/⋯).

Stern series capacitance ​

C−1=CH−1+Cdiff−1,CH=ε0εc/d,Cdiff=ε0εrκcosh⁡zeϕd2kT

API ​

  • compute_helmholtz_profile(σ, config) — compact capacitor.
  • compute_gouy_chapman_profile(φ₀, config) — diffuse layer.
  • compute_gcs_profile(σ, config) — Stern split + series capacitance.
  • compute_edl_profile(x, config) — dispatches on EdlModel.
  • scan_edl_capacitance(σmin, σmax, n, config) — C(σ) curve (even, minimum at σ=0).
  • Couples: compute_alpb_stern_correction, compute_eeq_edl_profile, compute_cpm_helmholtz_scan, couple_cpm_eeq_edl.

Validation (F86, 2026-10-14) ​

External gate tests/alpha_edl_validation.rs (no feature needed) vs scripts/validation/oracle_edl.py (independent numpy implementation of the textbook closed forms in SI): 3 temperatures × 3 ionic strengths × 6 potentials/charges — profiles (φ, E, ρ), Stern split, all three capacitances, worst 2.0e-14 (tolerance 1e-9). Fixture tests/fixtures/validation/edl_analytic.json.


Tests ​

bash
cargo test --test alpha_edl_validation

4 tests in tests/alpha_edl_validation.rs (gate F86) comparing the Gouy-Chapman, Grahame-inverted Stern split, Helmholtz compact capacitor and Stern series capacitance against the analytic closed forms in the fixture tests/fixtures/validation/edl_analytic.json (oracle scripts/validation/oracle_edl.py).

Released under the MIT License.