This work presents an open-source, dynamic, 1D, proton exchange membrane fuel cell model suitable for real-time applications. It estimates the cell voltage based on activation, ohmic and concentration overpotentials and considers water transport through the membrane by means of osmosis, diffusion and hydraulic permeation. Simplified equations reduce the computational load to make it viable for real-time analysis, quick parameter studies and usage in complex systems like complete vehicle models. Two modes of operation for use with or without reference polarization curves allow for a flexible application even without information about cell parameters. The program code is written in MATLAB and provided under the terms and conditions of the Creative Commons Attribution License (CC BY). It is designed to be used inside of a Simulink model, which allows this fuel cell model to be used in a wide variety of 1D simulation platforms by exporting the code as C/C++.
Proton exchange membrane (PEM) fuel cell vehicles require an electrical intermediate storage system to compensate for dynamic load requirements. That storage system uses a battery and has the task to increase tolerance to dynamic operation. In addition, energy can be recuperated and stored in supercapacitors to increase the fuel cell vehicle’s efficiency. To determine the optimal battery capacity according to the recuperation potential and possible use of a supercapacitor, a reference vehicle with PEM fuel cell was transferred to the simulation environmentMatlab/Simulink. The model is based on a cell model describing the electrochemical and physical interactions within the cell. It has been implemented in a complete vehicle model for the representation of a fuel cell vehicle. Various legal driving cycles, such as the WLTP (“Worldwide harmonized Light Vehicles Test Procedure”), were used for the calculations. A further step sets the optimal battery capacity depending on the dynamic of the fuel cell system. With this simulation model, dynamic requirements—for the fuel cell and the associated system components—can be determined in the future, scalable for each vehicle depending on the battery capacity and recuperation potential.
This paper presents a hierarchical model architecture for the analysis and optimization of Fuel Cell Electric Vehicles (FCEVs). The model encompasses the levels of cell, stack, and complete vehicle, which are interconnected through clearly defined transfer parameters. At the cell level, electrochemical and thermodynamic processes are mapped, the results of which are aggregated at the stack level into characteristic maps such as current–voltage curves and efficiency profiles. These maps serve as interfaces to the vehicle level, where the electric powertrain—comprising the fuel cell, energy storage, electric motor, and auxiliary consumers—is integrated. Special attention is given to the trade-off between the lifetime and dynamics of the fuel cell, which is methodically captured through variable parameter vectors. The transfer parameters enable consistent and scalable modelling that considers both detailed cell and stack information as well as vehicle-side requirements. On this basis, various vehicle configurations can be evaluated and optimized with regard to efficiency, lifetime, and drivability.