Next Article in Journal
An Energy Landscape Treatment of Decoy Selection in Template-Free Protein Structure Prediction
Previous Article in Journal
Modeling the Adaptive Immunity and Both Modes of Transmission in HIV Infection
 
 
Font Type:
Arial Georgia Verdana
Font Size:
Aa Aa Aa
Line Spacing:
Column Width:
Background:
Article

An Open-Source Toolbox for PEM Fuel Cell Simulation

1
International Doctoral Innovation Centre, University of Nottingham Ningbo China, 199 Taikang East Road, Ningbo 315100, China
2
Research Centre for Fluids and Thermal Engineering, University of Nottingham Ningbo China, 199 Taikang East Road; Ningbo 315100, China
3
Fluids & Thermal Engineering Research Group, University of Nottingham, University Park, Nottingham NG7 2RD, UK
4
Department of Chemical and Environmental Engineering, University of Nottingham Ningbo China, Ningbo 315100, China
*
Authors to whom correspondence should be addressed.
Computation 2018, 6(2), 38; https://doi.org/10.3390/computation6020038
Submission received: 30 March 2018 / Revised: 2 May 2018 / Accepted: 2 May 2018 / Published: 10 May 2018
(This article belongs to the Section Computational Engineering)

Abstract

:
In this paper, an open-source toolbox that can be used to accurately predict the distribution of the major physical quantities that are transported within a proton exchange membrane (PEM) fuel cell is presented. The toolbox has been developed using the Open Source Field Operation and Manipulation (OpenFOAM) platform, which is an open-source computational fluid dynamics (CFD) code. The base case results for the distribution of velocity, pressure, chemical species, Nernst potential, current density, and temperature are as expected. The plotted polarization curve was compared to the results from a numerical model and experimental data taken from the literature. The conducted simulations have generated a significant amount of data and information about the transport processes that are involved in the operation of a PEM fuel cell. The key role played by the concentration constant in shaping the cell polarization curve has been explored. The development of the present toolbox is in line with the objectives outlined in the International Energy Agency (IEA, Paris, France) Advanced Fuel Cell Annex 37 that is devoted to developing open-source computational tools to facilitate fuel cell technologies. The work therefore serves as a basis for devising additional features that are not always feasible with a commercial code.

Graphical Abstract

1. Introduction

A proton exchange membrane (PEM) fuel cell is an electrochemical device used to convert the chemical energy of hydrogen into electrical energy, releasing heat in the process while producing water as the only by-product of the electrochemical reactions. It is thus a clean energy technology that has become an attractive option for replacing some of the carbon-based fuel energy systems since fossil fuel resources are increasingly scarce and they produce a significant amount of pollutants [1].
PEM fuel cells have many other advantages apart from being environmentally friendly energy conversion devices. They can directly convert the chemical energy of hydrogen into useful work without undergoing any thermodynamic cycle, resulting in higher efficiencies in direct electrical energy conversion. In addition, they have higher power densities and operate at lower temperatures, making them a suitable choice for automotive power systems, as well as power generation devices for portable electronics and stationary units [1].
Nonetheless, the high manufacturing and performance test costs associated with PEM fuel cell systems constitute a major hurdle for their rapid development in terms of experimental studies. Therefore, many researches on PEM fuel cells have focused on improving the cell performance by maximizing its efficiency while minimizing manufacturing and test costs through CFD techniques [1,2,3,4,5]. Most of the current state of the art work is concerned with the effects of modelling parameters on cell polarization [6,7,8,9,10,11,12,13,14,15,16,17].
As for open-source modelling of PEM fuel cells using OpenFOAM, this paragraph is intended to examine most of the literature’s models, though it is likely that it may not include all the published models. Therefore, only the most pertinent issues that are relevant in the context of the present work are examined. Barreras et al. [18] and Lozano et al. [19] developed two dimensional (2-D) OpenFOAM CFD models for investigating the performance of bipolar plates in PEM fuel cells. Besides being 2-D, these models only consider a single fuel cell component (e.g., bipolar plate). It has been shown that transport in PEM fuel cells is three dimensional (3-D) in nature and requires the coupling of multiple regions in the fuel cell. Mustata et al. [20], Valino et al. [21] and Imbrioscia and Fasoli [22] subsequently presented 3-D OpenFOAM CFD models of bipolar plates. Although their models are 3-D, they are also limited to the bipolar plates, and they do not consider the coupling of transport phenomena in the multiple regions of the fuel cell. Valino et al. [23] introduced a 3-D OpenFOAM model for a complete cell. However, this model assumes an isothermal condition, meaning that the transport of thermal energy is not solved. This can produce results that are not physically representative. It has been shown that the impact of temperature distribution is very significant. In addition, the source codes of these models are not readily available to the public, and thus, like commercial software, they offer no flexibility.
In this work, a 3-D, non-isothermal and single-phase flow OpenFOAM model of a complete cell (including all fuel cell components) is developed. The Nernst equation is used for computing the open-circuit potential as opposed to solving the charge conservation equation for determining the open-circuit potential in the literature models. The work aims to fill the research knowledge gap in comprehensive open-source computational models for PEM fuel cells that are numerically tractable. The model developed partially adapts the open-source computational model of a solid oxide fuel cell (SOFC) presented by [24], to a PEM fuel cell. It varies from the model of [24] because: it is a different type of fuel cell (in a PEM fuel cell, hydrogen protons cross the membrane to the cathode, as opposed to oxygen ions crossing to the anode in SOFC); the geometry is different; the boundary conditions are different; and the electrochemistry is different. Furthermore, this model has been developed using OpenFOAM version 4.0, which has a superior design and far newer functionalities compared to version 2.1.x adopted in [24].

