Professional Documents
Culture Documents
Interface Design and Software Development for PEM Fuel Cell Modeling
based on Matlab/Simulink Environment
Abstract—This paper is dealing with the interface design and The voltage overshoots/undershoots are not easy to
software development for proton exchange membrane (PEM) simulated by using a electrochemical model[6] but can be
fuel cell modeling based on Matlab/Simulink environment. modeled by combining a computational fluid dynamics
Three models used in the software, steady-state mode, (CFD) model[7]. This paper have the voltage overshoots/
dynamic model and thermodynamic model, are described
undershoots appearing in the results, which is come from the
first. These models are then implemented through the graphic
user interface (GUI) programming by Simulink, and the combination of the well known electrical dynamic model
simulation results are visualized. There are voltage overshoots/ and the new developed thermodynamic model.
undershoots appearing in the results, which is come from the
combination of electrical dynamic model and thermodynamic II. MODELS OF PEM FUEL CELL
model. For the interface design and software development, a
GUI file(*.fig) is designed in Matlab interactively, a main A. Steady-State Model
program (*.m) is coded using Matlab language, and a The cell voltage of a PEM fuel cell can be represented
Simulink model (*.mdl) is designed based on the fuel cell by a polarization curve, which can be obtained from the
model in the work. The Matlab main program calls Matlab
open circuit voltage E by substituting some polarization
GUI file and Simulink diagram to complete the fuel cell
simulation. The software are applied to PEM fuel cell and losses, such as activation loss Vact , ohmic loss Vohm and
solid oxide fuel cell (SOFC) successfully.
concentration loss Vcon , so we have
Keywords—software development; interface design; fuel cell; V = E − Vact − Vohm − Vcon , (1)
modeling; Matlab; Simulink
where Vact , Vohm and Vcon are in the form of voltage drop
I. INTRODUCTION (better for representing losses). We can also write the cell
The proton exchange membrane (PEM) fuel cell is voltage equation (1) as
widely researched recently for solving the problem of V = E + η act + ηohm + η con , (2)
energy and environment[1]. Three models used in the
software, steady-state mode[2], dynamic model[3] and where η act , η ohm and η con are in the form of voltage gain,
especially thermodynamic model, are fundamental and so we have
important for the simulation. η act = −Vact , ηohm = −Vohm , ηcon = −Vcon . (3)
These models are implemented by Simulink, and the
The open circuit voltage in Equation (2) can be
simulation results are visualized. The activation loss, ohmic
expressed by Nernst potential:
loss and concentration loss can be clearly seen in
polarization curves. Further there are maximum power E = 1.229 − 8.5 × 10 −4 (T − 298.15) + 4.308
points appearing in the P-I curves, which is useful for
maximum power point tracking control of fuel cell[4].
(
× 10−5 T ln pH 2 + 0.5 ln pO2 ) ,
Although Simulink itself is a graphic user interface and the polarization losses are
(GUI) programming environment[5], we need make GUI for η act = −0.9514 + 3.12 ×10 −3 T − 1.87 ×10−4 T ln i
packing Simulink model to let the user more easy to use the ,
software. The Matlab main program calls Matlab GUI file + 7.4 × 10 −5 T ln CO2
and Simulink diagram to complete the fuel cell simulation. ηohm = −iRint and ηcon = B ln (1 − i / ilim ) .
The software are applied to PEM fuel cell and also solid
oxide fuel cell (SOFC) successfully. where T is cell temperature, i is current, ilim is limit
current, and B = 0.016 .
5.08 × 10 ⎝ T ⎠
i
i VI Graph
Current Vohm
sat
The saturation pressure of water pH 2O can be obtained from
T
Vohm
Ohmic Loss
Ra PI Graph
sat −2
log10 p H 2O = −2.18 + 2.95 × 10 TC i Vcon
,
Vcon
T Pstack Power
−5 2 −7 3
− 9.18 × 10 TC + 1.44 × 10 TC Vact0
Concentration Loss
24
Ra
where i T0
T
i Vact0
Ra
Vact
Vcell
PO2 i
B. Dynamic Model T0
i PH2
T Temperature
PH2 E
E-V
T T PO2 PO2
Nernst Potential
E Total Loss
Pressure H2
Partial Pressure
differential equation:
Figure 1. Main simulation system
dVact i Vact
= − , (4)
dt C RaC 3
V +V
1 Integrator
2
Ra
Ra = act 0 con , Product V0
i
Figure 2. Dynamic model subsystem
and Vact 0 = −η act is the steady-state activation loss and is
used as the initial condition of the differential equation. 2
integrator.
3 Subtract s
E-V 1/(mC)
xo
30+273.15 1
C. Thermodynamic Model 10 1 Integrator
T0 T
Tf
T-Tf hA
319
Figure 4. Steady-state voltage of fuel cell Figure 6. Dynamic temperature of fuel cell
Figure 5. Steady-state power of fuel cell Figure 7. Dynamic voltage of fuel cell
320
Figure 8. GUI for a simple fuel cell model
321
[4] Z. D. Zhong, H. B Huo, X. J. Zhu, G. Y. Cao, R. Yuan. Adaptive [6] J. M. Correa, F. A. Farret, L. N. Canha, M. G. Simoes. An
maximum power point tracking control of fuel cell power plants. electrochemical-based fuel-cell model suitable for electrical
Journal of Power Sources 2008, 176 (1), 259-269. engineering automation approach. IEEE Transactions on Industrial
[5] S. Doolla, S. S. Bhat, T. S. Bfiatti, M. Veerachary. A GUI based Electronics 2004, 51 (5), 1103-1112.
simulation of power electronic converters and reactive power [7] K. P. Adzakpa, K. Agbossou, Y. Dube, M. Dostie, M. Fournier, A.
compensators using MATLAB/SIMULINK. IEEE 2004 International Poulin. PEM fuel cells modeling and analysis through current and
Conference on Power System Technology, Singapore, 21-24 voltage transient behaviors. IEEE Transactions on Energy Conversion
November 2004. 2008, 23 (2): 581-591.
322