Lemonergy · Studio block
Reduced PEM fuel-cell stack
Prescribed gas/temperature Nernst potential with activation, ohmic and limiting-current losses plus an identified polarization lag. No humidity, gas-flow or thermal network states.
- Implementation ID
battery-pem-stack- Reviewed
- 2026-10-27
Behavior
Computes a reduced PEM stack polarization from prescribed hydrogen/oxygen pressures and temperature. Nernst potential, activation, ohmic and limiting-current losses determine cell voltage. An identified first-order polarization lag adds dynamics. Faraday balance gives reactant consumption.
Interface
| Name | Direction | Unit | Meaning |
|---|---|---|---|
current | input | A | Stack current; scalar. |
temperature | input | K | Cell temperature; scalar. |
hydrogenPressure | input | Pa | Hydrogen partial pressure; scalar. |
oxygenPressure | input | Pa | Oxygen partial pressure; scalar. |
voltage | output | V | Stack voltage; scalar. |
power | output | W | Electrical output power; scalar. |
heat | output | W | Thermoneutral power difference; scalar. |
hydrogen | output | 1 | Hydrogen consumption (mol/s); scalar. |
oxygen | output | 1 | Oxygen consumption (mol/s); scalar. |
reversible | output | V | Per-cell reversible voltage; scalar. |
polarization | output | V | Per-cell polarization state; scalar. |
activationTarget | output | V | Steady activation loss; scalar. |
concentration | output | V | Concentration loss; scalar. |
Parameters
Defaults are initial model values. Select values for your own model and operating conditions.
| Parameter | Unit | Default | Meaning and limits |
|---|---|---|---|
Number of series cellsseriesCells | 1 | 5 | Number of series cells. This is an editable model input; the default belongs to the synthetic worked example. |
Reference reversible cell voltage (V)reversibleV | V | 1.229 | Reference reversible cell voltage (V). This is an editable model input; the default belongs to the synthetic worked example. |
Reversible-voltage temperature slope (V/K)temperatureSlopeVPerK | V/K | -0.00085 | Reversible-voltage temperature slope (V/K). This is an editable model input; the default belongs to the synthetic worked example. |
Reference temperature (K)referenceTemperatureK | K | 298.15 | Reference temperature (K). This is an editable model input; the default belongs to the synthetic worked example. |
Reference pressure (Pa)referencePressurePa | Pa | 100000 | Reference pressure (Pa). This is an editable model input; the default belongs to the synthetic worked example. |
Liquid-water activitywaterActivity | 1 | 1 | Liquid-water activity. This is an editable model input; the default belongs to the synthetic worked example. |
Per-cell ohmic resistance (Ω)resistanceOhm | Ω | 0.01 | Per-cell ohmic resistance (Ω). This is an editable model input; the default belongs to the synthetic worked example. |
Effective exchange current (A)exchangeCurrentA | A | 1 | Effective exchange current (A). This is an editable model input; the default belongs to the synthetic worked example. |
Limiting current (A)limitingCurrentA | A | 20 | Limiting current (A). This is an editable model input; the default belongs to the synthetic worked example. |
Effective transfer coefficienttransferCoefficient | 1 | 0.5 | Effective transfer coefficient. This is an editable model input; the default belongs to the synthetic worked example. |
Polarization time constant (s)timeConstantS | s | 1 | Polarization time constant (s). This is an editable model input; the default belongs to the synthetic worked example. |
Initial polarization loss (V)initialPolarizationV | V | 0 | Initial polarization loss (V). This is an editable model input; the default belongs to the synthetic worked example. |
Thermoneutral cell voltage (V)thermoneutralV | V | 1.48 | Thermoneutral cell voltage (V). This is an editable model input; the default belongs to the synthetic worked example. |
Equations and rules
Vstack = cells * (E_Nernst - eta_activation - I*R - eta_concentration)tau*deta_activation/dt = eta_steady - eta_activationhydrogen mol/s = cells*I/(2*F)oxygen mol/s = cells*I/(4*F)
Worked example
Reduced PEM fuel-cell stack worked example
Use the defaults below with Stack current = 2 A, Cell temperature = 298.15 K, Hydrogen partial pressure = 100000 Pa, Oxygen partial pressure = 100000 Pa. At 0 s, Stack voltage is 6.038232542 V. Additional checks are listed below.
Open Studio example after release →| Output | Time (s) | Expected value | Unit | Absolute tolerance |
|---|---|---|---|---|
Stack voltagevoltage | 0 | 6.03823254153795 | V | 1e-08 |
Hydrogen consumption (mol/s)hydrogen | 0 | 5.1821348283088646e-05 | 1 | 1e-08 |
Oxygen consumption (mol/s)oxygen | 0 | 2.5910674141544323e-05 | 1 | 1e-08 |
Stack voltagevoltage | 10 | 5.811795216042423 | V | 1e-06 |
Explore the recorded outputs
Reduced PEM fuel-cell stack recorded example
Reduced PEM fuel-cell stack / Stack voltage103 actual recorded samples. Lines are visual guides between samples. Synthetic example, not measured cell data.
Read the selected signal as a table
| Time (s) | Value |
|---|
Download the recorded samples (JSON) · Open this Studio example after release
Use in a workflow
Reduced PEM fuel-cell stack worked example
Prescribed gas/temperature Nernst potential with activation, ohmic and limiting-current losses plus an identified polarization lag. No humidity, gas-flow or thermal network states.
- Reduced PEM fuel-cell stack: Computes a reduced PEM stack polarization from prescribed hydrogen/oxygen pressures and temperature. Nernst potential, activation, ohmic and limiting-current losses determine cell voltage. An identified first-order polarization lag adds dynamics. Faraday balance gives reactant consumption.
- Use the parameter values in the block reference.
- Implementation tested locally; public release pending.
Connected concepts
Limits and interpretation
- Positive gas pressures and temperature are required; current is nonnegative and below the limiting current. No hydration, gas-channel flow, internal thermal or conserving network states. Literature supplies background, not a claim to reproduce a full published model.
- The example verifies numerical behavior for synthetic parameters. Cell characterization and validation for an intended use are separate tasks.
Scientific and mathematical references
These sources explain the scientific and mathematical background. The behavior, interface and limits above define the Lemonergy implementation; a citation does not imply every model option in the source is implemented.
- Non-linear dynamic modeling of proton exchange membrane fuel cell
A. Haddad, R. Bouyekhf, A. El Moudni, M. Wack · Journal of Power Sources · 2006
Technical reference · Primary background on dynamic PEM modeling. The Lemonergy prescribed-gas polarization model is a bounded original reduction and does not reproduce the full model.
- Fuel Cell Handbook, seventh edition
U.S. Department of Energy / National Energy Technology Laboratory · 2004
Technical reference · Thermodynamic potential, polarization losses, Faraday reactant balances and fuel-cell operating principles; chapters 2–3.
Implementation sources
This reference follows the public interface and locally verified numerical checks for an upcoming release.
Contract: Lemonergy Studio public contract · Verification record: verification-2026-10-27
docs/glossary/native-block-verification.json
This implementation and its workflow uses (JSON) · Knowledge graph (JSON-LD)