2. Mathematical Model

2.1. Cell Geometry and Transport Processes

A 3D description of the cell geometry along with a mesh can be seen in Figure 1. The geometric dimensions of the components are given in Table 1. The anode and cathode electrodes, which are made up of gas diffusion layers (GDL) and catalyst layers (CL), are separated by a membrane forming the membrane electrode assembly (MEA). The MEA is inserted between two bipolar plates (BP) that accommodate the gas flow channels (GFC). The electrochemical reactions occur on the surface of the CLs where hydrogen fed into the anode GFCs reacts with oxygen that is supplied into the cathode GFCs to undergo chemical-electrical energy conversion.
As illustrated in Figure 2, the computational domain consists of both solid and fluid regions. The solid region is comprised of the membrane and the BPs, whereas the fluid region contains the GFCs, the GDLs, and the CLs. The reactant gases and the product water are transported within the fluid region. The porous electrodes carry the heat released by the electrochemical reactions to the cooling system through the BPs. Therefore, the field variables that need to be solved in these regions are different. The solid is governed by the conservation of energy, whereas the fluid is governed by the conservations of mass, momentum, chemical species, and energy.
In the numerical model presented in this work, the conservation equations are coupled with the solution of the Nernst equation. In other words, the transport of mass, momentum, and chemical species are coupled with electrochemical reactions to create a more tractable numerical model. The energy equation solved in the solid region is coupled with the energy solutions in the fluid region.

2.2. Assumptions

Steady-state operating condition is assumed, with the gas flow considered to be laminar and incompressible due to low velocities. The individual gases and the gas mixture are considered as ideal gases. The fuel cell components are assumed to be isotropic and homogeneous. The membrane is assumed to be fully humidified and impermeable to reactant gases [26]. The electrochemical reactions are assumed to occur at the cathode electrode-membrane interface [24]. The anode’s activation and mass transport overpotentials are taken as negligible [26]. Ohmic heating in the bipolar plates is neglected due to high heat conductivity and the electrical potential distribution is taken as constant within the bipolar plates due to high electrical conductivity of the bipolar plate material [27,28]. The outer walls of the entire cell are taken as impassable to heat [24].

2.3. Governing Equations

Mass conservation:
𝛻 · ( ρ U ) = 0
Momentum conservation:
𝛻 · ( ρ U U ) = 𝛻 p + 𝛻 · ( μ 𝛻 U ) + S M
where the momentum source term SM, is equal to zero in the gas flow channels and to the Darcy resistance in the porous media, given by:
S M = μ U K
Chemical species conservation:
𝛻 · ( ρ U y i ) = ( 𝛻 · ρ D 𝛻 y i )
where the mass fraction of the inert species is calculated using the sum of the other species ( 1 i = 1 n 1 y i ) .
Energy conservation:
𝛻 · ( ρ c p U T ) = 𝛻 · ( k 𝛻 T ) + S E
where the energy source term SE, is essentially due to the heat released by the electrochemical reaction determined by:
S E = I δ M E A ( η T Δ S n i F )
The cell voltage:
V c e l l = E N e r n s t η a c t η o h m η c o n
Additional constitutive relations for linking the various physical quantities are given in Table 2.

2.4. Boundary Conditions

The boundary and initial values are given in Table 3. The inlet values for velocity, temperature, and mass fractions are given at the fluid inlets. Air and fuel inlet velocities are calculated according to [36]
U | i n l e t   = ξ I n F A M E A 1 x i R T p 1 A c h
The outlet pressure value is prescribed at the outlet of both the anode and the cathode gas flow channels. For all other variables, Neumann boundary conditions are applied at the fluid outlets. Impermeability conditions are specified for mass and species flow at the membrane-fluid interfaces. Impermeability, no-slip, and no-flux boundary conditions are applied at all the internal surfaces within the modelling domain. A temperature of zero-gradient is applied at all the external surfaces.

3. Numerical Implementation

3.1. Computational Procedure

The flow diagram of the solution procedure is shown in Figure 3. The initialization phase is followed by an iteration loop where several calculations are repeated until convergence. For the potentiostatic (i.e., current density calculation) run, the cell voltage is fixed whereas for the galvanostatic (i.e., voltage calculation) run, it is adjusted until the computed mean current density is equal or very close to its initial value.
The physical constants and properties at cell operating temperature are given in Table 4. The electrochemical parameters and properties used are given in Table 5. The case study operating conditions for the simulation campaign are summarized in Table 6.

3.2. Toolbox Structure

The present toolbox follows the same structure and organization as OpenFOAM, as depicted in Figure 4. OpenFOAM is essentially a C++ library with its components falling into two main categories: solvers and utilities. Users can customize any existing components to suit their needs although this requires a good understanding of the software structure, as well as the programming techniques involved. One shortcoming of the OpenFOAM software package is that it has no PEM fuel cell module. Thus, the toolbox developed here provides remediation for this situation. It has two major components: pemfcSinglephaseNonIsothermalSolver and run.

3.2.1. PemfcSinglephaseNonIsothermalSolver

The pemfcSinglephaseNonIsothermalSolver folder contains the source code for the solver and libraries. A pemfcSinglephaseNonIsothermalSolver.c file that contains the main loop of the program is stored in the applications sub-folder. The lib sub-folder is where all necessary libraries are stored and compiled. These include, amongst other things, classes for multicomponent gas diffusivities, geometry, and mesh manipulation. The src sub-folder stores various program files containing specific instructions for the initialization phase and algorithms for solving field variables in the main loop. The individual solvers and other algorithmic controls and tolerances for these field variables are defined in the fvSolution files present in the system sub-folder of the run folder.

