Voltecx is in beta. The macOS build comes first; Windows and Linux packages are still being tested.Beta. macOS comes first; Windows and Linux are still in testing. What's new
Documentation

Water Electrolyzer (electrolyzer)

A water electrolyzer stack, a load whose voltage rises with current above the reversible voltage of water.

electrolyzer

Component reference · 繁體中文

Group: Sources · Kind: {"kind":"electrolyzer"}

When to use it

Use it as the load of a hydrogen electrolyzer supply: a thyristor or active rectifier, or a DC-DC stage for kiloampere currents. For a load with a fixed back-EMF and resistance, use a DC voltage source with a resistor.

Pins

Pin Domain Meaning
p electrical Positive terminal (anode, O₂ side); the stack current flows in here
n electrical Negative terminal (cathode, H₂ side)

Common parameters

  • ns: Cells in series in the stack (Default: 1)
  • area: Electrode area of one cell (Default: required)
  • temp: Stack temperature (Default: required)
  • erev: Reversible voltage of one cell (Default: 1.229)

Parameters

Key Unit Default Typical range Description
ns — 1 Cells in series in the stack
area m² required Electrode area of one cell
temp °C required Stack temperature
erev V 1.229 Reversible voltage of one cell
r1 Ω·m² 2.18e-4 Ohmic coefficient of the electrolyte and electrodes
r2 Ω·m²/°C -4.25e-7 Change of the ohmic coefficient with temperature
s V 117.93m Activation slope per decade of current
t1 m²/A -145.29m Activation coefficient, constant part
t2 m²·°C/A 11.794 Activation coefficient, part over temperature
t3 m²·°C²/A 395.68 Activation coefficient, part over temperature squared

Parameter descriptions are in English in both languages.

Use for: Thyristor and active rectifier supplies · Power-to-hydrogen plants on renewables

Not for: Making electricity from hydrogen → fuelCell

Formulas

Formula Equation Source
Cell voltage v = Erev + (r1 + r2·T)·j + s·log10((t1 + t2/T + t3/T²)·j + 1) Ulleberg, Int. J. Hydrogen Energy 28(1) (2003), pp. 21-33, cell voltage
Hydrogen made ṅ = ns·i/(2F) Faraday's law of electrolysis; F from CODATA 2018
Stack power P = ns·v·i Hayt, Kemmerly & Durbin, Engineering Circuit Analysis, 8th ed. (2012), ch. 2 (power)

Quick check

Inputs:

  • ns: Cells in series = 20 —, ns
  • area: Electrode area of one cell = 100m m², area
  • temp: Stack temperature = 70 °C, temp
  • erev: Reversible voltage per cell = 1.229 V, erev
  • r1: Ohmic coefficient = 218u Ω·m², r1
  • r2: Ohmic temperature coefficient = -425n Ω·m²/°C, r2
  • s: Activation slope = 117.93m V, s
  • t1: Activation coefficient t1 = -145.29m m²/A, t1
  • t2: Activation coefficient t2 = 11.794 m²·°C/A, t2
  • t3: Activation coefficient t3 = 395.68 m²·°C²/A, t3
  • i: Stack current = 200 A

Outputs:

  • j: Current density = i/area A/m²
  • vohm: Ohmic overvoltage per cell = (r1 + r2*temp)*j V
  • vact: Activation overvoltage per cell = s*log10((t1 + t2/temp + t3/temp^2)*j + 1) V
  • vstack: Stack voltage = ns*(erev + vohm + vact) V
  • pst: Stack power = vstack*i W
  • nh2: Hydrogen made, at a Faraday efficiency of one = ns*i/(2*96485.33212) mol/s

Model logic

  • Each cell needs erev plus an ohmic and an activation overvoltage, both driven by the current density.
  • The activation overvoltage is a diode solved by Newton's method; the temperature is fixed at temp.
  • The hydrogen made follows Faraday's law, two electrons per molecule; gas lost across the separator is not counted.

Model

Each of the ns cells needs erev plus two overvoltages, both driven by the current density j = i / area: the ohmic overvoltage (r1 + r2 * temp) * j and the activation overvoltage s * log10((t1 + t2 / temp + t3 / temp^2) * j + 1), with temp in °C. This is the empirical law of Ulleberg (2003), as written in Cantisani, Dovits and Jørgensen (2024). The concentration overvoltage is left out, as both do for alkaline cells. The activation overvoltage is a diode solved by Newton's method. The current of the part named like the electrolyzer is the current into p. The temperature is fixed at temp.

Common mistakes

  • area and temp have no default, because the published coefficients come with neither; set them for your stack. erev defaults to 1.229 V, the value at 25 °C and 1 atm; it falls as the stack warms, so set it for temp.
  • Below ns * erev the law runs backwards, so a little current, at most the current where the activation term doubles, can flow out of p. A real stack does not drive its supply; a rectifier in front of it blocks this anyway.

Datasheet and sources

Fit r1, r2, s and t1 to t3 to the polarisation curves of the data sheet at two or more temperatures (cell voltage against current density). The defaults are Table I of Cantisani, Dovits and Jørgensen, arXiv:2311.09882v2 (2024), taken from Rizwan, Alstad and Jäschke, Int. J. Hydrogen Energy 46(75) (2021).

Example

Open the example with the command file.openExample and the name demo:electrolyzer.


Generated by cargo xtask reference from the usage texts and parameter specs. Do not edit by hand.