원시데이터 수집 시스템
선정목록으로

A real-time capable quasi-2D proton exchange membrane fuel cell model

관련 수소연료전지 · (6) PEM(고분자전해질막)

기본 정보

저자
  1. Kuzdas, Dominik — TU Wien
  2. Murschenhofer, Dominik — TU Wien
DOI
10.34726/hss.2017.35444
저널
reposiTUm (TU Wien)
발행년도
2022
발행기관
TU Wien
피인용수
0
라이선스
0
논문 유형
–
언어
–
원문 페이지
https://doi.org/10.34726/hss.2017.35444
토픽
Fuel Cells and Related Materials
OpenAlex ID
W6927909019

평가 내용

관련도
관련
사업분야
수소연료전지 · (6) PEM(고분자전해질막)
부 분야
–
R&D 측면
–
확신도
–
근거 용어
–
판단 근거
규칙(키워드) 기반 평가로 '수소연료전지 > PEM(고분자전해질막)' 분야에 선정된 논문입니다.
R&D 활용 포인트
–
평가 입력
–

초록

In this paper a dynamic proton exchange membrane fuel cell model for real-time applications is presented. Following a quasi-2D approach, effects such as multicomponent diffusion in porous layers, membrane water transport driven by diffusion and electro-osmotic drag as well as membrane nitrogen crossover forced by partial pressure differences, are considered. A linearisation of the governing nonlinear equations with respect to the previous time step is applied to avoid numerically expensive Newton iterations and to speed up the simulation. Furthermore, a solution method based on Chebyshev collocation minimises the required number of nodes and assures real-time capability. The model is validated in terms of polarisation curves, current density and species distribution versus steady-state computational fluid dynamics simulations of a 3D fuel cell performed in AVL Fire (TM) . The transient behaviour is found to be in good qualitative agreement with results published by other authors. Due to the fast computation capability of the presented model, it is suitable for widespread parameter studies, control unit adjustments or state predictions, e.g. fuel starvation or membrane drying and flooding.

본문 113,134자