3.2.2. Run

The run folder contains the constructed simulation case. An OpenFOAM case folder usually contains three main sub-folders that store several files necessary to running OpenFOAM applications. The 0 sub-folder is a time sub-folder that stores the initial field data. In OpenFOAM, the time sub-folders store all the field data at various times; the name of each sub-folder corresponds to the time at which the simulation data were written. The data for the geometry construction and mesh creation are stored in the config sub-folder. The constant sub-folder contains a sub-sub-folder called polyMesh in which the mesh information and boundary condition files are stored, along with the physical property file. The files for the solution control, scheme and solvers are stored in the system sub-folder.

4. Model Verification

4.1. Mesh Independence Study

To prove that the solution is independent from the mesh, a mesh independence study was conducted. This required refining the case study mesh twice by adding an extra 20% and 40% of the cells in every direction. Simulations at the case study conditions were then run with these refined meshes in order to compare the solutions for the temperature field. The numerical results, shown in Table 7, showed that the maximum change of temperature solution is 0.03% for the compared meshes. This is evidence of the independence of the solution from the grid.

4.2. Comparison with Literature Model Results and Experimental Data

The cell voltage drop per current density, also known as polarization curve, is plotted in Figure 5. Since the present single-phase flow model has been run with some of the parameters and properties taken from the multiphase flow model introduced by Yuan et al. [38] (as given in Table 8), the results are therefore compared to the numerical model results and experimental data from Yuan et al. [38]. This also required adjusting other parameters such as the charge transfer coefficient and the reference exchange current density to achieve a good agreement between the models (see Table 8). A direct comparison is problematic given some differences in the modelling approaches, as well as cell geometric dimensions and operating condition parameters and properties (see Table 8). But the polarization curves nonetheless follow similar trends as seen in Figure 5, which confirms the trend in cell voltage drop obtained with the developed OpenFOAM model. However, this work does not account for liquid water effects in the fuel cell, which would have resulted in further potential drop, as accounted for in the multiphase flow model in [38]. Furthermore, the difference between the three curves at high current densities is due to, in addition to other factors, the complex conjunction of the effects of the inlet flow rates, the cell design details and properties (e.g., number of gas flow channels in each electrode, electrode porosity, material properties, etc., see Table 8), and the concentration overpotential. In fact, the result indicates that the impact of the chosen concentration constant on the concentration overpotential is very significant. Hence, optimization of this value would play a key role in shaping the cell I-V curve since the curvature in the high current densities zone is determined by the changes in the concentration overpotential.

5. Case Study Results and Discussion

The results are post-processed and visualized using ParaView, which is an open source visualization software used for postprocessing in OpenFOAM through the paraFoam utility, supplied with OpenFOAM.
The velocity profiles along the gas flow channels for the fuel and air are displayed in Figure 6a,b, respectively. These are consistent with those seen in fully-developed laminar flow. The highest velocity appears at the center lines of the channels and the lowest velocity is seen at the walls.
The pressure in the fuel and air side gas flow channels are illustrated in Figure 7a,b, respectively. A pressure drop occurs at the outlets of the channels as the velocity increases in these areas as shown in Figure 8 and Figure 9.
The distribution of hydrogen and oxygen mass fractions are shown in Figure 10a,b, respectively. The consumption of the reactant gases by the electrochemical reaction leads to a decrease in their mass fractions going from inlet to outlet and from the GFCs to the CLs. There is a direct proportionality between the concentration of reactant gases in the electrodes and the pressure (see Figure 11 and Figure 12).
The distribution of Nernst potential is illustrated in Figure 13a. The combined effects of hydrogen depletion in the anode and water vapor production in the cathode cause the Nernst potential to decline from inlet to outlet. Consequently, the observed local current density as shown in Figure 13b, also decreases in the flow direction. The current density sharply decreases towards the corner edges of the cell outlet where there is no active surface. The distribution of the local temperature is displayed in Figure 13c. The non-uniform nature of the temperature field is due to thermal inactivity at the ribs. This reduces the heat released by the electrochemical reaction in these areas, which in turn lowers the current densities due to reduced mass transfer.

6. Conclusions and Outlook

An open-source code toolbox capable of accurately predicting the distribution of the major physical quantities that are transported within a PEM fuel cell has been created using OpenFOAM. The toolbox can be used to rapidly gain important insights into the cell working processes that are essential for design optimization. It consists of a main program, relevant library classes, and a constructed simulation case for a co-flow galvanostatic run.
The base case results for the distribution of velocity, pressure, chemical species, Nernst potential, current density, and temperature are as expected. The results of a mesh independence investigation revealed that the solution is independent from the grid. The plotted cell polarization curve was compared to the available experimental data and numerical model results taken from the literature, though a direct comparison seems difficult because of the differences in the modelling approaches, as well as cell geometric dimensions and operating condition parameters and properties. The obtained simulation data can provide crucial information about the major transport processes that take place within a PEM fuel cell.
The model that has been created can, by no means, be considered complete. There are still some improvements that can be made in the context of the present study. Liquid water transport has not been considered, and so far, the transport phenomena inside the membrane (e.g., dissolved water transport) have been simplified. Also, for the sake of simplicity, and to facilitate the numerical implementation, the electrochemical reaction has been assumed to take place at a single interface between the cathode catalyst layer and the membrane.
The present tool can provide a foundation for further development that is not always feasible with commercial code. The source code is available at http://dx.doi.org/10.17632/3gz7pxznzn.1. Future work may include a multiphase flow extension, and or improved catalyst and membrane models, as well as performing a detailed sensitivity analysis for a deeper understanding of the modelling choices. Moreover, experimental test of the fuel cell used in the case study will be conducted in the future to validate the results obtained here from CFD simulation.

