AlphaPEM: an open-source dynamic 1D physics-based PEM fuel cell model for embedded applications
Raphaël Gass, Zhongliang Li, Rachid Outbib, Samir Jemeï, Daniel Hissel
TL;DR
AlphaPEM addresses the need for fast, physics-based, open-source PEM fuel cell models suitable for embedded control by delivering a 1D dynamic, isothermal, biphasic simulator implemented in Python. It provides real-time access to internal states (e.g., $C_v$, $s$, $\lambda$) and voltage, with automatic calibration of undetermined parameters via a genetic algorithm and the ability to generate polarization and EIS curves using an implicit solver (e.g., solve_ivp with the BDF method). The work demonstrates calibration workflows requiring at least three polarization curves and shows dynamic internal-state tracking under current profiles, enabling model-based control and diagnosis for embedded applications. This open, modular tool supports rapid experimentation and future extensions (heat transport, degradation, 1D+1D, stacks) to advance practical fuel cell management and longevity.
Abstract
The urgency of the energy transition requires improving the performance and longevity of hydrogen technologies. AlphaPEM is a dynamic one-dimensional (1D) physics-based PEM fuel cell system simulator, programmed in Python and experimentally validated. It offers a good balance between accuracy and execution speed. The modular architecture allows for addition of new features, and it has a user-friendly graphical interface. An automatic calibration method is proposed to match the model to the studied fuel cell. The software provides information on the internal states of the system in response to any current density and can produce polarization and EIS curves. AlphaPEM facilitates the use of a model in embedded conditions, allowing real-time modification of the fuel cell's operating conditions.