본문 펼치기
## Diplomarbeit # A real-time capable quasi-2D proton exchange membrane fuel cell model ausgeführt zum Zwecke der Erlangung des akademischen Grades eines Diplom-Ingenieurs eingereicht an der TU Wien, Fakultät für Maschinenwesen und Betriebswissenschaften von Dominik KUZDAS Matrikelnummer: 00925099 Schusswallgasse 3/3 1050 Wien Dominik MURSCHENHOFER Matrikelnummer: 00927263 Gassergasse 2-8/1/8 1050 Wien unter der Leitung von Ao.Univ.Prof. Dipl.-Ing. Dr.techn. Stefan BRAUN Institut für Strömungsmechanik und Wärmeübertragung und Univ.Prof. Dipl.-Ing. Dr.techn. Stefan JAKUBEK Institut für Mechanik und Mechatronik Wien, Juli 2017 Dominik Kuzdas Dominik Murschenhofer ### Everything must be made as simple as possible. But not simpler. Albert Einstein ### I have been impressed with the urgency of doing. Knowing is not enough; we must apply. Being willing is not enough; we must do. Leonardo da Vinci # Eidesstattliche Erklärung Ich, Dominik Kuzdas, erkläre an Eides statt, dass die vorliegende Arbeit nach den anerkannten Grundsätzen der wissenschaftliche Abhandlungen von mir selbstständig erstellt wurde. Alle verwendeten Hilfsmittel, insbesondere die zugrunde gelegte Literatur, sind in dieser Arbeit genannt und aufgelistet. Die aus den Quellen wörtlich entnommenen Stellen, sind als solche kenntlich gemacht. Das Thema der Arbeit wurde von mir bisher weder im In- noch im Ausland einer Beurteilerin/einem Beurteiler zur Begutachtung in irgendeiner Form als Prüfungsarbeit vorgelegt. Diese Arbeit stimmt mit der von den Begutachterinnen/Begutachtern beurteilten Arbeit überein. Wien, am 6. Juli 2017 Dominik Kuzdas Ich, Dominik Murschenhofer, erkläre an Eides statt, dass die vorliegende Arbeit nach den anerkannten Grundsätzen der wissenschaftliche Abhandlungen von mir selbstständig erstellt wurde. Alle verwendeten Hilfsmittel, insbesondere die zugrunde gelegte Literatur, sind in dieser Arbeit genannt und aufgelistet. Die aus den Quellen wörtlich entnommenen Stellen, sind als solche kenntlich gemacht. Das Thema der Arbeit wurde von mir bisher weder im In- noch im Ausland einer Beurteilerin/einem Beurteiler zur Begutachtung in irgendeiner Form als Prüfungsarbeit vorgelegt. Diese Arbeit stimmt mit der von den Begutachterinnen/Begutachtern beurteilten Arbeit überein. Wien, am 6. Juli 2017 Dominik Murschenhofer # Danksagung Dominik Kuzdas Ganz besonders möchte ich Prof. Stefan Braun und Prof. Stefan Jakubek danken, die mich mit unzähligen fachlichen Diskussionen durch die Diplomarbeit geleitet haben und mich auch in anstrengenden Zeiten mit persönlichen Ratschlägen ermutigten. Weiters möchte ich mich bei meinen Eltern Brigitte und Hubert und meiner Schwester Daniela bedanken, die mir stets auf meinem Weg zur Seite standen und ohne dessen Hilfe mein Studium nicht möglich gewesen wäre. Danken möchte ich außerdem meiner Freundin Marina S. die mein Leben seit beginn meines Studiums bereichert. Dominik Murschenhofer Zuerst möchte ich mich bei Prof. Stefan Braun und Prof. Stefan Jakubek für ihre ausgiebige Unterstützung zur Erarbeitung dieser Diplomarbeit bedanken. Durch stetig kritisches Hinterfragen, konstruktive Kritik und aufmunternde Ratschläge verhalfen sie mir einen gut überlegten und strukturierten Lösungsweg zu finden. Weiters gilt mein besonderer Dank meinen Eltern Sigrid und Michael, sowie meiner Schwester Sonja für die Geduld und Unterstützung, die sie mir während des gesamten Studiums entgegengebracht haben. Sie hatten stets ein offenes Ohr für meine Sorgen, ohne meine Familie wäre ich nie so weit gekommen. # Abstract In this paper a dynamic proton exchange membrane fuel cell model for real-time applications is presented. Following a quasi-2D approach, effects such as multicomponent diffusion in porous layers, membrane water transport driven by diffusion and electroosmotic drag as well as membrane nitrogen crossover forced by partial pressure differences, are considered. A linearisation of the governing equations with respect to the previous time step is applied to avoid numerically expensive Newton iterations and to speed up the simulation. Furthermore, a solution method based on Chebyshev collocation minimises the required number of nodes and assures real-time capability. The model is validated in terms of polarisation curves, current density and species distribution versus steady-state computational fluid dynamics simulations of a 3D fuel cell performed in AVL Fire <sup>TM</sup> . The transient behaviour is found to be in good qualitative agreement with results published by other authors. Due to the fast computation capability of the presented model, it is suitable for widespread parameter studies, control unit adjustments or state predictions, e.g. fuel starvation or membrane drying and flooding. # Kurzfassung Diese Arbeit präsentiert ein dynamisches Protonenaustauschmembran-Brennstoffzellenmodell mit dem Schwerpunkt auf Echtzeitfähigkeit. Verschiedene physikalische Effekte wie zum Beispiel multikomponenten Diffusion in den porösen Gasdiffusionsschichten, Wassertransport durch die Protonenaustauschmembran, getrieben durch Diffusion sowie elektro-osmotische Kräfte und Stickstofftransport durch die Membran werden innerhalb einer quasi-zweidimensionalen Beschreibung berücksichtigt. Um Echtzeitfähigkeit zu erreichen wird eine Linearisierung um die Lösung des vorigen Zeitschritts angewendet, die es ermöglicht die zugrundeliegenden nichtlinearen Gleichungen ohne numerisch aufwendige Newton-Iteration zu lösen. Um die Anzahl der örtlichen Diskretisierungspunkte zu minimieren, wird eine Chebyshev-Kollokationsmethode verwendet, die bereits mit wenigen Rechenpunkten Lösungen hoher Genauigkeit liefert. Zur Validierung des Modells gegen die kommerzielle Simulationssoftware AVL Fire <sup>TM</sup> werden Polarisierungskurven, die Verteilung der Stromdichte und der Spezienverläufe von stationären Zuständen betrachtet. Die charakteristische Verläufe der Stromdichte für dynamische Änderungen der Einlassfeuchte oder der Zellenspannung stimmen sehr gut mit den Ergebnissen anderer Autoren überein. Aufgrund der Echtzeitfähigkeit des Modells kann es für breit gefächerte Parameterstudien, als virtuelle Brennstoffzelle zur Reglerauslegung oder für die Vorhersage von kritischen Zuständen wie zum Beispiel Treibstoffverarmung und Membranaustrocknung oder Überflutung verwendet werden. # Contents 1 Introduction <sup>DK</sup> 1 2 Physical-mathematical model 4 2.1 Quasi-2D approach <sup>DM</sup> . . . . . . . . . . . . . . . . . . . . . . . . . . . 6 2.2 Gas channel and GDL model <sup>DK</sup> . . . . . . . . . . . . . . . . . . . . . . 6 2.3 Membrane model <sup>DM</sup> . . . . . . . . . . . . . . . . . . . . . . . . . . . . 10 2.4 Electrochemical model <sup>DK</sup> . . . . . . . . . . . . . . . . . . . . . . . . . 11 2.5 Coupling conditions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 12 2.5.1 Interface gas channel - GDL <sup>DK</sup> . . . . . . . . . . . . . . . . . . 13 2.5.2 Interface GDL - membrane <sup>DM</sup> . . . . . . . . . . . . . . . . . . . 13 2.6 Boundary conditions <sup>DK</sup> . . . . . . . . . . . . . . . . . . . . . . . . . . 14 3 Numerical treatment 15 3.1 Discretisation . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 15 3.1.1 Spatial domain <sup>DM</sup> . . . . . . . . . . . . . . . . . . . . . . . . . 15 3.1.2 Time domain <sup>DK</sup> . . . . . . . . . . . . . . . . . . . . . . . . . . 16 3.2 Linearisation in time (LIT) <sup>DK</sup> . . . . . . . . . . . . . . . . . . . . . . . 16 3.3 Coupling between gas channel and GDL . . . . . . . . . . . . . . . . . 20 3.3.1 Evaluation of the Chebyshev polynomial <sup>DK</sup> . . . . . . . . . . . 21 3.3.2 Implicit polynomial interpolation <sup>DM</sup> . . . . . . . . . . . . . . . 21 4 Validation and discussion <sup>DM</sup> 23 5 Conclusion and outlook <sup>DK</sup> 35 Nomenclature 37 Bibliography 41 Appendix A Dimensionless groups <sup>DM</sup> 45 Appendix B LIT PEMFC model - user guide 48 B.1 Input files <sup>DM</sup> . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 51 B.1.1 Geometry data . . . . . . . . . . . . . . . . . . . . . . . . . . . 51 B.1.2 Material properties . . . . . . . . . . . . . . . . . . . . . . . . . 51 B.1.3 Boundary conditions . . . . . . . . . . . . . . . . . . . . . . . . 53 B.2 Assistant files <sup>DK</sup> . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 58 B.2.1 Characteristic values . . . . . . . . . . . . . . . . . . . . . . . . 58 B.2.2 Coefficients . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 58 B.3 Main file <sup>DM</sup> . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 59 B.3.1 Load data . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 59 B.3.2 Assistant variables . . . . . . . . . . . . . . . . . . . . . . . . . 59 B.3.3 Initial conditions . . . . . . . . . . . . . . . . . . . . . . . . . . 59 B.3.4 Time loop . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 59 B.3.5 Save results . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 60 B.3.6 Plot results . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 61 B.4 Functions <sup>DK</sup> . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 62 B.4.1 SystemMatrix.m . . . . . . . . . . . . . . . . . . . . . . . . . . 62 B.4.2 sliceCoupling.m . . . . . . . . . . . . . . . . . . . . . . . . . . . 62 B.4.3 central_diff_t.m . . . . . . . . . . . . . . . . . . . . . . . . . . 62 B.4.4 bc_physical.m . . . . . . . . . . . . . . . . . . . . . . . . . . . 63 B.4.5 Chebfun package . . . . . . . . . . . . . . . . . . . . . . . . . . 64 DK indicates chapters formulated by Dominik Kuzdas DM indicates chapters formulated by Dominik Murschenhofer # Chapter 1 Introduction DK Proton exchange membrane fuel cells (PEMFCs) are a promising alternative power source for mobile and stationary devices. Low operating noise, the relative simplicity due to no moving parts, zero emission of greenhouse gases and a high energy density combined with high efficiency are the main advantages. In recent decades, fundamental knowledge about fuel cell (FC) operating conditions has been gained by studying both experimental and computer simulation results. However, dynamic operation of a FC is still very challenging and the issue of reduced durability and performance occurring from unmeant destructive states is hardly tackled successfully. State-of-the-art FCs are coupled to a battery to bridge dynamic load changes and achieve almost steady working conditions. Transient operation is of high interest for next generation FCs to avoid the battery’s costs and weight. Therefore, real-time control will be essential to prevent local destructive states and maintain high efficiency. To this end, a FC model based on physical grounds is desirable for affordable testing, control unit adjustment and to perform widespread parameter studies within moderate computation time. The first FC models were presented by Bernardi and Verbrugge [1] and Springer _et_ _al_ . [2] in the early 90s. These models describe 1D mass transfer in the membrane direction and consider steady-state operation only. Springer _et_ _al_ . [2] introduced a model for the water transport across the membrane which partly is still used nowadays. A quasi-2D approach - coupling a 1D gas channel model with a 1D model for mass transport through the membrane electrode assembly - which is suitable to describe 1 Introduction <sup>DK</sup> 2 spatial variations of current density, water distribution and membrane ohmic resistance was presented by Dannenberg _et_ _al_ . [3]. This quasi-2D description was further used by many other authors, [4, 5, 6]. While Berg _et_ _al_ . [4] presented a new approach to couple gas diffusion layers (GDLs) with the membrane considering non-equilibrium effects, Freunberger [5] and Kulikovsky [6] assumed equilibrium between the membrane water content and the GDL water vapour activity at the corresponding interface [2]. A transient 2D PEMFC model presented by Wu _et_ _al_ . [7] is also based on Springer’s coupling approach and uses pure oxygen (O2) and hydrogen (H2) as feed gas on cathode and anode side, respectively. They developed their work further to treat non-isothermal transient 3D-effects [8] and analysed the dynamic influence of Springer’s equilibrium and Berg’s non-equilibrium coupling methods between GDLs and membrane. However, as their fuel cell is fed with pure O2, phenomena related to the presence of nitrogen (N2), as multicomponent diffusion, N2 membrane crossover and material properties depending on the N2 distribution have not been taken into account. Wang and Wang [9] presented a dynamical 3D model and studied the importance of various physical effects, such as membrane hydration, GDL species transport due to diffusion and convective gas transport in the gas channels, by considering relevant time scales. The FC model is operated with humidified O2 and H2 and therefore only accounts for binary diffusion between fuel gas and water. Assuming isothermal cell conditions, transient simulations have been performed by using a commercial computational fluid dynamics (CFD) software. They analysed the dynamic response to step changes of cell potential and cathode inlet humidification. In their subsequent work, [10], the model was extended to include the electron transport and the response to step changes of average current density was investigated. FCs are commonly fed with humidified air and H2 on cathode and anode side, respectively. To allow higher stoichiometry in terms of higher anode inlet velocities without wasting unconsumed H2, re-circulation or dead-end modes are used on the anode side. This enables nitrogen accumulation at the anode due to membrane crossover. Consequently, the N2 distribution must be considered in the entire FC. In all these works, designed to improve the understanding of FC operation behaviour, commonly applied spatial resolution of each domain is too high to achieve moderate computation times. The loss of resolution depth is currently unavoidable to reach real-time capability. 1 Introduction <sup>DK</sup> 3 Today, models using the built-up knowledge for fast state prediction are hardly available with acceptable accuracy since most of them suffer from oversimplification. A zerodimensional FC-stack model presented by Pathapati _et_ _al_ . [11] may be used to predict voltage response behaviour during current load step changes. This model delivers useful information about the overall stack behaviour. However, for today’s control purposes, a more detailed resolution of spatial current density and species distribution is desirable. Gao _et_ _al_ . [12] proposed a 1D model for real-time FC-stack simulation, adaptable to various stack configurations with different geometries. Their consideration of steadystate conditions in the GDLs and the membrane leads to a decrease of computation time. However, membrane hydration significantly affects the FC’s dynamics and a transient treatment is desirable nowadays. A single cell model based on 2D gas channel treatment, coupled to a 1D model for GDLs and membrane, was presented by Massonnat _et_ _al_ . [13]. Real-time capability is achieved by assuming steady-state conditions in the gas channels. Nevertheless, assuming a uniformly distributed current density may also oversimplify the problem. The current work intends to fill the gap between highly complex 3D models requiring much computational effort and fast 1D models possibly lacking of spatial resolution depth. A ’linearisation in time’ (LIT) and a quasi-2D-discretisation, capturing the principal directions for mass transport and taking into account spatial distributions of species and current density without requiring excessive computational power, provide the basis of the presented LIT model. The model equations are derived from the integral conservation laws and supplemented with model equations for membrane water transport, membrane conductivity, species diffusion etc. in Sec. 2. As membrane N2crossover is considered to be important for present-day control issues, the distribution of N2 and therefore multicomponent diffusion are being taken into account on both FC sides. The entire model is finally represented by a system of coupled, nonlinear partial differential equations (PDEs) which must be solved numerically. To achieve real-time capability, a linearisation of the PDEs with respect to the previous time step in the marching scheme is used. The implementations of an implicit coupling method between different spatial domains and the linearisation scheme are presented in Sec. 3. Finally, the model is validated against the commercial CFD package AVL Fire <sup>TM</sup> [14] for some standard test cases and the time-dependent results are presented and discussed in Sec. 4. # Chapter 2 Physical-mathematical model In the following, we present general assumptions, the modelled domains and their quasi2D approach as well as models used to describe various phenomena. Moreover, the governing equations for each domain, gas channels (GC), GDLs and proton exchange membrane (PEM) are individually derived. Finally, the coupling of single domains and providing appropriate boundary conditions yield the proposed model description. The derivation of the current model development is based on the following assumptions: 1. Continuum mechanics approach in each domain. 2. At the current state the entire FC is operated at a constant temperature. However, the temperature distribution of a real FC could be easily mapped on the model in a parametric manner, as it allows locally different temperatures. 3. Gas species behave like an ideal gas mixture and its properties such as viscosity, diffusion coefficients etc., depending on species distribution. 4. Both FC channels are fed with humidified reactant gases, O2 and H2 on cathode and anode, respectively and nitrogen. Consequently, multicomponent diffusion is considered on both sides. 5. Reactant crossover through the membrane is neglected. 2 Physical-mathematical model 5 6. GDL’s ohmic resistance is neglected. _x_ 1 _x_ 2 _x_ 3 _x_ 1 (a) inner slice (b) _x_ 2 _e_ <sup>_−_</sup> _e_ <sup>_−_</sup> cathode GC cathode GDL membrane anode GDL anode GC Figure 2.1: (a) 3D PEMFC geometry with the modelled domain, bounded by dashed lines and the considered 2D plane in green. (b) Discretised quasi-2D model domain with _N_ GC <sup>C,A</sup> <sup>= 8,</sup> <sup>_N_</sup> <sup>C,A</sup> GDL <sup>= 4 and</sup> <sup>_N_</sup> <sup>PEM</sup> <sup>= 3 computation nodes for the gas channels (GC),</sup> GC <sup>C,A</sup> <sup>= 8,</sup> <sup>_N_</sup> <sup>C,A</sup> GDL with _N_ GC <sup>C,A</sup> <sup>= 8,</sup> <sup>_N_</sup> <sup>C,A</sup> GDL <sup>= 4 and</sup> <sup>_N_</sup> <sup>PEM</sup> <sup>= 3 computation nodes for the gas channels (GC),</sup> the GDLs and the membrane, respectively, and the number of so-called ’inner slices’ _N_ SL = 5 (spatial resolution used for all simulations below). 2.1 Quasi-2D approach <sup>DM</sup> 6 ### 2.1 Quasi-2D approach DM In order to develop a real-time capable model with sufficient spatial resolution, a suitable defined computational domain is needed. Starting from a typical 3D description of a single cell with straight channels, a 2D domain is obtained by cutting through the channel’s symmetry plane, see the green plane in Fig. 2.1(a). Further, a quasi2D approach, presented by Dannenberg _et_ _al_ . [3], considering principle directions for gradients of corresponding variables in each domain, is applied. The 2D domain is therefore divided in two parallel gas channels connected with an arbitrary number of ’inner slices’, each composed of cathode and anode GDLs and a PEM in between, see Fig. 2.1(b). For each domain a 1D formulation of the model equations is found from the integral conservation laws [15] and the application of cross-sectional averaging of the relevant variables, e.g. for the velocity profile _u_ ˜1( _�x,_ <sup>˜</sup> _t_ <sup>˜</sup> ) with _�x_ <sup>˜</sup> = (˜ _x_ 1 _,_ ˜ _x_ 2 _,_ ˜ _x_ 3) <sup>_T_</sup> in the gas channels, _W_ �˜ GC _u_ ˜1( _�x,_ <sup>˜</sup> _t_ <sup>˜</sup> ) d _x_ ˜2 d _x_ ˜3 _._ (2.1) 0 <u>1</u> _u_ ¯˜1(˜ _x_ 1 _,_ ˜ _t_ ) = _H_ ˜ GC _W_ ˜ GC _H_ �˜GC 0 Here, _u_ <sup>¯</sup> ˜(˜ _x_ 1) is the required quantity (velocity) to be determined, and _W_ <sup>˜</sup> GC _H_ <sup>˜</sup> GC is the constant cross-sectional area. Further, tilde denotes a dimensional variable, whereas no tilde represents the corresponding dimensionless quantity (see Appendix A for details). Consequently, variations along the _x_ ˜1-direction are considered for the gas channels, and variables in the GDLs and membrane depend on _x_ ˜2, only. Hence, inner slices are connected via the gas channels only, see Fig. 2.1(b). ### 2.2 Gas channel and GDL model DK The gas channel flow turns out to be laminar in general, is assumed to be locally fully developed and thus governed by a parabolic velocity profile [16], even though mass and momentum are exchanged with the GDL, see Fig. 2.2(a). For the gas channel model, the integral formulation of the conservation of mass for ˜ a control volume _CV_ containing the entire channel height and width in _x_ ˜2 and _x_ ˜3 2.2 Gas channel and GDL model <sup>DK</sup> 7 _x_ ˜1 _u_ ¯˜(˜ _x_ 1 _,_ ˜ _t_ ) _L_ ˜ _<u>x</u>_ <u>˜1</u> _<u>CV</u>_ ˜ _<u>∂CV</u>_ ˜ _W_ ˜ GC _x_ ˜3 _H_ ˜GC _�u_ ˜ _�u_ ˜ ��� _x_ ˜1 <u>Δ˜</u> _<u>x</u>_ <u>1</u> ��� _x_ ˜1+Δ˜ _x_ 1 _ρ_ ˜ _|x_ ˜1+Δ˜ _x_ 1 _x_ ˜2 _x_ ˜2 (a) (b) _ρ_ ˜ _|x_ ˜1 _<u>�n</u>_ <u>in</u> _�n_ out _u_ ˜( _�x,_ <sup>˜</sup> _t_ <sup>˜</sup> ) _m_ ˜˙ GDL�� GDL _m_ ˜˙ GDL�� GDL _W_ ˜ GDL _x_ ˜1+Δ˜ _x_ 1 _/_ 2 �� _x_ ˜1+Δ˜ _x_ 1 _/_ 2 _�n_ GDL _u_ ¯˜1(˜ _x_ 1 _,_ ˜ _t_ ) _ρ_ ¯˜(˜ _x_ 1 _,_ ˜ _t_ ) _x_ ˜3 _x_ ˜2 _x_ ˜2 GDL _ρ_ ˜GDL _,_ ˜ _u_ 2,GDL Figure 2.2: Velocity distribution in the gas channel model, whereas (a) displays the parabolic velocity distribution before cross-sectional averaging is applied and variables depend on _x_ ˜1- and _x_ ˜2-direction, (b) represents the quasi-1D formulation with the crosssectional averaged variables. direction, respectively, and an channel length element Δ˜ _x_ 1 in ˜ _x_ 1-direction with <sup><u>Δ˜</u></sup> _L_ <u>˜</u> <sup>_<u>x</u>_</sup> <sup><u>1</u></sup> _�_ 1, [see red dashed rectangle in Fig. 2.2(a)] reads: _CV_ ˜ _<u>∂ρ</u>_ <u>˜(</u> _<u>�x,</u>_ <sup>˜</sup> _<u>t</u>_ <sup>˜</sup> <u>)</u> d _V_ <sup>˜</sup> + _∂t_ <sup>˜</sup> _∂CV_ <sup>˜</sup> _ρ_ ˜( _�x,_ <sup>˜</sup> _t_ <sup>˜</sup> ) _�u_ <sup>˜</sup> ( _�x,_ <sup>˜</sup> _t_ <sup>˜</sup> ) _· �n_ d _S_ <sup>˜</sup> = 0 _._ (2.2) Here, _∂CV_ <sup>˜</sup> denotes the closed control volume surface. Whereas the first term represents the change of mass within the control volume with respect to time, the second term represents the channel mass flux _ρ_ ˜ _u_ ˜1 along the _x_ ˜1-direction and the mass transport at the gas channel - GDL interface _ρ_ ˜ _u_ ˜2 along the _x_ ˜2 direction, depicted by the red arrows in Fig. 2.2. A formulation with dependency in _x_ ˜1-direction only is obtained by substituting the variables _ρ_ ˜( _�x,_ <sup>˜</sup> _t_ <sup>˜</sup> ) and _u_ ˜( _�x,_ <sup>˜</sup> _t_ <sup>˜</sup> ) with the corresponding cross-sectional averaged values _u_ <sup>¯</sup> ˜(˜ _x_ 1 _,_ _t_ <sup>˜</sup> ) and _ρ_ <sup>¯</sup> ˜(˜ _x_ 1 _,_ _t_ <sup>˜</sup> ) using Eq. (2.1). However, the mass flux at the 2.2 Gas channel and GDL model <sup>DK</sup> 8 GDL interface is determined from the GDL model: _m_ ˜˙ GDL(˜ _�x,_ ˜ _t_ ) = Δ˜ _x_ 1 _W_ ˜ GDL _ρ_ ˜GDL(˜ _x_ 1 _,_ _H_ ˜ GC _,_ ˜ _t_ ) _u_ ˜2,GDL(˜ _x_ 1 _,_ _H_ ˜ GC _,_ ˜ _t_ ) _._ (2.3) Evaluating the surface integral in Eq. (2.2), using Eq. (2.3) and a Taylor series expansion, the integral conservation of mass for cross-sectional averaged variables reads: _<u>∂ρ</u>_ <sup>¯</sup> <u>˜(˜</u> _<u>x</u>_ <u>1</u> _<u>,</u>_ _<u>t</u>_ <sup>˜</sup> <u>)</u> 0 = Δ˜ _x_ 1 _W_ <sup>˜</sup> GC _H_ <sup>˜</sup> GC _∂t_ <sup>˜</sup> + Δ˜ _x_ 1 _W_ <sup>˜</sup> GDL _ρ_ <sup>¯</sup> ˜GDL(˜ _x_ 1 _,_ _H_ <sup>˜</sup> GC _,_ _t_ <sup>˜</sup> ) _u_ <sup>¯</sup> ˜2(˜ _x_ 1 _,_ _H_ <sup>˜</sup> GC _,_ _t_ <sup>˜</sup> ) �2 <sup>�</sup> (2.4) + _O_ - _ρ_ ¯˜(˜ _x_ 1 _,_ ˜ _t_ ) _u_ ¯˜1(˜ _x_ 1 _,_ ˜ _t_ )� + Δ˜ _x_ 1 _W_ <sup>˜</sup> GC _H_ <sup>˜</sup> GC _∂_ _∂x_ ˜1 �� <u>Δ˜</u> _<u>x</u>_ <u>1</u> _L_ ˜ _._ The differential form for the quasi-1D conservation of mass characterised by Fig. 2.2(b) is finally found by letting Δ˜ _x_ 1 _→_ 0: <u>1</u> _H_ ˜ GC _<u>∂ρ</u>_ <sup>¯</sup> <u>˜</u> _<u>∂∂ρt</u>_ <sup>¯</sup> <u>˜</u> <sup>˜</sup> <sup>+</sup> <sup>_<u>∂</u>_</sup> <sup><u>(</u></sup> _∂_ <sup>_<u>ρ</u>_</sup> <sup>¯˜</sup> _x_ ˜ <sup>_<u>u</u>_</sup> <sup>¯˜</sup> 1 <sup><u>1)</u></sup> _<u>W</u>_ ˜ <u>GDL</u> = _−_ _W_ ˜ GC _∂x_ ˜1 _ρ_ ˜GDL _u_ ˜2,GDL _._ (2.5) To express the wall shear stress _τ_ ˜w at the solid channel walls in the conservation law of momentum in terms of the Darcy-Weisbach friction factor _fD_ depending on the gas channel’s width and height, the hydraulic diameter _D_ <sup>˜</sup> H - defined as the ratio between the channel cross section and the cross section’s wetted perimeter – is introduced [17], _τ_ ˜ _w_ = _ρ_ ˜ _u_ ˜ <sup>2</sup> <sup>_<u>f</u>_</sup> 8 <sup>_<u>D</u>_</sup> <sup>_,_</sup> _f_ D = _ρ_ ˜64˜ _u_ ˜ _D_ <sup>˜</sup> _<u>µ</u>_ H _τ_ ˜ _w_ = _ρ_ ˜ _u_ ˜ <sup>2</sup> <sup>_<u>fD</u>_</sup> 8 _F_ c _,_ _D_ ˜ H = <sup><u>2</u></sup> <sup>_<u>H</u>_</sup> <sup>˜</sup> <sup>_<u>W</u>_</sup> <sup>˜</sup> _H_ ˜ + _W_ ˜ _._ (2.6) Here, _µ_ ˜ denotes the ideal gas mixture’s dynamic viscosity, depending on gas composition [18]. Since the concept of the hydraulic diameter is known to be inaccurate for laminar flows, a correction factor _F_ c is used [15]. In the gas channels, diffusive fluxes are found to be negligibly small in contrast to convective fluxes. However, in the GDLs both convective and diffusive mass transports are accounted for, whereas the latter is modelled with generalised Fick’s law of diffusion. For multicomponent diffusion with three species, two diffusive species fluxes read in 2.2 Gas channel and GDL model <sup>DK</sup> 9 dimensionless form [19]: _<u>∂ξα</u>_ _∂x_ 2 + _Dα,β_ _,_ _α �_ = _β,_ (2.7) _jα_ = _−ρε_ <sup>_q_</sup> _Dα,α_ _<u>∂ξβ</u>_ _∂x_ 2 whereas the third flux is used to close the system, _γ_ _jγ_ = 0 _._ (2.8) The indices _α, β_ and _γ_ are listed in Table 2.1. Here, the generalised dimensionless diffusion coefficients _Dα,α_ and _Dα,β_ (reference values are given in Table A.1) are related to mass fractions [20] and are computed based on a model for binary diffusion coefficients [21]. In order to consider the porosity _ε_ of the GDLs, Darcy’s law and the specific value for the Bruggeman exponent _q_ = 1 _._ 5 are used [22]. Analogous to the derivation of the differential form of the conservation of mass in the gas channel, Eqs. (2.1-2.5), the differential forms for the conservation of momentum and species can be found. Additionally, introducing characteristic reference quantities (see Table A.1), the dimensionless form of the governing equations for the gas channel ( _a_ = 1) and the GDL ( _a_ = 2) read: _<u>∂ρ∂t</u>_ <sup>+</sup> <sup>_<u>∂</u>_</sup> <sup><u>(</u></sup> _∂x_ <sup>_<u>ρu</u>_</sup> _a_ <sup>_<u>a</u>_</sup> <sup><u>)</u></sup> _<u>∂ρ</u>_ mass: _∂t_ _∂xa_ = _S_ m _,_ (2.9) momentum: _ρ_ <sup>_<u>∂ua</u>_</sup> _∂t_ <sup>+</sup> <sup>_ρua_</sup> + _K_ p _,a_ _<u>∂p</u>_ _∂xa_ = _S_ u _,_ (2.10) species: _ρ_ <sup>_<u>∂ξα</u>_</sup> _∂t_ <sup>+</sup> <sup>_ρua_</sup> _<u>∂ua</u>_ _∂xa_ _<u>∂ξα</u>_ _∂xa_ = _S_ s _,_ (2.11) where the explicit expressions for the source terms _S_ m,u,s are summarised in Table 2.1. These four coupled nonlinear PDEs Eqs. (2.9-2.11) contain six unknowns in each domain, the velocity _ua_, the pressure _p_, the density _ρ_ and the three mass fractions _ξγ_ with _γ_ = N2 _,_ H2O and O2 or H2 on cathode or anode side, respectively. To solve for the six unknowns, two additional equations are required to close the system. Therefore, the algebraic closure equation for mass fractions and the algebraic equation of state for 2.3 Membrane model <sup>DM</sup> 10 an ideal gas mixture are used: closure equation: _γ_ _ξγ_ = 1 _,_ (2.12) equation of state: _K_ e _,a_ _ρ_ _γ_ _<u>ξγ</u>_ _Mγ_ = _p ._ (2.13) The dimensionless groups _K_ p, _a_ and _K_ e, _a_ are defined in Appendix A. source terms gas channels gas diffusion layers _S_ m _−K_ 1 _ρu_ 2 0 _<u>∂</u>_ <sup>2</sup> _<u>u</u>_ <u>2</u> _∂x_ <sup>2</sup> 2 _−_ _εK_ 5 _u_ 2 <sup>2</sup> 2 _S_ u _µK_ 2 _u_ 1 _µ_ _K_ 4 _S_ s _−K_ 3 _jα_ _−_ <sup><u>1</u></sup> _<u>∂jα</u>_ _<u>ε</u>_ _<u>∂x</u>_ <u>2</u> species subscript cathode anode _S_ s _−K_ 3 _jα_ _−_ <sup><u>1</u></sup> _<u>ε</u>_ _α, β_ O2, H2O H2, H2O _γ_ O2, N2, H2O H2, N2, H2O Table 2.1: Source terms and species indices for the corresponding domain. The definitions of the dimensionless groups _K_ 1 _÷ K_ 5 are given in Appendix A. ### 2.3 Membrane model DM Within the membrane, water transport is driven by three different mechanisms, namely electro-osmotic drag, proportional to the current density <sup>˜</sup> _i_, diffusion due to concentration gradients and convective transport caused by pressure differences [22]. The latter is neglected as it plays a minor role for FC applications [23] and the membrane water flux <sup>˜</sup> _j_ w reads [22, 24], ˜ _<u>i</u>_ _F_ ˜ _D_ ˜ w( _λ_ ) <sup>_<u>∂λ</u>_</sup> _∂x_ ˜2 + <sup>_<u>ρ</u>_</sup> <sup><u>˜PEM</u></sup> ˜ EW _._ (2.14) ˜ _j_ w = _−M_ ˜ H2O _C_ drag( _λ_ ) The coefficients for electro-osmotic drag _C_ drag and back diffusion _D_ <sup>˜</sup> w are functions of the normalised membrane water content _λ_, [24], defined as number of water molecules 2.4 Electrochemical model <sup>DK</sup> 11 per sulfonic acid groups present in the polymer, _λ_ = _n_ H2O _/n_ SO3H. By means of characteristic reference quantities, the dimensionless form of the normalised membrane water content transport equation yields 2 _<u>∂λ</u>_ _∂t_ <sup>=</sup> <sup>_K_</sup> <sup>6</sup> _<u>∂λ</u>_ _∂x_ 2 _i_ + �� _<u>∂λ</u>_ _∂x_ 2 �2 + _λ_ <sup>_<u>∂</u>_</sup> <sup>2</sup> <sup>_<u>λ</u>_</sup> _∂x_ <sup>2</sup> 2 _,_ (2.15) where the dimensionless group _K_ 6 is defined in Appendix A. As the normalised membrane water content is the only variable considered in the membrane, there are no additional equations required within this domain. However, besides for water, the membrane is also permeable for N2 with the concentration gradient (which, according to Henry’s law, is proportional to the partial pressure gradient [23]) as driving force. A linear distribution of N2 across the PEM can be assumed [25], i.e. the crossover flux <sup>˜</sup> _j_ N <sup>cross</sup> 2 appears as coupling condition at the GDL - membrane interface [see Eq. (2.22)] only, <u>N</u> N <sup>cross</sup> 2 = _M_ <sup>˜</sup> N2 _k_ <sup>˜</sup> N2( _λ_ ) <sup>_p_</sup> <sup>˜C</sup> _._ (2.16) ˜ _j_ N <sup>cross</sup> 2 <u>N</u> <sup>C</sup> <u>2</u> <sup>_−_</sup> <sup>_p_</sup> <sup>˜</sup> <u>N</u> <sup>A</sup> <u>2</u> <sup>_−_</sup> <sup>_p_</sup> <sup>˜</sup> <u>N</u> <sup>A</sup> <u>2</u> _H_ ˜ PEM Here, _p_ ˜ <sup>C</sup> N <sup>C</sup> N2 <sup>and</sup> <sup>_p_</sup> <sup>˜A</sup> N Here, _p_ ˜ <sup>C</sup> N2 <sup>and</sup> <sup>_p_</sup> <sup>˜A</sup> N2 <sup>denote</sup> <sup>the</sup> <sup>nitrogen</sup> <sup>partial</sup> <sup>pressure</sup> <sup>at</sup> <sup>the</sup> <sup>cathode</sup> <sup>and</sup> <sup>anode</sup> <sup>GDL</sup> - membrane interface, respectively. The nitrogen permeance _k_ <sup>˜</sup> N2 depends on the membrane water content _λ_ . For a device temperature of _T_ <sup>˜</sup> = 343 _._ 15K the quadratic relation presented by Ahluwalia and Wang [26] is approximated by a line of best fit, _._ (2.17) _k_ ˜N2 = (0 _._ 2517 + 0 _._ 0373 _λ_ ) _×_ 10 <sup>_−_</sup> <sup>12</sup> ### 2.4 Electrochemical model DK <u>mol</u> s m Pa The cell potential _E_ <sup>˜</sup> cell is computed by subtracting the losses from the open-circuit cell potential _E_ <sup>˜</sup> OC, _,_ (2.18) _<u>R</u>_ ˜ _<u>T</u>_ ˜ _α_ c _F_ <sup>˜</sup> _E_ ˜cell = _E_ ˜OC _−_ ˜ _i_ _H_ ˜�PEM 0 <u>d</u> _<u>x</u>_ <u>˜2</u> _σ_ ˜( _λ_ ) <sup>_−_</sup> ln - ˜ _<u>i</u>_ ˜ _i_ 0 2.5 Coupling conditions 12 with the exchange current density <sup>˜</sup> _i_ 0 defined as [22] _<u>T</u>_ ˜ 1 _−_ _T_ ˜0,r - _γ_ c exp _<u>−E</u>_ <sup>˜</sup> <u>act</u> _R_ ˜ ˜ _T_ �� ˜ _i_ 0 = ˜ _i_ 0,r _a_ ˜c ˜ _L_ c - _<u>p</u>_ <u>˜O2</u> _p_ ˜O2,r _._ (2.19) In Eq. (2.18), the second and the third term on the right-hand side represent the ohmic loss due to membrane conductivity and the cathode activation polarisation loss, respectively. Because of the sluggish oxygen reduction, the polarisation losses at the anode side are negligibly small [22, 27]. The concentration polarisation losses on both sides are neglected since they play a role for high current densities only. For a constant device temperature, the ionic conductivity _σ_ ˜ used in Eq. (2.18) depends linearly on the membrane water content [2], _._ (2.20) _σ_ ˜ = ( _−_ 0 _._ 326 _f_ 1 + 0 _._ 5139 _f_ 2 _λ_ ) exp - <u>1286</u> 303 <sup>_−_</sup> <sup><u>1286</u></sup> _T_ ˜ <sup><u>K</u></sup> �� <u>S</u> m The parameters _αc_, <sup>˜</sup> _i_ 0,r _a_ ˜c _L_ <sup>˜</sup> c, _γ_ c, _f_ 1 and _f_ 2 in Eqs. (2.18), (2.19) and (2.20) can be used to fit the LIT model to an individual FC. ### 2.5 Coupling conditions The gas channel and GDL models on cathode and anode side are each governed by a system of six coupled equations, four differential Eqs. (2.9-2.11), and two algebraic Eqs. (2.12-2.13), the membrane water transport model and the electro-chemical model are governed by one partial differential Eq. (2.15) and one algebraic Eq. (2.18), respectively. In total, this results in 26 equations for 26 unknowns, valid in different domains, which must be merged by appropriate coupling conditions. 2.5 Coupling conditions 13 #### 2.5.1 Interface gas channel - GDL DK At the gas channel - GDL interface, the variable values and the appearing fluxes are coupled. At the cathode and the anode side, the corresponding values for the pressure, the density and the mass fractions are equal: _p_ ˜GC = _p_ ˜GDL _,_ _ρ_ ˜GC = _ρ_ ˜GDL _,_ _ξα,_ GC = _ξα,_ GDL _._ (2.21) The quasi-1D gas channel model already considers coupling fluxes at the interface due to the integral formulation. The mass fluxes _ρu_ 2 and _jα_ appear in the source terms _S_ m,s, in Eqs. (2.9,2.11). Even though a quasi-2D description is used, different gas channel and GDL widths in _x_ 3-direction [see Fig. 2.1(a)] are considered by scaling the exchange fluxes with the ratio of the widths _W_ <sup>˜</sup> GDL _/W_ <sup>˜</sup> GC, see Table 4.3. #### 2.5.2 Interface GDL - membrane DM The catalyst layers are assumed to be infinitely thin and therefore the source terms accounting for the electrochemical half-reactions appear in the GDL boundary layer connected to the PEM. The coupling conditions are formulated using the conservation of total species fluxes and assuming there is no convective flow through the PEM. The specific coupling conditions for the cathode and the anode fluxes read: N <sup>tot</sup> 2 <sup>= ˜</sup> <sup>_j_</sup> N <sup>cross</sup> 2 (2.22) ˜ _<u>iM</u>_ ˜ <u>H2O</u> _,_ 2 _F_ <sup>˜</sup> cathode: ˜ _j_ O <sup>tot</sup> 2 <sup>=</sup> ˜ _<u>iM</u>_ ˜ <u>O2</u> <u>O2</u> _,_ ˜ _j_ N <sup>tot</sup> 2 4 _F_ <sup>˜</sup> N <sup>cross</sup> 2 _,_ ˜ _j_ H <sup>tot</sup> 2 H <sup>tot</sup> 2O <sup>= ˜</sup> <sup>_j_</sup> <sup>w</sup> <sup>_−_</sup> N <sup>tot</sup> 2 <sup>= ˜</sup> <sup>_j_</sup> N <sup>cross</sup> 2 anode: ˜ _j_ H <sup>tot</sup> 2 <sup>=</sup> <sup>_−_</sup> anode: ˜ _j_ H <sup>tot</sup> 2 ˜ _<u>iM</u>_ ˜ <u>H2</u> <u>H2</u> _,_ ˜ _j_ N <sup>tot</sup> 2 2 _F_ <sup>˜</sup> N <sup>cross</sup> 2 _,_ ˜ _j_ H <sup>tot</sup> 2 H <sup>tot</sup> 2O <sup>=</sup> <sup>_−_</sup> <sup>˜</sup> <sup>_j_</sup> <sup>w</sup> <sup>_._</sup> Where <sup>˜</sup> _jγ_ <sup>tot</sup> = <sup>˜</sup> _jγ_ + _ρ_ ˜ _γu_ ˜ denotes the sum of diffusive and convective species flux. The membrane coupling conditions can be obtained via two different methods. First, by assuming water equilibrium at the GDL and PEM interface. Therefore, a semiempirical polynomial fit, proposed by Springer _et_ _al_ . [2], is used to relate the membrane 2.6 Boundary conditions <sup>DK</sup> 14 water content _λ_ to the GDL water vapour activity _a_ w = _p_ H2O _/p_ <sup>sat</sup> H2O <sup>,</sup> _λ_ = 0 _._ 043 + 17 _._ 81 _a_ w _−_ 39 _._ 85 _a_ <sup>2</sup> w <sup>3</sup> w <sup>_._</sup> (2.23) <sup>2</sup> w <sup>+ 36</sup> <sup>_._</sup> <sup>0</sup> <sup>_a_</sup> <sup>3</sup> w The normalised membrane water content, computed with Eq. (2.23), is used directly as Dirichlet boundary condition on both membrane interfaces. The second coupling method is based on a non-equilibrium transport model presented by Berg _et_ _al_ . [4]. Here, the water flux at the interface is assumed to be proportional to the difference between the actual membrane water content _λ_ a and the equilibrium membrane water content _λ_ at the membrane - GDL interface, ˜ _j_ w = _γ_ ˜w ( _λ_ a _−_ _λ_ ) _._ (2.24) The equilibrium water content _λ_ is again computed with Eq. (2.23). However, the value of the transport coefficient _γ_ ˜w is not known but influences the entire dynamics of FCs significantly [8]. Therefore, the equilibrium model, Eq. (2.23), is used for the upcoming validation presented in Sec. 4. Nevertheless, the LIT model also allows the use of the non-equilibrium coupling method, Eq. (2.24). ### 2.6 Boundary conditions DK Different operating modes can be obtained, depending on the applied set of boundary conditions. A mass driven model is obtained by defining the gas composition in terms of mass fractions _ξα_ and the velocity _u_ ˜1,in at the channel inlet as well as the ambient pressure _p_ ˜amb at the channel outlet, on both cathode and anode side. Alternatively, a pressure-driven model is achieved by replacing the inlet velocity with the pressure at the channel inlet. For the electrochemical model, a uniform potential distribution at the catalyst layers _E_ ˜cell is applied as boundary condition. # Chapter 3 Numerical treatment This section covers the numerical treatment of the presented LIT model in Matlab _�_ R, [28], i.e. the discretisation of the spatial and the temporal domains as well as the application of a linearisation scheme to obtain a linear system of equations. To enhance the flexibility of the model, an implicit coupling method connecting the channels and the GDLs allows to choose the number of inner slices independently from the channel nodes. ### 3.1 Discretisation #### 3.1.1 Spatial domain DM The spatial domains are treated with spectral methods; here a continuous solution is sought in terms of a Chebyshev polynomial by finding the function values of the polynomial at the nodes [29]. Spectral methods provide a high accuracy with a comparatively small number of computation nodes. To avoid spurious oscillations caused by higher order polynomial interpolation, increased node densities at the boundaries are necessary. Gauss-Lobatto points, _xi_ = cos ( _iπ/N_ ) _,_ _i_ = 0 _, . . . N_ with the number of nodes _N_, satisfy this request and are used to discretise all domains of the LIT model. Spatial derivatives at the discrete Gauss-Lobatto points _xi_ of an arbitrary function _f_ ( _x_ ) with 3.2 Linearisation in time (LIT) <sup>DK</sup> 16 _f_ ( _xi_ ) = _fi_ can be found by multiplying the function with the analytically determined, dense differentiation matrix, e.g. for the first order derivative _Dij_ <sup>(1),</sup> _fi_ <sup>_�_</sup> <sup>=</sup> _j_ _Dij_ <sup>(1)</sup> <sup>_fj._</sup> (3.1) The entries of the differentiation matrix _Dij_ <sup>(1)</sup> can be easily computed by means of the open source package chebfun [30]. As indicated in Fig. 2.1(b), the discretisation of all domains (channels, GDLs, membrane) and the number of inner slices can be chosen independently according to the desired resolution depth. Moreover, a GaussLobatto distribution of slices in _x_ 1-direction is favourable to avoid oscillations due to the polynomial interpolation coupling method, see Sec. 3.3.2. #### 3.1.2 Time domain DK The time derivatives are approximated by a finite difference scheme of second order accuracy, which is capable of variable time stepping, [31], - _<u>∂s</u>_ _∂t_ �( _n_ +1) = <sup><u>(1 + 2</u></sup> <sup>_<u>α</u>_</sup> <sup><u>)</u></sup> <sup>_<u>s</u>_</sup> <sup>(</sup> <sup>_n_</sup> <sup>+1)</sup> <sup>_<u>−</u>_</sup> <sup><u>(1 +</u></sup> <sup>_<u>α</u>_</sup> <sup><u>)2</u></sup> <sup>_<u>s</u>_</sup> <sup>(</sup> <sup>_n_</sup> <sup>) +</sup> <sup>_<u>α</u>_</sup> <sup>2</sup> <sup>_<u>s</u>_</sup> <sup>(</sup> <sup>_n−_</sup> <sup>1)</sup> + _O_ (1 + _α_ )Δ _t_ <sup>(</sup> <sup>_n_</sup> <sup>+1)</sup> �Δ _t_ <sup>2�</sup> _._ (3.2) Here the superscripts ( _n_ ) and ( _n_ + 1) denote the previous and the current instant of time, respectively, and _α_ is defined as the current time step ratio _α_ = Δ _t_ <sup>(</sup> <sup>_n_</sup> <sup>+1)</sup> _/_ Δ _t_ <sup>(</sup> <sup>_n_</sup> <sup>)</sup> . To adapt the time step Δ _t_ <sup>˜</sup> within a range of Δ _t_ <sup>˜</sup> = 0 _._ 001s _÷_ 0 _._ 035s, the rate of change between two time steps of the current density and the membrane water content is used, i.e. strong current density or membrane water content time gradients lead to a decreasing time step. ### 3.2 Linearisation in time (LIT) DK As shown in Sec. 2, a system of coupled nonlinear partial differential and algebraic equations has to be solved at each time step. Aiming at real-time capability, nonlinear 3.2 Linearisation in time (LIT) <sup>DK</sup> 17 terms cannot be treated with numerically expensive iterations. Therefore, a linearisation with respect to the previous time step, based on Taylor series expansion, [32], is applied. This scheme operates with the same truncation error _O_ (Δ _t_ <sup>2</sup> ) as the approximated time derivative, Eq. (3.2). For a quadratic term _su_ with respect to the current time step ( _n_ + 1) the scheme yields three terms - two linear terms evaluated at the current time step and one evaluated at the previous time step ( _n_ ), - _<u>∂s</u>_ _∂t_ �� _u_ <sup>(</sup> <sup>_n_</sup> <sup>)</sup> + �Δ _t_ <sup>2�</sup> �( _n_ ) Δ _t_ + _O_ _s_ <sup>(</sup> <sup>_n_</sup> <sup>+1)</sup> _u_ <sup>(</sup> <sup>_n_</sup> <sup>+1)</sup> = _s_ <sup>(</sup> <sup>_n_</sup> <sup>)</sup> + - _<u>∂s</u>_ _∂t_ �( _n_ ) Δ _t_ + _O_ - _<u>∂u</u>_ _∂t_ �Δ _t_ <sup>2�</sup> _−_ 2 _s_ <sup>(</sup> <sup>_n_</sup> <sup>)</sup> _u_ <sup>(</sup> <sup>_n_</sup> <sup>)</sup> + _O_ �( _n_ ) <sup>�</sup> �( _n_ ) <sup>�</sup> = _s_ <sup>(</sup> <sup>_n_</sup> <sup>)</sup> _u_ <sup>(</sup> <sup>_n_</sup> <sup>)</sup> + _u_ <sup>(</sup> <sup>_n_</sup> <sup>)</sup> _s_ <sup>(</sup> <sup>_n_</sup> <sup>)</sup> + + _s_ <sup>(</sup> <sup>_n_</sup> <sup>)</sup> - _<u>∂u</u>_ _∂t_ �Δ _t_ <sup>2�</sup> (3.3) _u_ <sup>(</sup> <sup>_n_</sup> <sup>)</sup> + _._ = _u_ <sup>(</sup> <sup>_n_</sup> <sup>)</sup> _s_ <sup>(</sup> <sup>_n_</sup> <sup>+1)</sup> + _u_ <sup>(</sup> <sup>_n_</sup> <sup>+1)</sup> _s_ <sup>(</sup> <sup>_n_</sup> <sup>)</sup> _−_ _u_ <sup>(</sup> <sup>_n_</sup> <sup>)</sup> _s_ <sup>(</sup> <sup>_n_</sup> <sup>)</sup> + _O_ �Δ _t_ <sup>2�</sup> Here, terms with respect to the current time step are highlighted in red. Applying this linearisation scheme, the approximation of the time derivative, Eq. (3.2), and the differentiation matrix [see Eq. (3.1)], e.g. the dimensionless conservation of mass derived in Sec. 2.2 reads: <sup>(</sup> _j_ <sup>_n_</sup> <sup>)</sup> + _u_ <sup>(</sup> 1 <sup>_n_</sup> _,j_ <sup>)</sup> <u>3</u> _<u>ρ</u>_ <sup>(</sup> _<u>i</u>_ <sup>_n_</sup> <sup>+1)</sup> _<u>−</u>_ <u>4</u> _<u>ρ</u>_ <sup>(</sup> _<u>i</u>_ <sup>_n_</sup> <sup>)</sup> <sup>(</sup> _<u>i</u>_ <sup>_n_</sup> <sup>)</sup> <u>+</u> _<u>ρ</u>_ <sup>(</sup> _<u>i</u>_ <sup>_n−_</sup> <sup>1)</sup> _u_ <sup>(</sup> 1 <sup>_n_</sup> _,j_ <sup>+1)</sup> <sup>(</sup> 1 <sup>_n_</sup> _,j_ <sup>+1)</sup> _ρ_ <sup>(</sup> _j_ <sup>_n_</sup> <sup>)</sup> <sup>(</sup> 1 <sup>_n_</sup> _,j_ <sup>)</sup> <sup>_ρ_</sup> _j_ <sup>(</sup> <sup>_n_</sup> <sup>+1)</sup> _−_ _u_ <sup>(</sup> 1 <sup>_n_</sup> _,j_ <sup>)</sup> <sup>(</sup> 1 <sup>_n_</sup> _,j_ <sup>)</sup> <sup>_ρ_</sup> _j_ <sup>(</sup> <sup>_n_</sup> <sup>)</sup> = _<u>i</u>_ _<u>i</u>_ + 2Δ _t_ - _N_ ca _j_ =1 _Dij_ <sup>(1)</sup> <sup>(</sup> _i_ <sup>_n_</sup> <sup>)</sup> + _u_ <sup>(</sup> 2 <sup>_n_</sup> _,i_ <sup>)</sup> (3.4) _u_ <sup>(</sup> 2 <sup>_n_</sup> _,i_ <sup>+1)</sup> _−_ <sup>_<u>W</u>_</sup> <sup><u>GDL</u></sup> _W_ GC <u>1</u> _H_ GC <sup>(</sup> 2 <sup>_n_</sup> _,i_ <sup>+1)</sup> _ρ_ <sup>(</sup> _i_ <sup>_n_</sup> <sup>)</sup> <sup>(</sup> 2 <sup>_n_</sup> _,i_ <sup>)</sup> <sup>_ρ_</sup> _i_ <sup>(</sup> <sup>_n_</sup> <sup>+1)</sup> _−_ _u_ <sup>(</sup> 2 <sup>_n_</sup> _,i_ <sup>)</sup> <sup>(</sup> 2 <sup>_n_</sup> _,i_ <sup>)</sup> <sup>_ρ_</sup> _i_ <sup>(</sup> <sup>_n_</sup> <sup>)</sup> _._ Here red coloured terms again denote variables with respect to the actual instant of time. The final linear system of equations A _�x_ = <sup>_�_</sup> _b,_ (3.5) for the entire FC model is obtained by systematic application of Eqs. (3.1-3.3) to all 3.2 Linearisation in time (LIT) <sup>DK</sup> 18 terms of the governing Eqs. (2.9-2.20) and the coupling conditions, Eqs. (2.21-2.23). For transient simulations of the PEMFC, for each time step the system matrix A and the right-hand side vector <sup>_�_</sup> _b_ have to be updated and the system has to be solved in an implicit manner. The vector _�x_ represents the unknown variables at the grid points, mentioned in Sec. 2.2 and 2.3, _�x_ <sup>C</sup> GC _�x_ <sup>A</sup> GC _�x_ <sup>C</sup> GDL,1 _�x_ PEM,1 _�x_ <sup>A</sup> GDL,1 _i_ cur,1 _�x_ <sup>C</sup> GDL,2 _�x_ PEM,2 _�x_ <sup>A</sup> GDL,2 _i_ cur,2 ... _�x_ <sup>C</sup> GDL _,n_ _�x_ PEM _,n_ _�x_ <sup>A</sup> GDL _,n_ _i_ cur _,n_ ... _p_ 11 ... _p_ 1 _n_ _ρ_ 11 ... _ρ_ 1 _n_   ... _p_ 1 ... _pn_ _ρ_ 1 ... _ρn_   _u_ 1 _,_ 1   ... _u_ 1 _,n_ _x_ H2O,1 ... _x_ H2O _,n_  �, _�x_ <sup>C</sup> GDL,1 <sup>=</sup>  ... _u_ 2 _,_ 1 _n_ _x_ H2O,11 ... _x_ H2O _,_ 1 _n_ _u_ 2 _,_ 11 _λ_ 11 ... _λ_ 1 _n_  .     _�x_ =   , _�x_ <sup>C</sup> GC <sup>=</sup> , _�x_ PEM,1 = Plotting the structure of the sparse matrix A in Fig. 3.1, the single domains can be identified as bordered blocks along the principal diagonal and the coupling conditions between the domains can be found at the minor diagonals. The dimension _NA_ of the square matrix A is given by, _,_ (3.6) _N_ u _N_ <sup>C</sup> GDL <sup>C</sup> <sup>+</sup> <sup>_N_</sup> <sup>A</sup> GDL GC + _N_ SL _NA_ = _N_ u _N_ <sup>C</sup> GC <sup>C</sup> <sup>+</sup> <sup>_N_</sup> <sup>A</sup> GC + _N_ PEM + 1 where _N_ GC, _N_ GDL, _N_ PEM denote the number of nodes in the corresponding domain, _N_ SL the number of slices and _N_ u = 6 the number of unknown variables for each grid point. Adding 1 within the squared bracket takes into account that the unknown current density appears only once per inner slice. For the discretisation, which is shown in Fig. 2.1(b) and further used to validate the LIT model, the square matrix A is of dimension _NA × NA_ = 356 <sup>2</sup> with a sparsity of 0 _._ 9675 (density 0 _._ 0325). 3.2 Linearisation in time (LIT) <sup>DK</sup> 19 coupling GC-GDL, slice 1 cathode GC coupling GDL-PEM anode GC cathode GDL anode GDL slice 2 coupling GC-GDL, slice 1 membrane N2 crossover slice 1 electro chemistry slice _N_ SL Figure 3.1: Structure of the sparse system matrix A as provided by the Matlab _�_ R command `spy` ( A ). Identification of the domains: cathode and anode channel (blue) and inner slices containing GDLs (red), PEM (orange) and the equation for electro chemistry (purple). Coupling: channel - GDL interface (green), GDL - membrane interface (cyan), N2 crossover (black). To avoid the nonlinearity appearing e.g. in the computation of the species depending mixture viscosity [18] and diffusion coefficients [20], such values are taken from the previous time step. This simplification is justified due to small material property alterations with respect to time. Moreover, the cubic relation for the membrane water sorption isotherm Eq. (2.23) is approximated by four lines of best fit for the range of 3.3 Coupling between gas channel and GDL 20 0 _≤_ _a_ w _<_ 1 (see Fig. 3.2) and kept constant for the region of a fully saturated membrane ( _a_ w _≥_ 1),  9 _._ 879 _a_ w + 0 _._ 342 _,_ 0 _≤_ _a_ w _<_ 0 _._ 199 4 _._ 120 _a_ w + 1 _._ 490 _,_ 0 _._ 199 _≤_ _a_ w _<_ 0 _._ 596 14 _._ 051 _a_ w _−_ 4 _._ 426 _,_ 0 _._ 596 _≤_ _a_ w _<_ 0 _._ 798 35 _._ 768 _a_ w _−_ 21 _._ 752 _,_ 0 _._ 798 _≤_ _a_ w _<_ 1 _._ 0 14 _._ 0 _,_ _a_ w _≥_ 1 _._ 0 _._ _λ_ =    (3.7) 14 cubic polynomial linear approximation 12 10 8 6 4 2 0 0 0.1 0.2 0.3 0.4 0.5 0.6 0.7 0.8 0.9 1 water vapour activity _a_ w [–] Figure 3.2: Linear approximation of Eq. (2.23) for the membrane water sorption isotherm, by four lines of constant slope, Eq. (3.7). ### 3.3 Coupling between gas channel and GDL To implement the coupling conditions, presented in Sec. 2.5.1 and to achieve independent discretisation such that the number of slices do not need to coincide with the channel nodes, a two-way coupling method is applied. 3.3 Coupling between gas channel and GDL 21 #### 3.3.1 Evaluation of the Chebyshev polynomial DK Spectral methods offer the possibility of evaluating the underlying Chebyshev polynomial at arbitrary positions [33]. Thus, variable values are known not only at each node, but everywhere in the corresponding domain. Therefore, implicitly evaluating the Chebyshev polynomial for the quantity at each slice position in the channel provides the coupling conditions for the differential equations of the GDL model, shown in Eq. (2.21). #### 3.3.2 Implicit polynomial interpolation DM The gas channel source terms shown in Table 2.1 contain the GDL fluxes, e.g. _ρu_ 2 or _jα_ in order to couple channel and GDL. The governing equations for the channel are solved for each channel node and the corresponding GDL flux terms ( _ρu_ 2, _jα_, etc.) have to be determined, even though they are not explicitly known for these positions. Therefore, an interpolation polynomial, _p_ <sup>(</sup> int <sup>_n_</sup> <sup>+1)</sup> ( _x_ 1) = - _N_ SL _i_ =1 _a_ <sup>(</sup> _i_ <sup>_n_</sup> <sup>+1)</sup> <sup>_i_</sup> 1 <sup>_−_</sup> <sup>1</sup> (3.8) <sup>(</sup> _i_ <sup>_n_</sup> <sup>+1)</sup> _x_ <sup>_i_</sup> 1 <sup>_−_</sup> <sup>1</sup> of order _N_ SL, with the number of slices _N_ SL, is expanded in an implicit manner. The coefficients _a_ <sup>(</sup> _i_ <sup>_n_</sup> <sup>+1)</sup> are determined by _a_ <sup>(</sup> _i_ <sup>_n_</sup> <sup>+1)</sup> = - _N_ SL _j_ =1 _ij_ <sup>_−_</sup> <sup>1</sup> <sup>_f_</sup> <sup>(</sup> _j_ <sup>_n_</sup> <sup>+1)</sup> _Vij_ <sup>_−_</sup> <sup>1</sup> <sup>(</sup> _j_ <sup>_n_</sup> <sup>+1)</sup> _,_ (3.9) where _Vij_ and _fj_ <sup>(</sup> <sup>_n_</sup> <sup>+1)</sup> where _Vij_ and _fj_ <sup>(</sup> <sup>_n_</sup> <sup>+1)</sup> denote the Vandermonde matrix and the GDL flux at the interface to the gas channel, respectively. The averaged flux _Fk_ <sup>(</sup> <sup>_n_</sup> <sup>+1)</sup> for the corresponding gas to the gas channel, respectively. The averaged flux _Fk_ <sup>(</sup> <sup>_n_</sup> <sup>+1)</sup> for the corresponding gas channel node _k_ = 1 _, . . . N_ GC, is obtained by integrating the interpolation polynomial 3.3 Coupling between gas channel and GDL 22 over the channel cell width Δ _x_ 1 _,k_ = _x_ 1 _,k_ +1 _−_ _x_ 1 _,k_, (3.10) - _N_ SL _i_ =1 <u>1</u> _Fk_ <sup>(</sup> <sup>_n_</sup> <sup>+1)</sup> = Δ _x_ 1 _,k_ _x_ �1 _,k_ +1 _p_ int <sup>(</sup> <sup>_n_</sup> <sup>+1)</sup> ( _x_ 1) d _x_ 1 = _x_ 1 _,k_ - _N_ SL _j_ =1 _x_ <sup>_i_</sup> <u>1</u> _<u>,k</u>_ <u>+1</u> <sup>_−_</sup> <sup>_x_</sup> <u>1</u> <sup>_i_</sup> _<u>,k</u>_ _i_ Δ _x_ 1 _,k_ _Vij_ <sup>_−_</sup> <sup>1</sup> _fj_ <sup>(</sup> <sup>_n_</sup> <sup>+1)</sup> = - _N_ SL _j_ =1 _Bkj_ _fj_ <sup>(</sup> <sup>_n_</sup> <sup>+1)</sup> _._ Since the entries of _Bkj_ are constant in time, they can be computed in a pre-processing step and act as coefficients embedded in the matrix A in Eq. (3.5). # Chapter 4 Validation and discussion DM _x_ 3 _x_ 1 _x_ 2 _W/_ 2 _L_ _H_ _x_ 3 _x_ 2 cathode GC cathode GDL membrane anode GDL anode GC Figure 4.1: Computational domain used for 3D PEMFC simulations in AVL Fire <sup>TM</sup> with a total number of 23207 cells. The presented LIT model implemented in Matlab _�_ R, [28], is validated against 3D simulations performed with the well-established commercial CFD package AVL Fire <sup>TM</sup>, [14]. Overall predictive capabilities are presented in terms of polarisation curves and the accuracy of spatial distributions of current density and species is discussed for 4 Validation and discussion <sup>DM</sup> 24 selected steady-state operating points. To investigate the transient behaviour, the current density responses to changes of relative humidity at the inlet and cell potential are analysed. Discretised domains for the LIT model and the 3D simulations are displayed in Fig. 2.1(b) and Fig. 4.1, respectively. The LIT model discretisation of _N_ GC <sup>C,A</sup> <sup>= 8,</sup> <sup>_N_</sup> <sup>C,A</sup> GDL <sup>= 4,</sup> _N_ PEM = 3 and _N_ SL = 5 was chosen to assure real-time capability during all presented simulations. Furthermore, a grid convergence study resulted in this discretisation as best compromise between accuracy and computation time. To minimise the computational effort in the AVL Fire <sup>TM</sup> simulations, a symmetry condition is used, reducing the total number of computational cells substantially. For all simulations, a constant operation temperature of _T_ <sup>˜</sup> cell = 343 _._ 15K and co-flow mode, i.e. both, cathode and anode channel flow in positive _x_ 1-direction, is used. The boundary conditions are shown Parameter, [unit] Symbol Value Inlet mean velocity, [m s <sup>_−_</sup> <sup>1</sup> ] cathode _u_ ˜1,in 4 _._ 5 anode _u_ ˜1,in 4 _._ 5 Inlet gas mole fraction, [–] O2 cathode _y_ O2 0 _._ 21 N2 cathode _y_ N2 0 _._ 79 H2 anode _y_ H2 0 _._ 996 N2 anode _y_ N2 0 _._ 004 Relative humidity at the inlet, [%] operating point RH20 _/_ 20 cathode/anode RH 20 _/_ 20 operating point RH50 _/_ 40 cathode/anode RH 50 _/_ 40 operating point RH80 _/_ 80 cathode/anode RH 80 _/_ 80 Outlet pressure, [Pa] cathode _p_ ˜amb 101325 anode _p_ ˜amb 101325 Cell potential, [V] _E_ ˜cell 0 _._ 5 _÷_ 1 _._ 2 Table 4.1: PEMFC boundary conditions for both AVL Fire <sup>TM</sup> and LIT model simulations. 4 Validation and discussion <sup>DM</sup> 25 in Table 4.1, geometry data and material properties are listed in Table 4.3. A benchmark polarisation curve is established with AVL Fire <sup>TM</sup> simulations, red curve RH50 _/_ 40 in Fig. 4.2, by altering the cell potential from 1 _._ 2V to 0 _._ 5V with a constant relative humidity RH of 50% and 40% at the cathode and anode inlet, respectively. The fitting parameters presented in Sec. 2.4 are modified manually to adjust the result obtained by the LIT model with respect to the benchmark polarisation curve. To evaluate the LIT models’ predictive capabilities, polarisation curves with a relative humidity of 20% and 80% at both channel inlets, represented by RH20 _/_ 20 and RH80 _/_ 80 in Fig. 4.2, respectively, are computed keeping all fitting parameters unchanged. For a high inlet relative humidity the polarisation curve qualitatively and quantitatively agrees with the 3D simulations, and deviations are of the same order of magnitude as the error between the fitted and the benchmark curve (RH50 _/_ 40). For lower inlet relative 1.2 1.1 1.0 0.9 0.8 0.7 0.6 0.5 3D AVL Fire LIT model C B A <u>liquid</u> <u>water</u> <u>formation</u> 0.4 0 5000 10000 15000 current density <sup>˜</sup> _i_ [A m <sup>_−_</sup> <sup>2</sup> ] Figure 4.2: Polarisation curves simulated in AVL Fire <sup>TM</sup> and the LIT model. The red lines represent the fitted benchmark case, the black and the blue lines represent the LIT model’s predictive capability for different inlet humidification. 4 Validation and discussion <sup>DM</sup> 26 humidity a qualitative agreement, which could be further improved by an optimised fitting process, is obtained. Although phase changes are not considered within the LIT model, the normalised membrane water content can be used as an indicator for liquid water formation. Light blue dots in Fig. 4.2 indicate either a membrane water content _λ_ _≥_ 14 in the LIT model or a liquid water volume fraction _>_ 0 in the AVL Fire <sup>TM</sup> simulation. Good agreement is also found in this regard. Thus, prediction of liquid water formation is assured by the LIT model. To analyse the current density distribution along _x_ 1-direction, detailed results for selected steady-state operating points, denoted as A, B and C in Fig. 4.2, are presented in Fig. 4.3. Since all operating points are compared at equal cell potential _E_ <sup>˜</sup> cell = 0 _._ 7V, the current density offsets between the 3D and the LIT model for each relative humidity configuration in Fig. 4.2 obviously occur again in the detailed analyse in Fig. 4.3. However, characteristics agree in both models for different inlet humidification. 8000 3D AVL Fire LIT model 7000 6000 5000 4000 3000 2000 RH20 _/_ 20 0 0.1 0.2 0.3 0.4 0.5 0.6 0.7 0.8 0.9 1 _x_ 1-direction [1] Figure 4.3: Current density distribution in _x_ 1-direction for selected operating points A - black, B - red and C - blue as shown in Fig. 4.2 with different relative humidity at the inlet and _E_ <sup>˜</sup> cell = 0 _._ 7V. 4 Validation and discussion <sup>DM</sup> 27 <u>cathode</u> <u>gas</u> <u>channel,</u> _<u>γ</u>_ <u>:</u> <u>O</u> <u>2</u> <u>,</u> <u>N</u> <u>2</u> <u>,</u> <u>H</u> <u>2</u> <u>O</u> 1 1 0.8 0.6 0.4 0.2 0 <u>anode</u> <u>gas</u> <u>channel,</u> _<u>γ</u>_ <u>:</u> <u>H</u> <u>2</u> <u>,</u> <u>N</u> <u>2</u> <u>,</u> <u>H</u> <u>2</u> <u>O</u> (b) 0.8 0.6 0.4 0.2 0 3D AVL Fire LIT model (a) 0 0.2 0.4 0.6 0.8 1 norm. channel length [–] (c) 14 12 10 8 6 4 0 0.2 0.4 0.6 0.8 1 norm. channel length [–] membrane 2 0 1 0.5 0 0 1 0.8 0.6 0.4 0.2 Figure 4.4: Cathode channel (a), anode channel (b) and membrane (c) species distribution for 3D AVL Fire <sup>TM</sup> and the LIT model for a cell potential _E_ <sup>˜</sup> cell = 0 _._ 7V and an inlet humidification of 20% at cathode and anode channel inlet. Coloured lines represent different species: red - O2, magenta - H2, black - N2, blue - H2O. Fine and coarse grid for membrane water content indicates 3D AVL Fire <sup>TM</sup> and LIT model, respectively. In Figs. 4.4-4.6, the species mole fraction distribution along the cathode and the anode channels as well as the two dimensional membrane water content distribution are presented in the first, the second and the third row, respectively. Figures 4.4, 4.5 and 4.6 represent one of the three selected operating points A, B and C in Fig. 4.2, respectively. The species distributions for RH20 _/_ 20 in Figs. 4.4(a,b) show remarkably good agreement with the 3D simulation results. Moreover, the accuracy is sustained at the membrane water content distribution shown in Fig. 4.4(c), where the LIT model results are slightly below the AVL Fire <sup>TM</sup> simulation with an offset of Δ _λ ≈_ 0 _._ 1. 4 Validation and discussion <sup>DM</sup> 28 <u>cathode</u> <u>gas</u> <u>channel,</u> _<u>γ</u>_ <u>:</u> <u>O</u> <u>2</u> <u>,</u> <u>N</u> <u>2</u> <u>,</u> <u>H</u> <u>2</u> <u>O</u> <u>anode</u> <u>gas</u> <u>channel,</u> _<u>γ</u>_ <u>:</u> <u>H</u> <u>2</u> <u>,</u> <u>N</u> <u>2</u> <u>,</u> <u>H</u> <u>2</u> <u>O</u> 1 1 0.8 0.6 0.4 0.2 0 3D AVL Fire LIT model 0.8 0.6 0.4 0.2 0 (a) (b) 0 0.2 0.4 0.6 0.8 1 norm. channel length [–] (c) 14 12 10 8 6 4 0 0.2 0.4 0.6 0.8 1 norm. channel length [–] membrane 1 0.8 0.6 0.4 0.2 0 0 2 0 1 0.5 Figure 4.5: Cathode channel (a), anode channel (b) and membrane (c) species distribution for 3D AVL Fire <sup>TM</sup> and the LIT model for a cell potential _E_ <sup>˜</sup> cell = 0 _._ 7V and an inlet humidification of 50% and 40% at cathode and anode channel inlet, respectively. Coloured lines represent different species: red - O2, magenta - H2, black - N2, blue H2O. Fine and coarse grid for membrane water content indicates 3D AVL Fire <sup>TM</sup> and LIT model, respectively. For increased inlet humidification RH50 _/_ 40 (benchmark case), the mole fraction distributions in Figs. 4.5(a,b) again match the 3D reference results. In Fig. 4.5(c), the 3D simulation and the LIT model represented by the fine and the coarse grid, respectively, coincide almost exactly. The rising gradient in _x_ 1-direction resulting from a higher current density and therefore increasing reaction water production can be reproduced by the LIT model, even though no _x_ 1 dependency of _λ_ exists due to the quasi-2D discretisation. Note that the axes are normalised with the FC’s length _L_ <sup>˜</sup> and the membrane 4 Validation and discussion <sup>DM</sup> 29 <u>cathode</u> <u>gas</u> <u>channel,</u> _<u>γ</u>_ <u>:</u> <u>O</u> <u>2</u> <u>,</u> <u>N</u> <u>2</u> <u>,</u> <u>H</u> <u>2</u> <u>O</u> <u>anode</u> <u>gas</u> <u>channel,</u> _<u>γ</u>_ <u>:</u> <u>H</u> <u>2</u> <u>,</u> <u>N</u> <u>2</u> <u>,</u> <u>H</u> <u>2</u> <u>O</u> 1 1 0.8 0.6 0.4 0.2 0 3D AVL Fire LIT model 0.8 0.6 0.4 0.2 0 (a) (b) 0 0.2 0.4 0.6 0.8 1 norm. channel length [–] (c) 14 12 10 8 6 4 0 0.2 0.4 0.6 0.8 1 norm. channel length [–] membrane 1 0.8 0.6 0.4 0.2 0 0 2 0 1 0.5 Figure 4.6: Cathode channel (a), anode channel (b) and membrane (c) species distribution for 3D AVL Fire <sup>TM</sup> and the LIT model for a cell potential _E_ <sup>˜</sup> cell = 0 _._ 7V and an inlet humidification of 80% at cathode and anode channel inlet. Coloured lines represent different species: red - O2, magenta - H2, black - N2, blue - H2O. Fine and coarse grid for membrane water content indicates 3D AVL Fire <sup>TM</sup> and LIT model, respectively. height _H_ <sup>˜</sup> PEM in _x_ 1- and _x_ 2-direction, respectively. For the operating point C, with the highest considered relative humidity at the inlet, RH80 _/_ 80, deviations between the LIT model and the AVL Fire <sup>TM</sup> simulation appear in Figs. 4.6(a,b). Here, liquid water was found over half of the FC length in the AVL Fire <sup>TM</sup> simulation, also indicated by the kink in the membrane water distribution in Fig. 4.6(c). This operating condition is far beyond the LIT model capabilities, since water is assumed to be gaseous only and liquid water formation is not considered. As 4 Validation and discussion <sup>DM</sup> 30 11000 10000 9000 8000 7000 6000 5000 4000 3000 2000 (i) 0 10 20 30 40 50 60 time _t_ <sup>˜</sup> [s] (i) 3200 3000 2800 2600 5 5.1 5.2 (ii) RH50/40 RH20/20 (ii) 4700 4500 4300 4100 10 10.1 10.2 Figure 4.7: Dynamic current density response for a change of relative humidity at the inlet within 0 _._ 01s from 20% on both sides to 50% and 40% on cathode and anode side, respectively. a consequence, the partial pressure of gaseous water _p_ H2O can exceed the saturation partial pressure _p_ sat. Whenever major deviations in the species distribution, as in Fig. 4.6(a) appear, the saturation partial pressure _p_ sat was found to be exceeded in the LITmodel results. This again reflects the accuracy of liquid water prediction in terms of membrane water content. However, at the anode side no liquid water emerges, thus the species distribution is reproduced properly in Fig. 4.6(b). A detailed validation of transient processes is difficult, as experimental data is hardly available. Therefore, the LIT model results are analysed with respect to higher order FC models presented by Wang and Wang [9] and Wu _et_ _al_ . [34]. Therefore, four state changes are considered in Fig. 4.7 and Fig. 4.8. In Fig. 4.7, the current density responses to increasing relative humidity at the inlet for a cell potential of _E_ <sup>˜</sup> cell = 0 _._ 7V (dashed line) and _E_ <sup>˜</sup> cell = 0 _._ 6V (solid line) are displayed. 4 Validation and discussion <sup>DM</sup> 31 Both simulations start form a steady-state with a relative humidity at both channel inlets of 20%. During the first 0 _._ 01s the relative humidity at the inlet is increased in a smooth ramp-like change to 50% and 40% on cathode and anode side, respectively. Keeping all other boundary conditions unchanged, a new steady-state is reached after approximately 20s to 40s, which is in accordance with the results of both Wang and Wu, who observed time intervals between 10s to 60s to reach steady-state conditions with their simulations. According to Wang and Wang [9], the time constant _τ_ ˜m for membrane hydration can be estimated by _τ_ ˜m = <sup><u>2</u></sup> <sup>_<u>F</u>_</sup> <sup>˜</sup> ˜ _i_ _<u>ρ</u>_ <u>˜PEM</u> _<u>H</u>_ <sup>˜</sup> <u>PEMΔ</u> _<u>λ</u>_ ˜ EW _._ (4.1) For the considered Nafion type membrane [24] (EW <sup>˜</sup> = 1 _._ 1kg mol <sup>_−_</sup> <sup>1</sup>, _ρ_ ˜PEM = 2024 _._ 7kg m <sup>_−_</sup> <sup>3</sup> ) with thickness _H_ <sup>˜</sup> PEM = 35 _µ_ m, Δ _λ_ = 14 and <sup>˜</sup> _i_ = 10000A m <sup>_−_</sup> <sup>2</sup>, _τ_ ˜m is about 17s. This estimation is in good agreement with the times required to reach the steady-state seen in Fig. 4.7. In comparison, for a Nafion 112 membrane with _H_ <sup>˜</sup> PEM = 51 _µ_ m, Wang computed a time constant _τ_ ˜m = 25s. The details (i) and (ii) in Fig. 4.7 provide a view at the short time period (0 _÷_ 0 _._ 2s) after the boundary conditions are changed. Due to the increasing relative humidity at the inlet, the membrane ionic conductivity and therefore the current density is increased at the beginning of the cell, resulting in a temporal current density maximum within the first 0 _._ 05s in both simulations. As a consequence of higher humidified inlet gases, the amount of fuel gases is reduced. When these higher humidified gases reach parts of the PEM further downstream, a converse effect results in a temporarily decreasing current density until about 0 _._ 1s. However, the ongoing membrane humidification results in an increasing conductivity and the reaction current density rises on the long term scale. In Fig. 4.8, the dynamic current density responses are displayed for a smoothly increased cell potential from _E_ <sup>˜</sup> cell = 0 _._ 6V to _E_ <sup>˜</sup> cell = 0 _._ 7V within 0 _._ 01s. Starting form a steadystate, these state changes are performed with a relative humidity at the channel inlet of 20% on both sides (dashed line) as well as 50% and 40% on cathode and anode side, respectively (solid line). For the sake of visualisation, the state changes are initiated at arbitrary times of 5s and 10s. The details (i) and (ii) in Fig. 4.8, show that both response curves undergo an initial undershoot followed from an overshoot, which both 4 Validation and discussion <sup>DM</sup> 32 11000 _E_ ˜cell = 0 _._ 6V 10000 9000 8000 7000 6000 5000 4000 3000 2000 2800 2750 _E_ ˜cell = 0 _._ 7V (i) (ii) 4700 4600 4500 0 0.1 0.2 (ii) (i) 2700 0 0.1 0.2 0 10 20 30 40 50 60 time _t_ <sup>˜</sup> [s] Figure 4.8: Dynamic current density response to an increasing cell potential from _E_ <sup>˜</sup> cell = 0 _._ 6V to _E_ <sup>˜</sup> cell = 0 _._ 7V within 0 _._ 01s. are similarly reported by Wang and Wang [9] and Wu _et_ _al._ [34]. The dynamics on the long term scale again show the dominance of the membrane water transport. _N_ <u>GC</u> <sup>C,A</sup> <u>GC</u> <sup>C,A</sup> _N_ <u>GDL</u> <sup>C,A</sup> <u>GDL</u> <sup>C,A</sup> _N_ PEM _N_ SL _NA_ _× NA_ _SA_ _t_ c 8 4 3 5 356 <sup>2</sup> 0.968 44.57s 8 4 5 5 366 <sup>2</sup> 0.968 51.66s 10 4 3 5 380 <sup>2</sup> 0.966 57.17s 8 6 3 5 476 <sup>2</sup> 0.971 62.15s 8 4 3 7 460 <sup>2</sup> 0.974 75.22s Table 4.2: Required computation time _t_ c for various discretisations for an inlet humidification change from RH20/20 to RH50/40 with a cell potential _E_ <sup>˜</sup> cell = 0 _._ 7V presented as dashed line in Fig. 4.2(a) with a simulation time of 60s. _N_ GC <sup>C,A,</sup> <sup>_N_</sup> <sup>C,A</sup> GDL <sup>,</sup> <sup>_N_</sup> <sup>PEM</sup> <sup>and</sup> GC <sup>C,A,</sup> <sup>_N_</sup> <sup>C,A</sup> GDL as dashed line in Fig. 4.2(a) with a simulation time of 60s. _N_ GC <sup>C,A,</sup> <sup>_N_</sup> <sup>C,A</sup> GDL <sup>,</sup> <sup>_N_</sup> <sup>PEM</sup> <sup>and</sup> _N_ SL denote the number of nodes for the gas channel, the GDL, the membrane and the number of inner slices, respectively. The dimension and the sparsity of the square system matrix A in Eq. (3.5) are indicated as _NA × NA_ and _SA_, respectively. 4 Validation and discussion <sup>DM</sup> 33 The platform, used to compute all presented LIT model results was an energy-saving Intel NUC Kit (Intel Core i5-5300U vPro 2.3GHz CPU, 8GB RAM). Although this platform is not optimised for running fast simulations, due to the applied linearisation scheme, the use of spectral methods and the quasi-2D discretisation, the computation of a single time step requires less than 25ms for the computational domain presented in Fig. 2.1(b). The implementation of variable time stepping further enhances realtime capability, i.e. during periods of strong time gradients the time step decreases to accurately resolve the state variations and vice versa during periods of little changes. For the transient simulations presented in Fig. 4.7 and Fig. 4.8 the dynamical time step adjustment leads to different computation times even though the simulation time remains equal. Whereas the simulations with an increasing relative humidity in Fig. 4.7 require 43.89s and 44.57s for a cell potential of _E_ <sup>˜</sup> cell = 0 _._ 6V and _E_ <sup>˜</sup> cell = 0 _._ 7V, respectively, the simulations with a changing cell potential in Fig. 4.8 need 50.16s and 43.89s with a lower (RH20/20) and higher (RH50/40) inlet humidification, respectively. However, real-time capability is maintained for all these simulations. In order to give an overview how the LIT model’s resolution affects the required computation time, the inlet humidification change from RH20/20 to RH50/40 with _E_ <sup>˜</sup> cell = 0 _._ 7V, represented by the dashed line in Fig. 4.2, is simulated with different discretisations. The computation times are listed in Table 4.2, where at each row only one domain is discretised differently with respect to the resolution used for the validation (first row). A look at the discretised quasi-2D model in Fig. 2.1(b) immediately reveals that a different number of GDL nodes _N_ GDL <sup>C,A</sup> <sup>or inner slices</sup> <sup>_N_</sup> <sup>SL</sup> <sup>has the strongest influence on computation time.</sup> <sup>Even though</sup> the dimension _NA × NA_ of the system matrix, defined in Eq. (3.6), increases drastically from 356 <sup>2</sup> to 460 <sup>2</sup> by using two more inner slices, the computation time not even doubles since the high sparsity is maintained (see Table 4.2). 4 Validation and discussion <sup>DM</sup> 34 Parameter, [unit] Symbol Value PEMFC temperature, [K] _T_ ˜cell 343 _._ 15 PEMFC length, [m] _L_ ˜ 0 _._ 12 _Channel_ anode height, [m] _H_ ˜ GC 0 _._ 25 _×_ 10 <sup>_−_</sup> <sup>3</sup> width, [m] _W_ ˜ GC 0 _._ 5 _×_ 10 <sup>_−_</sup> <sup>3</sup> cathode height, [m] _H_ ˜ GC 0 _._ 25 _×_ 10 <sup>_−_</sup> <sup>3</sup> width, [m] _W_ ˜ GC 1 _×_ 10 <sup>_−_</sup> <sup>3</sup> _GDL_ _cathode_ _and_ _anode_ height, [m] _H_ ˜ GDL 3 _×_ 10 <sup>_−_</sup> <sup>3</sup> width, [m] _W_ ˜ GDL 1 _._ 5 _×_ 10 <sup>_−_</sup> <sup>3</sup> porosity, [–] _ε_ 0.78 Bruggeman exponent, [–] _q_ 1.5 hydraulic permeability, [m <sup>2</sup> ] _κ_ ˜ 1 _._ 07 _×_ 10 <sup>_−_</sup> <sup>14</sup> _Catalyst_ _layer_ electrode roughness, [–] _a_ ˜c _L_ <sup>˜</sup> c 500 activation energy for O2 reduction _E_ ˜act 66 _×_ 10 <sup>3</sup> on Pt, [J mol <sup>_−_</sup> <sup>1</sup> ] reference exchange current density, [A m <sup>_−_</sup> <sup>2</sup> ] ˜ _i_ 0,r 0 _._ 2 _×_ 10 <sup>_−_</sup> <sup>3</sup> open circuit potential, [V] _E_ ˜OC 1 _._ 229 reference O2 partial pressure, [Pa] _p_ ˜O2,r 101250 reference temperature for <sup>˜</sup> _i_ 0, [K] _T_ ˜0 _,_ r 298 _._ 15 pressure dependency coefficient, [–] _γ_ c 1 _Membrane_ thickness, [m] _H_ ˜ PEM 3 _._ 5 _×_ 10 <sup>_−_</sup> <sup>6</sup> membrane density,[kg m <sup>_−_</sup> <sup>3</sup> ] _ρ_ ˜PEM 2024 _._ 7 equivalent weight, [kg mol <sup>_−_</sup> <sup>1</sup> ] EW˜ 1 _._ 1 N2 permeance at _T_ <sup>˜</sup> = 343 _._ 15K, [10 <sup>9</sup> _×_ mol(s m Pa) <sup>_−_</sup> <sup>1</sup> ] LIT model _k_ ˜N2 251 _._ 7 + 37 _._ 3 _λ_ AVL Fire <sup>TM</sup> _k_ ˜N2,F 5 _._ 0321 water diffusion coefficient _D_ ˜ w 8 _._ 9277 _λ ×_ 10 <sup>_−_</sup> <sup>11</sup> at _T_ <sup>˜</sup> = 343 _._ 15K, [m <sup>2</sup> s <sup>_−_</sup> <sup>1</sup> ] electro-osmotic drag coefficient at _T_ <sup>˜</sup> = 343 _._ 15K, [–] _C_ drag 0 _._ 1578 _λ_ ionic conductivity fitting parameter, [–] _f_ 1; _f_ 2 1; 0 _._ 8 Table 4.3: Geometrical dimensions and material properties of the simulation. # Chapter 5 Conclusion and outlook DK A dynamical PEMFC model for real-time applications, addressing essential physical phenomena and nonlinear effects within a quasi-2D description, was proposed. Spectral methods, providing high accuracy with little computation nodes, are used for the discretisation of the spatial domains. Based on the continuous solution in terms of a Chebyshev polynomial, an integral coupling method for gas channel and GDL was formulated, allowing to choose the number of inner slices independently from the channel nodes. Moreover, to achieve real-time capability, a linearisation scheme was introduced, which enables a non-iterative solution method for the coupled nonlinear governing equations and operates with the same truncation error _O_ (Δ _t_ <sup>2</sup> ) as the approximated time derivative. The model was validated in detail against 3D simulations performed with the commercial CFD package AVL Fire <sup>TM</sup> . Steady-state solutions for various inlet humidification agreed excellently in terms of species and current density distributions as well as polarisation curve prediction. Even though water phase transition is not considered in this work, the model was found to be capable of accurate liquid water prediction. In dynamical simulations the model was able to capture the same effects, e.g. time constants for membrane hydration and current density undershoots by increasing relative humidity at the inlet, as other authors [10, 34] found with higher resolving 3D simulations. Furthermore, for all presented results, real-time capability was encountered, even though the simulations were performed on an energy saving Intel NUC Kit (Intel Core i5-5300U vPro 2.3GHz CPU, 8GB RAM). Next to widespread dynamical parameter studies the model may also be used as a state observer in online control units. 5 Conclusion and outlook <sup>DK</sup> 36 In a future investigation, we aim at including temperature distribution and its inherent effects on the cell performance, e.g. by considering the conservation of energy with liquid water formation. # Acknowledgement Financial support provided by the Christian Doppler Laboratory for innovative control and monitoring of powertrain systems together with AVL List GmbH is gratefully acknowledged. # Nomenclature Generally, superscript tilde denotes dimensional quantities. Latin letters _A_ ˜ cross-sectional area, [m <sup>2</sup> ] _a_ ˜c _L_ <sup>˜</sup> c electrode roughness, meaning catalyst surface area per electrode geometric area, [–] _a_ w water vapour activity, [–] _C_ drag electro-osmotic drag coefficient in the membrane, [–] _D_ ˜ binary diffusion coefficient, [m <sup>2</sup> s] _D_ ˜ H hydraulic diameter, [m] _D_ ˜ w water diffusion coefficient in the membrane, [m <sup>2</sup> s <sup>_−_</sup> <sup>1</sup> ] _E_ ˜act activation energy for O2 reduction on platinum, [J mol <sup>_−_</sup> <sup>1</sup> ] _E_ ˜cell cell potential, [V] _E_ ˜OC open-circuit potential, [V] ˜ EW equivalent weight of the dry membrane, [kg mol <sup>_−_</sup> <sup>1</sup> ] _F_ ˜ Faraday constant, 96485.3365 C mol <sup>_−_</sup> <sup>1</sup> _f_ 1 _,_ 2 fitting parameters for PEM ionic conductivity, [–] _F_ c hydraulic diameter correction factor, [–] _f_ D Darcy-Weisbach friction factor, [–] _H_ ˜ height of channel, GDL, membrane, [m] ˜ _i_ reaction current density, [A m <sup>_−_</sup> <sup>2</sup> ] ˜ _i_ 0 exchange current density, [A m <sup>_−_</sup> <sup>2</sup> ] <u>5</u> <u>Conclusion</u> <u>and</u> <u>outlook</u> <sup>DK</sup> <u>39</u> ˜ _j_ diffusive species flux, [kg m <sup>_−_</sup> <sup>2</sup> s <sup>_−_</sup> <sup>1</sup> ] ˜ _j_ <sup>tot</sup> total species flux, [kg m <sup>_−_</sup> <sup>2</sup> s <sup>_−_</sup> <sup>1</sup> ] _K_ 1 _−_ 6 dimensionless group, [–] _K_ e,p dimensionless group, [–] _k_ ˜N2 nitrogen permeance in the PEM, [mol (s m Pa) <sup>_−_</sup> <sup>1</sup> ] _L_ ˜ PEMFC length, [m] ˜ _M_ molar mass, [kg mol <sup>_−_</sup> <sup>1</sup> ] _p_ ˜ pressure, [Pa] _p_ ˜amb ambient pressure, [Pa] _p_ ˜ <sup>sat</sup> saturation pressure, [Pa] _q_ Bruggeman exponent, [–] _R_ ˜ universal gas constant, 8.314 J (mol K) <sup>_−_</sup> <sup>1</sup> RH relative humidity at channel inlet, [–] _S_ m,u,s source terms for conservation of mass, momentum and species, respectively _T_ ˜ temperature, [K] _T_ ˜cell cell temperature, [K] _t_ ˜ time, [s] Δ _t_ <sup>˜</sup> time step, [s] _u_ ˜ velocity, [m s <sup>-1</sup> ] _u_ ˜in inlet velocity, [m s <sup>_−_</sup> <sup>1</sup> ] _u_ ˜ _α_ species velocity, [m s <sup>_−_</sup> <sup>1</sup> ] _W_ ˜ width of channel, GDL, membrane, [m] Greek symbols _α_ c catalyst layer transfer coefficient, [–] _ε_ gas phase volume fraction in porous media, [–] _γ_ c pressure dependency factor for electrochemical reaction, [–] _γ_ ˜w membrane water transport coefficient, [mol m <sup>_−_</sup> <sup>2</sup> s <sup>_−_</sup> <sup>1</sup> ] 5 Conclusion and outlook <sup>DK</sup> 40 _κ_ ˜ hydraulic permeability, [m <sup>2</sup> ] _λ_ normalised membrane water content, [–] _λ_ act actual normalised membrane water content in non-equilibrium model, [–] _µ_ ˜ dynamic viscosity, [Pa s] _ρ_ ˜ density, [kg m <sup>-3</sup> ] _σ_ ˜ membrane ionic conductivity, [S m <sup>_−_</sup> <sup>1</sup> ] _τ_ ˜w wall shear stress, [N m <sup>_−_</sup> <sup>2</sup> ] _ξ_ mass fraction, [–] Subscripts and superscripts A anode C cathode r reference value Abbrevations CFD computational fluid dynamics FC fuel cell GC gas channel GDL gas diffusion layer H2 hydrogen H2O water LIT linearisation in time N2 nitrogen O2 oxygen PDE partial differential equation PEM proton exchange membrane PEMFC proton exchange membrane fuel cell SL slice # Bibliography [1] D.M. Bernardi, M.W. Verbrugge, A Mathematical Model of the Solid-Polymer Electrolyte Fuel Cell, J. Electrochem. Soc. 139 (9) (1992) 2477–2491. [2] T.E. Springer, T.A. Zawodzinski, S. Gottesfeld, Polymer Electrolyte Fuel Cell Model, J. Electrochem. Soc. 138 (8) (1991) 2334–2342. [3] K. Dannenberg, P. Ekdunge, G. Lindbergh, Mathematical model of the PEMFC, J. Appl. Electrochem. 30 (2000) 1377–1387. [4] P. Berg, K. Promislow, J.S. Pierre, J. Stumper, B. Wetton, Water Management in PEM Fuel Cells, J. Electrochem. Soc. 151 (3) (2004) A341–A353. [5] S.A. Freunberger, M. Santis, I.A. Schneider, A. Wokaun, F.N. Büchi, In-Plane Effects in Large-Scale PEMFCs Model Formulation and Validation, J. Electrochem. Soc. 153 (2) (2006) A396–A405. [6] A.A. Kulikovsky, Semi-analytical 1D + 1D model of a polymer electrolyte fuel cell, Electrochem. Commun. 6 (2004) 696–977. [7] H. Wu, P. Berg, X. Li, Numerical analysis of dynamic processes in fully humidified PEM fuel cells, Int. J. Hydrogen Energy 32 (2007) 2022–2031. [8] H. Wu, X. Li, P. Berg, On the modeling of water transport in polymer electrolyte membrane fuel cells, Electrochim. Acta 54 (2009) 6913–6927. Bibliography 42 [9] Y. Wang, C.Y Wang, Transient analysis of polymer electrolyte fuel cells, Elec trochim. Acta 50 (6) (2005) 1307–1315. [10] Y. Wang, C.Y Wang, Dynamics of polymer electrolyte fuel cells undergoing load changes, Electrochim. Acta 51 (2006) 3924–3933. [11] P.R. Pathapati, X. Xue, J. Tang, A new dynamic model for predicting transient phenomena in a PEM fuel cell system, Renewable Energy 30 (2005) 1–22. [12] F. Gao, B. Blunier, A. Miraoui, A. El Moudni, A Multiphysic Dynamic 1-D Model of a Proton-Exchange-Membrane Fuel-Cell Stack for Real-Time Simulation, IEEE Trans. Ind. Electron. 57 (6) (2010) 1853–1864. [13] P. Massonnat, F. Gao, R. Roche, D. Paire, D. Bouquain, A. Miraoui, Multiphysical, multidimensional real-time PEM fuel cell modeling for embedded applications, Energy Convers. Manage. 88 (2014) 554–564. [14] AVL List GmbH Manual AVL FIRE version 2014, AVL Fire (2014). [15] J. Spurk, N. Aksel, Fluid Mechanics, 2nd Edition, Springer, Berlin Heidelberg, 2008. [16] A.A. Hill, B. Straughan, Poiseuille flow in a fluid overlying a highly porous material, Adv. Water Resour. 32 (11) (2009) 1609–1614. [17] H. Herwig, Strömungsmechanik - Einfürung in die Physik von technischen Strö mungen, 2nd Edition, Springer, Wiesbaden, 2016. [18] C.R. Wilke, A Viscosity Equation for Gas Mixtures, J. Chem. Phys 18 (4) (1950) 517–519. [19] E.L. Cussler, Diffusion: mass transfer in fluid systems, 3rd Edition, Cambridge Univ. Press, 2009. [20] C. Fink, Modelling and simulation of multiphase transport phenomena in porous media with application to PEM fuel cells, Ph.D. thesis, Graz University of Tech Bibliography 43 nology (August 2009). [21] E. Fuller, P. Schettler, J. Giddings, New method for prediction of binary gas-phase diffusion coefficients, Ind. Eng. Chem. 58 (5) (1966) 18–27. [22] F. Barbir, PEM fuel cells, 2nd Edition, Elsevier Inc., 2013. [23] M. Mulder, Basic Principles of Membrane Technology, 2nd Edition, Kluwer Aca demic Publishers, 1996. [24] L. Karpenko-Jereb, P. Innerwinkler, A.-M. Kelterer, C. Sternig, C. Fink, P. Pren ninger, R. Tatschl, A novel membrane transport model for polymer electrolyte fuel cell simulations, Int. J. Hydrogen Energy 39 (2014) 7077–7088. [25] A. Rabbani, M. Rokni, Effect of nitrogen crossover on purging strategy in PEM fuel cell systems, Appl. Energy 11 (2013) 1061–1070. [26] R.K. Ahluwalia, X. Wang, Buildup of nitrogen in direct hydrogen polymer electrolyte fuel cell stacks, J. Power Sources 171 (2007) 63–71. [27] A.A. Kulikovsky, Analytical Modelling of Fuel Cells, Elsevier, Amsterdam, 2010. [28] The Mathworks, Inc., Natick, Massachusetts, United States, MATLAB Release 2015a (2015). [29] L.N. Trefethen, Spectral Methods in Matlab, SIAM, Philadelphia, 2000. [30] L.N. Trefethen et al., Chebfun [version](http://www.chebfun.org) 5.3.0 (2015). URL `[http://www.chebfun.org](http://www.chebfun.org)` [31] S. Scheichl, S. Braun, A. Kluwick, On a similarity solution in the theory of unsteady marginal separation, Acta Mech. 201 (2008) 153–170. [32] T.W.H. Sheu, R.K. Lin, Newton lineraization of the incompressible Navier-Stokes equations, Int. J. Numer. Meth. Fluids 44 (2004) 297–321. Bibliography 44 [33] J.P. Berrut, L.N. Trefethen, Barycentric Lagrange Interpolation, SIAM Rev. 46 (3) (2004) 501–517. [34] H. Wu, P. Berg, X. Li, Non-isothermal transient modeling of water transport in PEM fuel cells, J. Power Sources 165 (2007) 232–243. [35] Verein Deutscher Ingenieure, VDI Heat Atlas, 2nd Edition, Springer Berlin Hei delberg, Berlin, Heidelberg, 2010. [36] National Institute of Standards and Technology, NIST [Chemistry](http://webbook.nist.gov/chemistry/fluid/) WebBook, ac cessed: 2017-05-09. URL `[http://webbook.nist.gov/chemistry/fluid/](http://webbook.nist.gov/chemistry/fluid/)` [37] L. Greengard, Spectral integration and two-point boundary value problems, SIAM J. Numer. Anal. 28 (4) (1991) 1071–1080. # Appendix A Dimensionless groups DM To obtain the non-dimensional form of the governing equations, consequently each variable is replaced by a dimensionless variable multiplied with a characteristic reference value. For an arbitrary variable _s_ ˜ this reads: _s_ ˜ = _s_ ˜r _s,_ where _s_ ˜, _s_ ˜r and _s_ denote a dimensional, characteristic and dimensionless variable, respectively. Characteristic values for each variable and domain are listed in Table A.1. Hence, the dimensionless groups appearing in Table 2.1 and Eq. (2.15) read: _<u>W</u>_ ˜ <u>GDL</u> _W_ ˜ GC _<u>W</u>_ ˜ <u>GDL</u> _W_ ˜ GC _<u>L</u>_ ˜1 _H_ ˜ GC <u>8</u> Re <sup>_,_</sup> _K_ 1 <sup>C,A</sup> = _<u>L</u>_ ˜1 _H_ ˜ GC <u>1</u> _K_ 2 <sup>C,A</sup> = Pe <sup>_,_</sup> _K_ 3 <sup>C,A</sup> 3 <sup>C,A</sup> = _K_ 1 <sup>C,A</sup> 1 <sup>C,A</sup> _,_ _K_ 4 <sup>C,A</sup> 4 <sup>C,A</sup> = Sc _,_ <u>EW˜</u> <sup>˜</sup> _<u>i</u>_ <u>r</u> _<u>t</u>_ <sup>˜</sup> <u>PEM,r</u> _<u>C</u>_ <u>drag</u> _ρ_ ˜PEM _H_ <sup>˜</sup> PEM _F_ _K_ 5 <sup>C,A</sup> = _<u>L</u>_ ˜ _κ_ ˜ <sup>2</sup> <u>2</u> <sup>Sc</sup> <sup>_,_</sup> _K_ 6 = _._ Dimensionless groups appearing in Eqs. (2.10) and (2.13) read: _K_ p _,_ 1 = <sup><u>1</u></sup> _F_ c _,_ _K_ p _,_ 2 = 1 _,_ _K_ e <sup>C,A</sup> _,a_ <sup>=</sup> _<u>R</u>_ ˜ _<u>T</u>_ ˜r _U_ ˜ _a_ 2 _M_ ˜ r _._ A Dimensionless groups <sup>DM</sup> 46 channel, _a_ = 1 GDL, _a_ = 2 PEM ˜ ( _·_ )r cathode anode cathode anode _E_ cell - - - - _E_ OC _i_ - - - - _i_ r _ρ_ H2 _D_ <sup>2</sup> GDL _p_ _ρ_ air _u_ <sup>2</sup> <sup>2</sup> 1,in _ρ_ H2 _u_ <sup>2</sup> <sup>2</sup> 1,in _ρ_ air _D_ <sup>2</sup> <u>O2,H2O</u> _H_ GDL <sup>2</sup> <u>H2,H2O</u> _H_ GDL <sup>2</sup> GDL _T_ _T_ cell _T_ cell _T_ cell _T_ cell _T_ cell _<u>L</u>_ _t_ _u_ 1,in _<u>L</u>_ _u_ 1,in <u>GDL</u> _D_ O2,H2O _<u>D</u>_ <u>O2,H2O</u> _<u>H</u>_ <sup>2</sup> _t_ <u>GDL</u> <u>GDL</u> <u>PEM</u> _u_ 1,in _u_ 1,in _D_ O2,H2O _D_ H2,H2O _D_ w _<u>D</u>_ <u>O2,H2O</u> _<u>D</u>_ <u>H2,H2O</u> _u_ _u_ 1,in _u_ 1,in _H_ GDL _H_ GDL _L_ _L_ _L_ _H_ GDL _H_ GDL _H_ PEM _D_ - - _D_ O2,H2O _D_ H2,H2O _D_ w _M_ _M_ O2 _M_ H2 _M_ O2 _M_ H2 _µ_ _µ_ air _µ_ H2 _µ_ air _µ_ H2 _ρ_ _ρ_ air _ρ_ H2 _ρ_ air _ρ_ H2 _ρ_ PEM <u>GDL</u> _D_ H2,H2O _<u>D</u>_ <u>H2,H2O</u> _<u>H</u>_ <sup>2</sup> _<u>H</u>_ <sup>2</sup> _H_ GDL _H_ GDL Table A.1: Characteristic values used to obtain the dimensionless formulation of the governing equations. Since all entries in this table are dimensional values, tilde is omitted for simplicity. Commonly used dimensionless groups such as the Reynolds number Re, the Schmidt number Sc and the Peclet number Pe appearing in the coefficients above are defined for cathode and anode as follows. Their numerical values are computed, with reference values used for the validation (see Tables 4.1, 4.3 and A.2). cathode: Re = <sup>_<u>u</u>_</sup> <sup><u>˜1,in</u></sup> <sup>_<u>D</u>_</sup> <sup>˜</sup> <sup><u>H</u></sup> <sup>_<u>ρ</u>_</sup> <sup><u>˜air</u></sup> _µ_ ˜air _<u>µ</u>_ <u>˜air</u> Sc = _D_ ˜O2,H2O _ρ_ ˜air = 88 _._ 86 _,_ = 0 _._ 6 _,_ Pe = <sup>_<u>u</u>_</sup> <sup><u>˜1,in</u></sup> <sup>_<u>H</u>_</sup> <sup>˜</sup> <sup><u>GDL</u></sup> _D_ ˜O2,H2O = 39 _._ 96 _,_ A Dimensionless groups <sup>DM</sup> 47 anode: Re = <sup>_<u>u</u>_</sup> <sup><u>˜1,in</u></sup> <sup>_<u>D</u>_</sup> <sup>˜</sup> <sup><u>H</u></sup> <sup>_<u>ρ</u>_</sup> <sup><u>˜H2</u></sup> _µ_ ˜H2 _<u>µ</u>_ <u>˜H2</u> Sc = _D_ ˜H2,H2O _ρ_ ˜H2 = 10 _._ 79 _,_ = 1 _._ 24 _,_ Pe = <sup>_<u>u</u>_</sup> <sup><u>˜1,in</u></sup> <sup>_<u>H</u>_</sup> <sup>˜</sup> <sup><u>GDL</u></sup> _D_ ˜H2,H2O = 12 _._ 02 _._ Parameter, reference, [unit] Symbol Value molar mass O2, [35], [kg mol <sup>_−_</sup> <sup>1</sup> ] _M_ ˜ O2 31 _._ 9988 _×_ 10 <sup>_−_</sup> <sup>3</sup> molar mass H2, [35], [kg mol <sup>_−_</sup> <sup>1</sup> ] _M_ ˜ H2 2 _._ 016 _×_ 10 <sup>_−_</sup> <sup>3</sup> dynamic viscosity air, [35], [Pa s] _µ_ ˜air 20 _._ 56 _×_ 10 <sup>_−_</sup> <sup>6</sup> dynamic viscosity H2, [36], [Pa s] _µ_ ˜H2 9 _._ 813 _×_ 10 <sup>_−_</sup> <sup>6</sup> density air, [35], [kg m <sup>_−_</sup> <sup>3</sup> ] _ρ_ ˜air 1 _._ 015 density H2, [36], [kg m <sup>_−_</sup> <sup>3</sup> ] _ρ_ ˜H2 0 _._ 0706 binary diffusion coefficient, [21] O2-H2O, [m <sup>2</sup> s <sup>_−_</sup> <sup>1</sup> ] _D_ ˜O2,H2O 26 _._ 52 _×_ 10 <sup>_−_</sup> <sup>6</sup> H2-H2O, [m <sup>2</sup> s <sup>_−_</sup> <sup>1</sup> ] _D_ ˜H2,H2O 112 _._ 36 _×_ 10 <sup>_−_</sup> <sup>6</sup> reference current density, [A m <sup>_−_</sup> <sup>2</sup> ] ˜ _i_ r 14000 Table A.2: Reference gas properties at _T_ <sup>˜</sup> = 343 _._ 15K, _p_ ˜ = 10 <sup>5</sup> Pa and reference current density used to compute dimensionless groups. Due to the lack of a characteristic convective velocity in the GDLs, the reference velocity _u_ ˜2,r is computed via the corresponding reference diffusion coefficient (see Table A.1). This and neglecting diffusion in the gas channels lead to the Schmidt number Sc and the Reynolds number Re as single dimensionless groups characterising the GDL and the gas channel, respectively. Consequently, the Peclet number Pe = _u_ ˜1,r _/u_ ˜2,r appears as ratio of the characteristic velocities for channel and GDL, in the source terms which are coupling these domains. # Appendix B LIT PEMFC model - user guide The LIT PEMFC model is a real-time capable reduced order fuel cell model based on a quasi-2D discretisation [3] and the application of a linearisation with respect to the previous time step [32], solved with a Chebyshev collocation method. In the corresponding domains, the model encounters the following physical phenomena: _•_ The gas channels (GCs) are assumed to be convection driven only. _•_ In the gas diffusion layers (GDLs) convection, multicomponent diffusion described by generalised Fick’s law of diffusion are assumed as driving forces. Darcy’s law is considered for the pressure loss in the porous media. _•_ For the proton exchange membrane (PEM) water transport, electro-osmotic drag and water diffusion are considered and the membrane nitrogen (N2) crossover is driven by a partial pressure gradient. _•_ For the electrochemical model, activation losses on cathode side and the membrane ohmic losses depending on the membrane water loading are considered. The entire model is implemented in Matlab _�_ R, [28] and structured in three different categories: 1. three input files: B LIT PEMFC model - user guide 49 # input files #### geometry data material properties boundary conditions # main file # assistant files #### characteristic values coefficients time loop 5.1 dynamic change of boundary conditions 5.2 update results structure fin 5.3 solve linear system of equations 5.4 save results for current time step 1. load input data 2. build differentiation matrices 3. set BCs or restart file as initial conditions 4. build up structure of the system matrix 5. start transient simulation 6. save results of transient simulation result structure # result file results_N5x3x2x3x5x5_U120_t60.mat simulation end time voltage _×_ 100 at end time number of slices ANO channel nodes ANO GDL nodes membrane nodes CAT GDL nodes CAT channel nodes result file saved by default in directory _results_ fin.P.* fin.U.* fin.xi.* fin.lambda( _x_ 2, _x_ 1,Δ _t_ ) fin.Ucell(Δ _t_ ) fin.icur( _x_ 2, _x_ 1,Δ _t_ ) fin.iaverage(Δ _t_ ) fin.timestep(Δ _t_ ) fin.bc fin.mat fin.y.* fin.rho.* fin.disc.* .cc(1, _x_ 1,Δ _t_ ) .gc( _x_ 2, _x_ 1,Δ _t_ ) .ga( _x_ 2, _x_ 1,Δ _t_ ) .ca(1, _x_ 1,Δ _t_ ) Figure B.1: LIT-Model flow diagram. Green fields denote domains for user interaction. B LIT PEMFC model - user guide 50 _•_ `Geometry.m`, _•_ `Material.m`, _•_ `Boundary` <u>`Conditions.m`</u>, 2. two assistant files: _•_ `Characteristic` `Values.m`, _•_ `Coefficients.m` and 3. one main file: _•_ `Main.m` . The flow diagram in Fig. B.1 illustrates the interaction between the different files. _x_ 1 modelled domain _x_ 2 _x_ 3 _W_ GC <sup>C</sup> _H_ GDL <sup>C</sup> _H_ GC <sup>C</sup> _W_ GC <sup>A</sup> _W_ <sup>C</sup> GDL <sup>C</sup> <sup>=</sup> <sup>_W_</sup> <sup>A</sup> _H_ PEM _H_ GDL <sup>A</sup> _L_ <sup>A</sup> GDL <sup>=</sup> <sup>_W_</sup> <sup>PEM</sup> Figure B.2: Modelled domain considered in the LIT model with the corresponding dimensions. Whereas the width of anode and cathode gas channel can be different, the width of GDLs and membrane must be equal. B.1 Input files <sup>DM</sup> 51 ### B.1 Input files DM #### B.1.1 Geometry data Here the proton exchange membrane fuel cell (PEMFC) geometry data for the different domains, namely: 1. the gas channel, 2. the gas diffusion layer, 3. the catalyst layer and 4. the proton exchange membrane are defined, see Fig. B.2. Note, whereas the length of all domains and the width of the PEM and the anode (ANO) and the cathode (CAT) GDL must be equal, the channel widths on anode and cathode side can be chosen independently, as indicated in Fig. B.2. For further use during the computation, all values set in the file `Geometry.m` are saved in the structure `geom` . #### B.1.2 Material properties Set universal constants and material properties: _•_ the universal gas constant _R_ and the Faraday constant _F_, _•_ the feed gas molar masses, the viscosity of the present species, etc., _•_ the GDL permeability and the volume fraction, B.1 Input files <sup>DM</sup> 52 _•_ the thickness, the water permeability and the ohmic conductivity of the PEM and _•_ properties for the electrochemical reaction such as the activation energy, the reference oxygen O2 partial pressure, etc. The desired coupling method between GDL and membrane can be selected here. The two possibilities are: _•_ Assuming equilibrium between GDL and membrane and hence coupling these domains via the equilibrium membrane water sorption presented by Springer _et_ _al_ . [2]. Therefore, the normalised membrane water content _λ_ at the interface is computed by the GDL’s water vapour activity _a_ w, _λ_ = 0 _._ 043 + 17 _._ 81 _a_ w _−_ 39 _._ 85 _a_ <sup>2</sup> w <sup>2</sup> w <sup>+ 36</sup> <sup>_._</sup> <sup>0</sup> <sup>_a_</sup> <sup>3</sup> w <sup>3</sup> w <sup>_._</sup> (B.1) _•_ Use the non-equilibrium approach of Berg _et_ _al_ . [4], which computes a flux <sup>˜</sup> _j_ w across the interface from the difference between equilibrium membrane water content _λ_ and the actual non-equilibrium value _λ_ a, by defining a water transfer coefficient _γ_ ˜w, ˜ _j_ w = _γ_ ˜w ( _λ_ a _−_ _λ_ ) _._ (B.2) 71 `%` `MEMBRANE` `COUPLING` `( equilibrium / nonequilibrium )` 72 `mem_cpl` `=` `’equilibrium ’` `%` `Springer` `polynomial` 73 `%` `mem_cpl` `=` `’nonequilibrium ’` `%` `gamma` `law` 74 `%` `TRANSFER` `COEFFICIENT` `FOR` `NON - EQUILIBRIUM` `MEMBRANE/GDL` `COUPLING` `[Berg2004],` `[mol` ``` /(m^2 s)] ``` 75 `mem.` `gamma` `.a` `=` `1e -2;` 76 `mem.` `gamma` `.c` `=` `1e -2;` Next to material properties, fitting parameters - allowing to calibrate the electrochemical properties, the membrane ohmic conductivity with respect to an existing set-up can be adjusted in this file. The following fitting parameters for the electrochemical reaction in Eqs. (2.18), (2.19) can be tuned: B.1 Input files <sup>DM</sup> 53 _•_ catalyst layer transfer coefficient _α_ ˜, _•_ electrode roughness, meaning catalyst surface area per electrode geometric area _a_ ˜c _L_ <sup>˜</sup> c, _•_ pressure dependency factor for electrochemical reaction _γ_ ˜c and _•_ reference exchange current density, <sup>˜</sup> _i_ 0,r. For the membrane ohmic conductivity [2], Eq. (2.20), two fitting parameters _f_ 1 _, f_ 2 can be used: - <u>1286</u> (B.3) _σ_ ˜ = ( _−_ 0 _._ 326 _f_ 1 + 0 _._ 5139 _f_ 2 _λ_ ) exp The corresponding lines in the material file read: 126 `%` `ELECTROCHEMISTRY` `FITTING` `PARAMETERS` 127 `%` `REFERENCE` `EXCHANGE` `CURRENT` `DENSITY` `[A/m^2]` 128 `cl.i0_ref` `=` `200e -6;` 129 `%` `ELECTROCATALYTIC` `SURFACE` `AREA` `[1/m]` 130 `cl.a_c` `=` `1000;` 131 `%` `CATALYST` `LOADING` `[mg` `Pt/cm ^2]` 132 `cl.L_c` `=` `0.5;` 133 `%` `PRESSURE` `DEPENDENCY` `FACTOR` 134 `cl.` `gamma` `=` `1;` 135 `%` `TRANSFER` `COEFFICIENT` `CATALYST` `LAYER` 136 `cl.alpha` `=` `.57;` 137 `%` `CONDUCTIVITY` `FITTING` `PARAMETER` 138 `con_fitB` `=` `0.8;` 139 `con_fitA` `=` `1;` - <u>1286</u> 303 <sup>_−_</sup> <sup><u>1286</u></sup> _T_ ˜ <sup><u>K</u></sup> For further use in the computation, all values entered in the file `Material.m` are saved in the structure `mat` . #### B.1.3 Boundary conditions In the file `Boundary_Condition.m`, the general simulation settings are defined: _•_ the inlet and outlet boundary conditions of the GCs, B.1 Input files <sup>DM</sup> 54 _•_ the fuel cell voltage, _•_ the preferred operating modes, _•_ the simulation time, the time step, activation of variable time stepping, _•_ the spatial discretisation, _•_ the initialisation and the start of a simulation from a restart file. Inlet and outlet boundary conditions of the GCs On both anode and cathode side, the feed gas compositions must be set at the gas channel inlet. Note that only two out of three mass fractions can be set, as the third one is calculated via the closure equation <sup>�3</sup> _i_ =1 <sup>_xi_</sup> <sup>= 1.</sup> <sup>Similar,</sup> <sup>the</sup> <sup>density</sup> <sup>can</sup> <sup>not</sup> <sup>be</sup> set as a boundary condition, as it is directly coupled to the pressure by the equation of state for and therefore, part of the solution. Next to the inlet mass fractions, the pressure at the channel outlet and, depending on the operating mode, either the inlet velocity or pressure is set as boundary condition, i.e. mass or pressure driven operation (see Fig. B.4). Fuel cell potential A constant cell potential on the bipolar plates is assumed in the electrochemical model, i.e. neglecting ohmic losses of the GDLs. By setting the cell voltage as boundary condition, the current density distribution is computed considering activation losses on the cathode side and membrane ohmic losses, see Fig. B.3. Operating modes The LIT model handles multiple operating modes; whereas mass or pressure driven operation is achieved by using different sets of boundary conditions, feed gas configuration B.1 Input files <sup>DM</sup> 55 1 _._ 2 1 _._ 0 0 _._ 8 0 _._ 6 0 _._ 4 0 _._ 2 reversible potential activation losses ohmic <u>losses</u> concentration losses 0 5000 10000 15000 current density[A/m <sup>2</sup> ] Figure B.3: Polarisation curve with activation potential, ohmic and concentration potential losses. for co- or counter flow is realised by exchanging the anode channel boundary conditions for inlet and outlet, see Fig. B.4. In the case of counter-flow simply the anode GC flow direction is switched. To chose the desired operating mode, the corresponding lines have to be commented out. The corresponding set of boundary conditions is automatically applied at the required computational nodes. 28 `%%` `2.` `INLET` `PROPERTIES` 29 `%` `FLOW` `DIRECTION` `(co -flow/counter -flow)` 30 `flow` `=` `’co’` 31 `%` `flow` `=` `’counter ’` 32 `%` `MASS` `TRANSPORT` `(mass/pressure` `driven)` 33 `transport` `=` `’mass ’` 34 `%` `transport` `=` `’pressure ’` Variable time stepping The time derivative is approximated by a scheme of second order in time _O_ (Δ _t_ <sup>2</sup> ) capable of variable time stepping, see Eq. (3.2). If this is enabled, the constant time step defined in the `Boundary` <u>`Conditions.m`</u> file serves as the initial time step and the B.1 Input files <sup>DM</sup> 56 _p_ out _p_ out _x_ 1 _x_ 3 _x_ 2 _u_ in _ξγ,_ in _p_ in _ξγ,_ in mass driven pressure driven Figure B.4: Different boundary conditions are applied for mass or pressure driven simulations. actual time step is increased or decreased linearly if the time gradients of current density or membrane water content go below or above an empirical value ( `iGradLim_u,` `iGradLim_l,` `lambdaGradLim` ) respectively. The time step adoption is limited to a user defined domain [Δ _t_ min _,_ Δ _t_ max]. Currently, empirical values for the time gradient of the membrane water content and the current density are used as limit values for the time step adjustment. The factors `ts` <u>`increase`</u> and `ts_decrease` are applied to increase the time step ratio _α_, respectively. For these settings, the corresponding lines in the boundary conditions file read: 19 `%%` `1.` `TIME` `DISCRETISATION` 20 `endtime` `=` `120;` 21 `%` `VARIABLE` `TIME` `STEP` `(on/off)` 22 `varDT` `=` `’on’` 23 `%` `varDT` `=` `’off ’` 24 `%` `VARIABLE` `TIME` `STEP` `(parameters` `for` `time` `step` `change,` `see` `Sec.` `6.` `further` `down` ``` ) ``` 25 `dtLim_u` `=` `3.5e -2;` `%` `upper` `limit` `time` `step` 26 `dtLim_l` `=` `1e -3;` `%` `lower` `limit` `time` `step` 27 `%` `CONSTANT` `TIME` `STEP` 28 `timestep` `=` `1e -3;` 140 `%%` `5.` `PARAMETERS` `FOR` `VARIABLE` `TIME` `STEP` 141 `lambdaGradLim` `=` `1.3;` `%` `limit` `to` `decrease` `time` `step` 142 `iGradLim_u` `=` `550;` `%` `limit` `to` `decrease` `time` `step` 143 `iGradLim_l` `=` `350;` `%` `limit` `to` `increase` `time` `step` 144 `ts_decrease` `=` `0.5;` `%` `factor` `to` `decrease` `time` `step` B.1 Input files <sup>DM</sup> 57 145 `ts_increase` `=` `1.02;` `%` `factor` `to` `increase` `time` `step` Spatial discretisation As displayed in Fig. 2.1(a), the discretisation of each domain can be set independently. However, the multiple inner slices are discretised equally. The dimension _NA_ of the square matrix A, given by Eq. (3.6) clearly shows that the number of slices _N_ SL significantly influences the dimension of A and therefore the required computation time, see Table 4.2. A range of typical discritisations for each domain are given in Table B.1. The number of membrane nodes may affect simulation stability, for more details see [37]. domain discretisation cathode channel nodes 5 _÷_ 20 anode channel nodes 5 _÷_ 20 number of inner slices 4 _÷_ 10 cathode GDL nodes 4 _÷_ 8 anode GDL nodes 4 _÷_ 8 membrane nodes 3 _÷_ 5 Table B.1: Typical discretisations for all domains Initialisation - use restart file By default, the computational domain of the gas channels are initialised with the applied boundary conditions. Whereas the boundary conditions of the mass fractions and zero velocity are used as initial value for the GDLs, the membrane water content _λ_ is either set to be in equilibrium with the cathode or the anode GDL’s water activity _a_ w. Therefore the water sorption isotherm, Eq. (B.1), which for the LIT model is approximated by four lines of best fit, see Fig. 3.2, Eq. (2.23) is used. However, it is recommended to use the anode water activity to initialise the membrane water content. B.2 Assistant files <sup>DK</sup> 58 To restart from a previous simulation, simply the name of the restart file must be defined, i.e. the name of the automatically saved result file. Note, the discretisation of the spatial domain must be equal to the discretisation used in the restart file. Moreover, if the state in the restart file is not a steady-state, a restart may be harsh. The corresponding lines in the boundary conditions file read: 100 `%%` `4.` `INITIALISATION` 101 `restart_file_name` `=` `’results_N6x4x4x4x6x5_U60_t120_RH5040 .mat ’;` 102 103 104 `%` `INITIALISE` `MEMBRANE` `IN` `EQUILIBRIUM` `WITH` `GDL` 105 `initialise` `=` `’ANO ’;` `%` `( recommended )` 106 `%` `initialise` `=` `’CAT ’;` All values set in the file `Boundary_Conditions.m` are saved in the structure `bc` for further use in the computation. ### B.2 Assistant files DK #### B.2.1 Characteristic values The characteristic values set in this file are used to derive the non-dimensional form of the governing equations. These values must not be changed. #### B.2.2 Coefficients Coefficients which emerge by deriving the non-dimensional form of the governing equations are defined here. These coefficients must not be changed. B.3 Main file <sup>DM</sup> 59 ### B.3 Main file DM This file is loading the input parameters, running the simulation, saving and plotting the results in the following order: #### B.3.1 Load data The input data from the files presented in Sec. B.1 and Sec. B.2 are compiled and loaded here. This ensures that all changes made in different input files are considered. #### B.3.2 Assistant variables Constant variables such as differentiation matrices, coefficient matrices for the implicit coupling method (described in Sec. 3.3) etc., required for the function `SystemMatrix.m`, see Sec. B.4.1, which builds up and solves the linear system of equations, are computed. #### B.3.3 Initial conditions The simulation is initialised as defined in the `Boundary_Conditions.m` file, see Sec. B.1.3. #### B.3.4 Time loop In the marching scheme of a transient simulation, the governing equations must be solved once at each discrete time step. The function `SystemMatrix.m` builds up and solves the linear system of equations, see Sec. B.4.1. To run a transient simulation B.3 Main file <sup>DM</sup> 60 with dynamic boundary conditions, the time depending boundary conditions must be applied within the time loop. Therefore, the desired conditions must be changed in the structure `bc` . For, e.g. a ramp change of the cathode channel inlet velocity this reads: 283 `while` `time` `<=bc.endtime` 284 `%%` `5.1` `CHANGE` `DYNAMIC` `BOUNDARY` `CONDITIONS` 285 `%` `####### begin` `changes ####### begin` `changes ####### begin` `changes #############` 286 `%` `use` `BC_physical` `for` `smooth` `BC` `change` 287 `if` `time` `>` `t_start` `&&` `time` `<` `(t_start` `+` `t_change)` 288 `bc.u_in.cc` `=` `bc.u_in_old.cc` `+` `(newBC` `-` `bc.u_in_old.cc)*( t_start` `+` ``` t_change)/time; ``` 289 `end` In order to change the boundary conditions in a physically smooth manner, the function `bc_physical.m` can be used, see Sec. B.4.4. #### B.3.5 Save results If the simulation end time (set in the `Boundary_Conditions.m` file) is reached, the result structure `fin` is saved inside the folder _results_ with the labelling displayed in Fig. B.1. The indices of the result structure `fin` can easily be identified in Fig. B.5. Δ _t_ _x_ 1 _x_ 2 cc gc ga ca cathode channel anode channel <mark>membrane</mark> Figure B.5: Illustration of the dimension and structure of the result file `fin` . B.3 Main file <sup>DM</sup> 61 For completeness the structures `geom`, `mat` and `bc`, created by the corresponding input files, are saved within the result structure as `fin.geom,` `fin.mat` and `fin.geom` . To save further values simply embed them in the structure `fin` . #### B.3.6 Plot results By default, after the simulation has finished and the results are saved, chosen values are plotted to visualise the results: _•_ `Figure(2)` displays the normalised membrane water content. _•_ `Figure(3)` and `Figure(4)` display detailed results for the cathode and anode side, respectively. In the upper row form left to right, the mole fractions in the gas channel, the velocity in the gas channel and the average current density as well as potential of the fuel cell are plotted over time. In the bottom row the mesh plot represents the distribution of the GDL mole fraction. _•_ `Figure(5)` displays overall results of the fuel cell. In the upper row from left to right the first two plots represent the gas channel mole fraction for the anode and cathode side and the third plot displays the average current density as well as the fuel cell potential over time. In the bottom row from left to right the velocity and density for anode and cathode gas channels are plotted in the first two sub-plots and the distribution of the normalised membrane water content for the middle slice is displayed in the third sub-plot. To view different instants of time, the slider bar of the figures can be used for adjustment. B.4 Functions <sup>DK</sup> 62 ### B.4 Functions DK The main functions used during the simulation are briefly described in this section to improve the code understanding. Additionally, several other short functions are used, e.g. for scaling the Gauß-Lobatto points from 0 to 1 ( `scaledGaussLobattoPts.m` ) or to compute commonly used constants in a pre-processing step ( `helpVariables.m` ). However, all functions, whether described here or not must not be changed by the user unless it is explicitly noted. #### B.4.1 SystemMatrix.m This function builds up the linear system of equations for the actual instant of time with the required boundary and coupling conditions included in the system matrix A, see Eq. (3.5). To solve this system of equations the Matlab command `mldivide` is used. #### B.4.2 sliceCoupling.m For the opportunity to decouple the number of inner slices from the number of channel nodes, it is necessary to volume average the channel values and fluxes over the slice thickness and vice versa for a consistent coupling. As the equations should remain their almost fully implicit character this integration has to be embedded into matrix A . The function `sliceCoupling.m` creates the coefficients for the implicit integration, polynomial expansion and evaluation of the polynomial at the corresponding nodes, for more information see Sec. 3.3 and [33]. #### B.4.3 central_diff_t.m The time derivative with respect to the current time step is built fully implicit with a scheme of second order in time _O_ (Δ _t_ <sup>2</sup> ), Eq. (3.2). B.4 Functions <sup>DK</sup> 63 Due to the linearisation with respect to the previous time step, the time derivative for the previous time step is also required, as shown in Eq. (3.4). Therefore, a central difference scheme of order _O_ (Δ _t_ <sup>2</sup> ) is used to keep the equations as implicit as possible. For an arbitrary variable _r_ the approximated time derivative reads: - _<u>∂r</u>_ _∂t_ �( _n_ ) = <sup>_<u>r</u>_</sup> <sup>(</sup> <sup>_n_</sup> <sup>+1)</sup> <sup>_<u>−</u>_</sup> <sup>_<u>r</u>_</sup> <sup>(</sup> <sup>_n−_</sup> <sup>1)</sup> (1 + _α_ <sup>_−_</sup> <sup>1</sup> )Δ _t_ <sup>(</sup> <sup>_n_</sup> <sup>+1)</sup> <sup>+</sup> <sup>_O_</sup> �Δ _t_ <sup>2�</sup> _._ (B.4) During the computation this approximation is created by the function `central_diff_t.m` . #### B.4.4 bc_physical.m _f_ bc( _t_ ) _f_ end _f_ start _t_ actual _t_ [s] _<u>t</u>_ <u>rad</u> _<u>t</u>_ start _t_ rad _t_ end Figure B.6: Smooth function in time established with `bc_physical.m` with all necessary input parameters. Since a change of physical quantities is never instantaneous in time, this function is used to create a continuously differentiable function _f_ bc( _t_ ) for a boundary condition to be B.4 Functions <sup>DK</sup> 64 changed. Starting from the start time _t_ start the initial value of the boundary condition _f_ start is varied in a smooth manner to reach the desired value of the boundary condition _f_ end at the time _t_ end. Moreover, the time radius to smear the function _f_ bc in time, see Fig. B.6, must be defined in the following order: _f_ bc( _t_ ) = `bc` <u>`physical`</u> ( _t_ start _,_ _t_ actual #### B.4.5 Chebfun package 1 _,_ _t_ end _,_ _t_ rad _,_ _f_ start _,_ _f_ end) (B.5) The open source package chebfun [30] is used to build up the differentiation matrices and to provide the barycentric weights as well as the integration matrices used for integral coupling, see Sec. 3.3 in the `sliceCoulpling.m` function, for more information see [33]. 1not to be changed

섹션 본문

섹션 본문이 없습니다.

참고문헌

참고문헌 정보가 없습니다.