Author Contributions

Conceptualization, J.-P.K.; Methodology, J.-P.K. and X.Z.; Software, J.-P.K.; Validation, J.-P.K., X.Z. and Y.Y.; Formal Analysis, J.-P.K. and S.A.; Investigation, J.-P.K.; Resources, X.Z.; Data Curation, J.-P.K.; Writing-Original Draft Preparation, J.-P.K.; Writing-Review & Editing, X.Z. and S.A.; Visualization, J.-P.K.; Supervision, X.Z. and Y.Y.; Project Administration, J.-P.K. and S.A.; Funding Acquisition, X.Z.

Funding

This research was funded by [UK Engineering and Physical Sciences Research Council] grant number [EP/G037345/1 and EP/L016362/1] and [Ningbo Science and Technology Bureau Technology Innovation Team] grant number [No. 2016B10010].

Acknowledgments

The authors acknowledge the financial and administrative support from the International Doctoral Innovation Centre, Ningbo Education Bureau, Ningbo Science and Technology Bureau, and the University of Nottingham. This work was also supported by the Faculty of Science and Engineering at University of Nottingham Ningbo China (SRG code 01.03.05.04.2015.02.001), Ningbo Natural Science Foundation Program (project code 2013A610107), Zhejiang Natural Science Foundation (project code LY18E060004).

Conflicts of Interest

The authors declare no conflict of interest. The founding bodies had no role in the design of the study, collection, analyses, interpretation of data; writing of the manuscript, and in the decision to publish the results.

List of Symbols

Aarea, m2
Cconcentration, mol m−3
cpspecific heat capacity, J kg−1 K−1
ddiameter, m
Ddiffusivity, m2 s−1
Epotential, V
FFaraday’s constant, 96,485 C mol−1 e
ΔGGibbs free energy, kJ mol−1
Hlatent heat, J kg−1
ΔHenthalpy of formation, J mol−1
Icurrent density, A m−2
I0exchange current density, A m−2
kthermal conductivity, W m−1 K−1
Kpermeability, m2
Mmolar mass, kg kmol−1
ninumber of electron of species i
ppressure, Pa
Runiversal gas constant, 8.314 J mol−1 K−1
Rarea specific resistance, Ω m2
∆Sentropy of formation, J mol−1 K−1
Ttemperature, K
U velocity vector, m s−1
vdiffusion volume, m3
Vvoltage, V
ymass fraction
xmole fraction
znumber of electron transferred
Greek letters
αcharge transfer coefficient
δthickness, m
εporosity
ηoverpotential, V
μdynamic viscosity, Pa s
ξstoichiometric ratio
ρdensity, kg m−3
σeelectrical conductivity, S m−1
σiionic conductivity, S m−1
τtortuosity
Subscripts and superscripts
actactivation
ccathode
chchannel
conconcentration
Eenergy
effeffective
H2hydrogen
H2Owater
ispecies i
jspecies j
knudKnudsen
Llimiting
Mmomentum
MEAmembrane electrode assembly
MEMmembrane
mixmixture
N2nitrogen
O2oxygen
ohmohmic
ppore
refreference
satsaturation
WVwater vapor

References

  1. Kone, J.P.; Zhang, X.; Yan, Y.; Hu, G.; Ahmadi, G. Three-dimensional multiphase flow computational fluid dynamics models for proton exchange membrane fuel cell: A theoretical development. J. Comput. Multiph. Flows 2017, 9, 3–25. [Google Scholar] [CrossRef]
  2. Wu, H.W. A review of recent development: Transport and performance modeling of pem fuel cells. Appl. Energy 2016, 165, 81–106. [Google Scholar] [CrossRef]
  3. Ferreira, R.B.; Falcao, D.S.; Oliveira, V.B.; Pinto, A. Numerical simulations of two-phase flow in proton exchange membrane fuel cells using the volume of fluid method—A review. J. Power Sources 2015, 277, 329–342. [Google Scholar] [CrossRef]
  4. Weber, A.Z.; Borup, R.L.; Darling, R.M.; Das, P.K.; Dursch, T.J.; Gu, W.B.; Harvey, D.; Kusoglu, A.; Litster, S.; Mench, M.M.; et al. A critical review of modeling transport phenomena in polymer-electrolyte fuel cells. J. Electrochem. Soc. 2014, 161, F1254–F1299. [Google Scholar] [CrossRef]
  5. Wilberforce, T.; El-Hassan, Z.; Khatib, F.N.; Al Makky, A.; Mooney, J.; Barouaji, A.; Carton, J.G.; Olabi, A.G. Development of bi-polar plate design of pem fuel cell using cfd techniques. Int. J. Hydrogen Energy 2017, 42, 25663–25685. [Google Scholar] [CrossRef]
  6. Zhao, D.D.; Dou, M.F.; Zhou, D.M.; Gao, F. Study of the modeling parameter effects on the polarization characteristics of the pem fuel cell. Int. J. Hydrogen Energy 2016, 41, 22316–22327. [Google Scholar] [CrossRef]
  7. Laoun, B.; Naceur, M.W.; Khellaf, A.; Kannan, A.M. Global sensitivity analysis of proton exchange membrane fuel cell model. Int. J. Hydrogen Energy 2016, 41, 9521–9528. [Google Scholar] [CrossRef]
  8. Khazaee, I.; Sabadbafan, H. Effect of humidity content and direction of the flow of reactant gases on water management in the 4-serpentine and 1-serpentine flow channel in a pem (proton exchange membrane) fuel cell. Energy 2016, 101, 252–265. [Google Scholar] [CrossRef]
  9. Xing, L.; Cai, Q.; Xu, C.X.; Liu, C.B.; Scott, K.; Yan, Y.S. Numerical study of the effect of relative humidity and stoichiometric flow ratio on pem (proton exchange membrane) fuel cell performance with various channel lengths: An anode partial flooding modelling. Energy 2016, 106, 631–645. [Google Scholar] [CrossRef]
  10. Sezgin, B.; Caglayan, D.G.; Devrim, Y.; Steenberg, T.; Eroglu, I. Modeling and sensitivity analysis of high temperature pem fuel cells by using comsol multiphysics. Int. J. Hydrogen Energy 2016, 41, 10001–10009. [Google Scholar] [CrossRef]
  11. Ozen, D.N.; Timurkutluk, B.; Altinisik, K. Effects of operation temperature and reactant gas humidity levels on performance of pem fuel cells. Renew. Sustain. Energy Rev. 2016, 59, 1298–1306. [Google Scholar] [CrossRef]
  12. Osanloo, B.; Mohammadi-Ahmar, A.; Solati, A. A numerical analysis on the effect of different architectures of membrane, cl and gdl layers on the power and reactant transportation in the square tubular pemfc. Int. J. Hydrogen Energy 2016, 41, 10844–10853. [Google Scholar] [CrossRef]
  13. Khazaee, I.; Sabadbafan, H. Numerical study of changing the geometry of the flow field of a pem fuel cell. Heat Mass Transf. 2016, 52, 993–1003. [Google Scholar] [CrossRef]
  14. Velisala, V.; Srinivasulu, G.N. Numerical simulation and experimental comparison of single, double and triple serpentine flow channel configuration on performance of a pem fuel cell. Arab. J. Sci. Eng. 2018, 43, 1225–1234. [Google Scholar] [CrossRef]
  15. Wang, Y.L.; Wang, S.X.; Wang, G.Z.; Yue, L.K. Numerical study of a new cathode flow-field design with a sub-channel for a parallel flow-field polymer electrolyte membrane fuel cell. Int. J. Hydrogen Energy 2018, 43, 2359–2368. [Google Scholar] [CrossRef]
  16. Ashrafi, M.; Shams, M. The effects of flow-field orientation on water management in pem fuel cells with serpentine channels. Appl. Energy 2017, 208, 1083–1096. [Google Scholar] [CrossRef]
  17. Zehtabiyan-Rezaie, N.; Arefian, A.; Kermani, M.J.; Noughabi, A.K.; Abdollahzadeh, M. Effect of flow field with converging and diverging channels on proton exchange membrane fuel cell performance. Energy Convers. Manag. 2017, 152, 31–44. [Google Scholar] [CrossRef]
  18. Barreras, F.; Lozano, A.; Valino, L.; Mustafa, R.; Marin, C. Fluid dynamics performance of different bipolar plates—Part I. Velocity and pressure fields. J. Power Sources 2008, 175, 841–850. [Google Scholar] [CrossRef]
  19. Lozano, A.; Valino, L.; Barreras, F.; Mustata, R. Fluid dynamics performance of different bipolar plates—Part II. Flow through the diffusion layer. J. Power Sources 2008, 179, 711–722. [Google Scholar] [CrossRef]
  20. Mustata, R.; Valino, L.; Barreras, F.; Gil, M.I.; Lozano, A. Study of the distribution of air flow in a proton exchange membrane fuel cell stack. J. Power Sources 2009, 192, 185–189. [Google Scholar] [CrossRef]
  21. Valino, L.; Mustata, R.; Gil, M.I.; Martin, J. Effect of the relative position of oxygen-hydrogen plate channels and inlets on a pemfc. Int. J. Hydrogen Energy 2010, 35, 11425–11436. [Google Scholar] [CrossRef]
  22. Imbrioscia, G.M.; Fasoli, H.J. Simulation and study of proposed modifications over straight-parallel flow field design. Int. J. Hydrogen Energy 2014, 39, 8861–8867. [Google Scholar] [CrossRef]
  23. Valino, L.; Mustata, R.; Duenas, L. Consistent modeling of a single pem fuel cell using onsager’s principle. Int. J. Hydrogen Energy 2014, 39, 4030–4036. [Google Scholar] [CrossRef]
  24. Beale, S.B.; Choi, H.-W.; Pharoah, J.G.; Roth, H.K.; Jasak, H.; Jeon, D.H. Open-source computational model of a solid oxide fuel cell. Comput. Phys. Commun. 2016, 200, 15–26. [Google Scholar] [CrossRef]
  25. Kone, J.P.; Zhang, X.; Yan, Y.; Hu, G.; Ahmadi, G. CFD Modeling and Simulation of Pem Fuel Cell Using Openfoam. In Proceedings of the Applied Energy Symposium and Forum, REM2017: Renewable Energy Integration with Mini/Microgrid, Tianjin, China, 18–20 October 2017. [Google Scholar]
  26. Barbir, F. Pem Fuel Cells: Theory and Practice; Elsevier Academic: Amsterdam, The Netherlands; London, UK, 2005; p. 15. 433p. [Google Scholar]
  27. Sivertsen, B.R.; Djilali, N. Cfd-based modelling of proton exchange membrane fuel cells. J. Power Sources 2005, 141, 65–78. [Google Scholar] [CrossRef]
  28. Ju, H.; Meng, H.; Wang, C.Y. A single-phase, non-isothermal model for pem fuel cells. Int. J. Heat Mass Transf. 2005, 48, 1303–1315. [Google Scholar] [CrossRef]
  29. Poling, B.E.; Prausnitz, J.M.; O’Connell, J.P. The Properties of Gases and Liquids, 5th ed.; McGraw-Hill: New York, NY, USA, 2000. [Google Scholar]
  30. Fairbanks, D.F.; Wilke, C.R. Diffusion coefficients in multicomponent gas mixtures. Ind. Eng. Chem. 1950, 42, 471–475. [Google Scholar] [CrossRef]
  31. Welty, J.R.; Wicks, C.E.; Wilson, R.E.; Rorrer, G.L. Fundamentals of Momentum, Heat, and Mass Transfer, 5th ed.; Wiley: Hoboken, NJ, USA, 2008. [Google Scholar]
  32. Geankoplis, C.J. Transport Processes and Unit Operations, 3rd ed.; Prentice-Hall: Upper Saddle River, NJ, USA, 1993. [Google Scholar]
  33. Springer, T.E.; Zawodzinski, T.A.; Gottesfeld, S. Polymer electrolyte fuel-cell model. J. Electrochem. Soc. 1991, 138, 2334–2342. [Google Scholar] [CrossRef]
  34. O’Hayre, R.P.; Cha, S.-W.; Colella, W.; Prinz, F.B. Fuel Cell Fundamentals; John Wiley & Sons: Hoboken, NJ, USA, 2006. [Google Scholar]
  35. Wang, Y.; Chen, K.S.; Cho, S.C. Pem Fuel Cells:hermal and Water Management Fundamentals; Momentum Press: New York, NY, USA, 2013. [Google Scholar]
  36. Liu, Z. Fuel Cell Performance; Nova Science Publishers: New York, NY, USA, 2012; p. 10. 284p. [Google Scholar]
  37. Chang, R.; Goldsby, K.A. General Chemistry: The Essential Concepts; McGraw-Hill: New York, NY, USA, 2014. [Google Scholar]
  38. Yuan, W.; Tang, Y.; Pan, M.Q.; Li, Z.T.; Tang, B. Model prediction of effects of operating parameters on proton exchange membrane fuel cell performance. Renew. Energy 2010, 35, 656–666. [Google Scholar] [CrossRef]
  39. Todd, B.; Young, J.B. Thermodynamic and transport properties of gases for use in solid oxide fuel cell modelling. J. Power Sources 2002, 110, 186–200. [Google Scholar] [CrossRef]
  40. Yaws, C.L. Yaws’ Critical Property Data for Chemical Engineers and Chemists; Knovel: New York, NY, USA, 2012. [Google Scholar]
  41. Parthasarathy, A.; Dave, B.; Srinivasan, S.; Appleby, A.J.; Martin, C.R. The platinum microelectrode nafion interface—An electrochemical impedance spectroscopic analysis of oxygen reduction kinetics and nafion characteristics. J. Electrochem. Soc. 1992, 139, 1634–1641. [Google Scholar] [CrossRef]
  42. Yaws, C.L. Yaws’ Handbook of Thermodynamic Properties for Hydrocarbons and Chemicals; Knovel: New York, NY, USA, 2009. [Google Scholar]
  43. Fuller, E.N.; Schettle, P.D.; Giddings, J.C. A new method for prediction of binary gas-phase diffusion coeffecients. Ind. Eng. Chem. 1966, 58, 19–27. [Google Scholar]
  44. Fuller, E.N.; Ensley, K.; Giddings, J.C. Diffusion of halogenated hydrocarbons in helium. Effect of structure on collision cross sections. J. Phys. Chem. 1969, 73, 3679–3685. [Google Scholar] [CrossRef]
Figure 1. Geometry and mesh of a single cell proton exchange membrane (PEM) fuel cell.
Figure 1. Geometry and mesh of a single cell proton exchange membrane (PEM) fuel cell.
Computation 06 00038 g001
Figure 2. Transport processes in a PEM fuel cell.
Figure 2. Transport processes in a PEM fuel cell.
Computation 06 00038 g002
Figure 3. Flow diagram of the solution procedure.
Figure 3. Flow diagram of the solution procedure.
Computation 06 00038 g003
Figure 4. File structure of the toolbox.
Figure 4. File structure of the toolbox.
Computation 06 00038 g004
Figure 5. Cell polarization curve compared to the literature model and experimental data.
Figure 5. Cell polarization curve compared to the literature model and experimental data.
Computation 06 00038 g005
Figure 6. Velocity profiles along the gas flow channels: (a) Fuel; (b) Air.
Figure 6. Velocity profiles along the gas flow channels: (a) Fuel; (b) Air.
Computation 06 00038 g006
Figure 7. Pressure distribution in the gas flow channels: (a) Fuel; (b) Air.
Figure 7. Pressure distribution in the gas flow channels: (a) Fuel; (b) Air.
Computation 06 00038 g007
Figure 8. Fuel velocity vs. fuel pressure.
Figure 8. Fuel velocity vs. fuel pressure.
Computation 06 00038 g008
Figure 9. Air velocity vs. air pressure.
Figure 9. Air velocity vs. air pressure.
Computation 06 00038 g009
Figure 10. Species mass fraction distribution: (a) Hydrogen; (b) Oxygen.
Figure 10. Species mass fraction distribution: (a) Hydrogen; (b) Oxygen.
Computation 06 00038 g010
Figure 11. Hydrogen mass fraction vs. fuel pressure.
Figure 11. Hydrogen mass fraction vs. fuel pressure.
Computation 06 00038 g011
Figure 12. Oxygen mass fraction vs. air pressure.
Figure 12. Oxygen mass fraction vs. air pressure.
Computation 06 00038 g012
Figure 13. Membrane cathode interface showing the distribution of: (a) Nernst potential; (b) Local current density; (c) Temperature.
Figure 13. Membrane cathode interface showing the distribution of: (a) Nernst potential; (b) Local current density; (c) Temperature.
Computation 06 00038 g013
Table 1. The cell geometric dimensions [25].
Table 1. The cell geometric dimensions [25].
BPGFCGDLCLMembrane
x-width (mm)31.50.410.00370.127
y-height (mm)222222222
z-length (mm)2222222222
Table 2. Constitutive equations.
Table 2. Constitutive equations.
DescriptionSymbolExpressionSource
Gas densityρ p R T y i / M i -
Mole fractionxi y i M i y j / M j -
Specific heat capacitycp c p m o l 10 3 y i M i -
Thermal conductivityk i = 1 n x i k i j = 1 n x i A i j [29]
Diffusivity of gas species i Di-mix 1 x i j i x j D j i [30]
Effective global diffusivity D i e f f 1 D i m i x e f f + 1 D i K n u d e f f [31]
Effective species diffusivity D i m i x e f f ε τ D i m i x [31]
Effective Knudsen diffusivity D i K n u d e f f ε τ D i K n u d [31]
Knudsen diffusion coefficientDi-Knud 97 × d p 2 ( T M i ) 1 / 2 [32]
Nernst potentialENernst E 0 + R T z F ln Q -
Area specific resistanceR 0 δ M E M d x σ i [ λ ( x ) ] + 2 δ σ e + R B P + R C [33]
Membrane ionic conductivityσi ( 0.5139 λ 0.326 ) e x p ( 1268 × ( 1 303 1 T ) ) [33]
Membrane water contentλ { 0.043 + 17.18 a 39.85 a 2 + 36 a 3 ( 0 < a < 1 ) 14 + 1.4 ( a 1 ) ( 1 a 3 ) [33]
Water vapor activitya x W V × p p s a t [33]
Saturation pressure log p s a t 2.1794 + 0.02953 ( T 273.15 ) 9.1837 × 10 5 ( T 273.15 ) 2 + 1.4454 × 10 7 ( T 273.15 ) 3 [33]
Activation overpotentialηact R T α F ln ( I I 0 ) [26]
Ohmic overpotentialηohm R Ω I [26]
Concentration overpotentialηcon c ln ( I L I L I ) [34]
Concentration constantc R T n F ( 1 + 1 α ) [34]
Limiting current densityIL n F D C δ [26]
Cathode exchange current densityI0,C I 0 r e f e x p [ E a c t R ( 1 T 1 353.15 ) ] [35]
Species mass flux m ˙ i = ± I M i n i F [26]
Table 3. Boundary and initial values.
Table 3. Boundary and initial values.
EquationsAnode InletAnode OutletCathode InletCathode OutletWalls
MomentumUfuel = 1.1055 m s−1pfuel = 101,325 PaUair = 3.082 m s−1pair = 101,325 PaU = 0
Species transport y H 2 = 0.2
y H 2 O = 0.8
𝛻 y H 2 = 0
𝛻 y H 2 O = 0
y O 2 = 0.2
y H 2 O = 0.15
y N 2 = 0.65
𝛻 y O 2 = 0
𝛻 y H 2 O = 0
𝛻 y N 2 = 0 .
𝛻 y = 0
EnergyT = 353 K 𝛻 T = 0 T = 353 K 𝛻 T = 0 𝛻 T = 0
Table 4. Physical constants and properties at 353 K.
Table 4. Physical constants and properties at 353 K.
Parameter or PropertySymbolValueUnitSource
Density of airρair0.914kg m−3Calculated [37]
Density of fuelρfuel0.2404kg m−3Calculated [37]
Density of membraneρMEM1980kg m−3[38]
Density of BPρBP1880kg m−3[38]
Isobaric heat capacity of aircp,air1108.85J kg−1 K−1Calculated [39]
Isobaric heat capacity of fuelcp,fuel2062.74J kg−1 K−1Calculated [39]
Isobaric heat capacity of GDLcp,GDL710J kg−1 K−1[38]
Isobaric heat capacity of CLcp,CL710J kg−1 K−1[38]
Isobaric heat capacity of membranecp,MEM2000J kg−1 K−1[38]
Isobaric heat capacity of BPcp,BP875J kg−1 K−1[38]
Thermal conductivity of airkair0.02867W m−1 K−1Calculated [29,39]
Thermal conductivity of fuelkfuel0.08396W m−1 K−1Calculated [29,39]
Thermal conductivity of GDLkGDL1.6W m−1 K−1[38]
Thermal conductivity of CLkCL8W m−1 K−1[38]
Thermal conductivity of membranekMEM0.67W m−1 K−1[38]
Thermal conductivity of BPkBP10.7W m−1 K−1[38]
Electronic conductivity of GDLσe,GDL5000S m−1[38]
Electronic conductivity of CLσe,CL1000S m−1[38]
Electronic conductivity of BPσe,BP8.3 × 104S m−1[38]
Dynamic viscosity of airμair1.5158 × 10−5Pa sCalculated [29,39,40]
Dynamic viscosity of fuelμfuel1.5 × 10−5Pa sCalculated [29,39,40]
Table 5. Electrochemical parameters and properties.
Table 5. Electrochemical parameters and properties.
Parameter or PropertySymbolValueUnitSource
Cathode charge transfer coefficientαc1.0--
Cathode activation energyEact,c73,220.0J mol−1[41]
Reference exchange current density I 0 r e f 0.0139A m−2[41]
Enthalpy of formation of water vapor Δ H H 2 O −241.826 × 103J mol−1[42]
Standard entropy of hydrogen S H 2 130.68J mol−1 K−1[42]
Standard entropy of oxygen S O 2 205.152J mol−1 K−1[42]
Standard entropy of nitrogen S N 2 191.609J mol−1 K−1[42]
Standard entropy of water vapor S H 2 O 188.835J mol−1 K−1[42]
Table 6. Case study operating conditions.
Table 6. Case study operating conditions.
VariableSymbolValueUnitSource
Cell voltageV0.6V-
Cell temperatureTcell353K-
Air pressurepair101,325Pa-
Fuel pressurepfuel101,325Pa-
Air velocityUair3.082m s−1Calculated [36]
Fuel velocityUfuel1.1055m s−1Calculated [36]
Permeability of porous electrodesK1.0 × 10−11m2-
O2 fixed diffusivity in air mixture D O 2 , a i r 2.939 × 10−5m2 s−1Calculated [30,43,44]
Effective O2 fixed diffusivity in air in GDL D O 2 ,   G D L e f f 9.732 × 10−6m2 s−1Calculated [30,31,32,43,44]
Effective O2 fixed diffusivity in air in CL D O 2 ,   C L e f f 7.785 × 10−6m2 s−1Calculated [30,31,32,43,44]
H2 fixed diffusivity in fuel mixture D H 2 ,   f u e l 0.122 × 10−3m2 s−1Calculated [30,43,44]
Effective H2 fixed diffusivity in fuel in GDL D H 2 ,   G D L e f f 4.031 × 10−5m2 s−1Calculated [30,31,32,43,44]
Effective H2 fixed diffusivity in fuel in CL D H 2 ,   C L e f f 1.252 × 10−5m2 s−1Calculated [30,31,32,43,44]
Mass fraction of O2 y O 2 0.2--
Mass fraction of air H2O y H 2 O 0.15--
Mass fraction of N2 y N 2 0.65--
Mass fraction of H2 y H 2 0.2--
Mass fraction of fuel H2O y H 2 O 0.8--
Table 7. Mesh independence.
Table 7. Mesh independence.
Mesh 1Mesh 2Mesh 3
Total number of cells134,552224,432351,000
Global temperature (K)Tmin = 353.01Tmin = 353.01Tmin = 353.01
Tave = 356.05Tave = 356.1Tave = 356.1
Tmax = 357.4Tmax = 357.5Tmax = 357.5
Table 8. Comparison of geometry and properties of present model with Yuan et al. [38] work.
Table 8. Comparison of geometry and properties of present model with Yuan et al. [38] work.
Parameter or PropertyThis WorkYuan et al. [38]
Cell geometryNumber of channels in each electrode71
Channel width (mm)1.51
Channel height (mm)21
Channel length (mm)2230
GDL thickness (mm)0.410.2
CL thickness (mm)0.00370.02
Membrane thickness (mm)0.1270.05
BP thickness (mm)32
GDL porosity0.50.55
CL porosity0.40.475
PropertiesDensity of membrane (kg m−3)19801980
Density of BP (kg m−3)18801880
Heat capacity of GDL (J kg−1 K−1)710710
Heat capacity of CL (J kg−1 K−1)710710
Heat capacity of membrane (J kg−1 K−1)20002000
Heat capacity BP (J kg−1 K−1)875875
Thermal conductivity of GDL (W m−1 K−1)1.61.6
Thermal conductivity of CL (W m−1 K−1)88
Thermal conductivity of membrane (W m−1 K−1)0.670.67
Thermal conductivity of BP (W m−1 K−1)10.710.7
Electronic conductivity of GDL (S m−1)50005000
Electronic conductivity of CL (S m−1)10001000
Electronic conductivity BP (S m−1)8.3 × 1048.3 × 104
Charge transfer coefficient1.01.25
Operating conditionsTemperature (K)353300
Pressure (Pa)101,325100,000
stoichiometric flow ration1.5/2.01.5/2.0
Flow configurationco-flowco-flow
Phasesingle-phasemultiphase

Share and Cite

MDPI and ACS Style

Kone, J.-P.; Zhang, X.; Yan, Y.; Adegbite, S. An Open-Source Toolbox for PEM Fuel Cell Simulation. Computation 2018, 6, 38. https://doi.org/10.3390/computation6020038

AMA Style

Kone J-P, Zhang X, Yan Y, Adegbite S. An Open-Source Toolbox for PEM Fuel Cell Simulation. Computation. 2018; 6(2):38. https://doi.org/10.3390/computation6020038

Chicago/Turabian Style

Kone, Jean-Paul, Xinyu Zhang, Yuying Yan, and Stephen Adegbite. 2018. "An Open-Source Toolbox for PEM Fuel Cell Simulation" Computation 6, no. 2: 38. https://doi.org/10.3390/computation6020038

APA Style

Kone, J. -P., Zhang, X., Yan, Y., & Adegbite, S. (2018). An Open-Source Toolbox for PEM Fuel Cell Simulation. Computation, 6(2), 38. https://doi.org/10.3390/computation6020038

Note that from the first issue of 2016, this journal uses article numbers instead of page numbers. See further details here.

Article Metrics

Back to TopTop