Introduction

Hydrogen energy is recognized as one of the most promising approaches for achieving carbon neutrality [1,2,3]. Proton exchange membrane (PEM) fuel cell can convert hydrogen energy into electricity in an efficient and clean manner [4], and it has been widely applied in fuel cell vehicles. To ensure a smooth operation of PEM fuel cells, liquid water inside an electrode, which significantly affects the performance, should be managed properly, particularly under a high-current condition [5, 6]. In particular, water produced from the cathode catalyst layer (CL) flows through the microporous layer (MPL) and gas diffusion layer (GDL) to the flow channel. A certain amount of water in the CL can help the membrane to stay hydrated and ensure proton conductivity, but excessive water could cause flooding in the electrode, which greatly increases the transport resistance and leads to severe performance degradation [7, 8]. Therefore, the microstructure of the GDL/MPL assembly should be delicately optimized for a good water management strategy, which is based on in-depth insight into the dynamic behavior of liquid water in the cathode electrode and its influence on oxygen transport and performance.

To resolve the water distribution inside the electrode, X-ray tomography [9, 10], neutron imaging [11], and nuclear magnetic resonance [12] are widely used in experiments. Ko et al. [13] investigated the effect of the GDL with gradient porosity on the water transport in PEM fuel cells via X-ray visualization and found that the GDL with medium gradient porosity yields a good performance due to the low transport resistance. Lee et al. [14] also employed X-ray tomography to observe the influence of the MPL on water transport, and the results reveal that the presence of the MPL leads to less liquid water stuck at the MPL/CL interface. Markötter et al. [15] studied the transport path of liquid water in the GDL and MPL via in situ imaging technology and found that liquid water mainly flows through the large pore in the GDL and cracks in the MPL. Gerteisen et al. [16] investigated the effect of vertical laser perforations in the GDL on water transport and found that these perforations can alleviate flooding by separating the transport of the reactant and liquid water. The mentioned experimental techniques are very useful in revealing the dynamic behavior of liquid water in the cathode electrode. However, conducting an in situ observation of the two-phase flow in a porous microstructure is still difficult. Furthermore, the spatial and temporal resolutions still need to be further developed to resolve the detailed dynamics of water transport, particularly in the MPL and CL.

To complement the experimental issues, numerical modeling has been widely employed to study the two-phase flow in the electrodes of PEM fuel cells [5, 17]. The volume-of-fluid (VOF) method [18], pore network (PN) model [19], and lattice Boltzmann model (LBM) [20] are currently the most popular numerical methods. The VOF method is widely applied to study the two-phase flow in GDLs [21, 22]. However, the VOF method is limited in modeling the nanoscale flow where the assumption of fluid continuity is not validated. As the macroscopic fluid dynamic results from the interaction among various fluid particles, a mesoscale model is thus expected to describe the two-phase flow in a fundamental view [23]. Recently, Cetinbas et al. [19] proposed a PN model [24] to investigate the water evolution process in GDL/MPL assemblies, with cracks in the MPL addressed. The results agreed with those in the work by Markötter et al. [15] and showed that liquid water tends to transport through the cracks in the MPL. However, the PN model as a rule-based model can only give a general prediction of the transport phenomena [25]. LBM, rooted in kinetic theory, can resolve the mesoscale phenomena with an acceptable computation cost [26, 27] and has been widely applied to study the two-phase flow in porous media. Kim et al. [28] developed an LBM to resolve the water distribution in GDL/MPL assemblies and showed that a thick MPL leads to less water in the GDL/MPL. Hou et al. [29], for the first time, studied the effect of the GDL microstructure on the droplet dynamics in the flow channel of PEM fuel cells and found that the presence of the GDL microstructure affects the droplet motion direction and hinders the droplet movement. In their later work, Deng et al. [30] investigated the hydrophobicity of the GDL and MPL on water distribution. The results show that liquid water tends to flow through macrocracks, leading to less water in the electrode, which agrees with the results of the work by Cetinbas et al. [19].

However, these works only captured the two-phase flow with its effect on the reactive transport and performance neglected. Recently, Zhang et al. [31] employed the LBM to simulate the coupled two-phase and mass transport phenomena in GDL/MPL assemblies. The results show that the oxygen transport benefits from the presence of the MPL for less water in the GDL. However, the MPL is simplified as two dimensional, which cannot give a realistic description of the structural effect. In this work, a numerical stochastic algorithm is adopted to reconstruct the realistic three-dimensional (3D) microstructure of GDL/MPL assemblies, and the structural characteristics can be flexibly adjusted. To achieve a sufficiently low spurious velocity at the gas–liquid interface for model stability and accuracy, a multiple-relaxation-time (MRT) LBM is employed to simulate the coupled transport of liquid water and reactant gas in GDL/MPL assemblies. The electrochemical reaction in the CL is also addressed by applying the source term at the MPL/CL interface. The effects of assembly porosity, macrocracks in the MPL, and perforation design are investigated in terms of dynamic water transport, reactant distribution, and output performance. Further consideration of reactive transport provides deep insights into interlinks among flooding, transport resistance, and performance.

The remainder of the paper is structured as follows: the stochastic reconstruction model of GDL/MPL assemblies is introduced in Sect. 2. The developed numerical tool, LBM, and conducted validation tests are described in Sect. 3. The simulation results are presented and discussed in Sect. 4. Finally, conclusions are summarized in Sect. 5.

Stochastic Reconstruction Model

Based on the literature, reconstruction methods can be generally categorized into experimental approaches, such as X-ray scanning [32] and focused ion beam/scanning electron microscopy [33], and numerical approaches [30]. Considering the advantages of cost saving and flexibility, the stochastic reconstruction method is adopted in this work.

The GDL and MPL are constructed by micron-scale carbon fiber and nanoscale carbon black, respectively. Polytetrafluoroethylene (PTFE) is usually added for bonding and surface hydrophobicity adjustment. The pore size in GDL is in micrometer scale, whereas the MPL has nanometer scale pores built by carbon particles and micrometer scale pores built by cracks. In this work, the carbon fiber is simplified as a long-straight cylinder, the carbon black is simplified as a sphere, and the generation of PTFE is based on the local pore size to serve as a binder. The specific reconstruction algorithms can be found in our previous works [30, 34]. In this work, all carbon fibers in the GDL have the same diameter and are set as 10 μm. The MPL is 40-μm thick with the width of vertical cracks ranging from 8 to 10 μm. The reconstructed GDL, crack-free MPL, and cracked MPL are shown in Fig. 1.

Fig. 1
figure 1

Reconstructed GDL, crack-free MPL, and cracked MPL

Numerical Model

Two-Phase Model

Considering the outstanding advantages of the implemented boundary condition and parallel computing, the LBM is employed as a numerical tool. The single relaxation time (SRT) collision operator is mostly used in previous works [28, 31, 35]. However, in the MPL, where the local pore is much smaller than that in the GDL, the SRT operator could lead to a high spurious velocity at the two-phase interface and thus model instability. Therefore, the MRT LBM is employed to ensure the model stability, and the evolution equation is expressed as

$$f_{{\sigma ,\alpha }} (x + e_{\alpha } \Delta t,t + \Delta t) - f_{{\sigma ,\alpha }} (x,t) = - (M^{{ - 1}} {{SM}})(f_{\sigma } (x,t) - f_{\sigma }^{{{\text{eq}}}} (x,t)) + M^{{ - 1}} \left( {\left( {I - \frac{S}{2}} \right)\bar{F}_{\sigma } } \right)$$
(1)

where \(f_{\sigma ,\alpha }\) is the density distribution function of component \(\sigma\); \(f^{{{\text{eq}}}}\) is its equilibrium form; \(\alpha\) represents the discrete direction in the model; \(x\) is the lattice position; and \(t\) is the time. In the D3Q19 model, the discrete velocity \(e_{\alpha }\) is given as

$$\begin{gathered} \left[ {e_{0} , \, e_{1} , \, e_{2} , \, e_{3} , \, e_{4} , \, e_{5} , \, e_{6} , \, e_{7} , \, e_{8} , \, e_{9} , \, e_{10} , \, e_{11} , \, e_{12} , \, e_{13} , \, e_{14} , \, e_{15} , \, e_{16} , \, \,\,e_{17} , \, \,\,\,e_{18} } \right] = \hfill \\ \left[ {\begin{array}{*{20}c} 0 \\ 0 \\ 0 \\ \end{array} \,\,\,\,\,\,\begin{array}{*{20}c} 1 \\ 0 \\ 0 \\ \end{array} \,\,\,\,\,\begin{array}{*{20}c} 0 \\ 1 \\ 0 \\ \end{array} \,\,\,\,\,\,\begin{array}{*{20}c} 0 \\ 0 \\ 1 \\ \end{array} \,\,\,\,\begin{array}{*{20}c} { - 1} \\ 0 \\ 0 \\ \end{array} \,\,\,\,\begin{array}{*{20}c} 0 \\ { - 1} \\ 0 \\ \end{array} \,\,\begin{array}{*{20}c} 0 \\ 0 \\ { - 1} \\ \end{array} \,\,\,\begin{array}{*{20}c} 1 \\ 1 \\ 0 \\ \end{array} \,\,\,\,\,\,\begin{array}{*{20}c} 1 \\ 0 \\ 1 \\ \end{array} \,\,\,\,\,\,\begin{array}{*{20}c} 0 \\ 1 \\ 1 \\ \end{array} \,\,\,\,\begin{array}{*{20}c} { - 1} \\ { - 1} \\ 0 \\ \end{array} \,\,\,\,\begin{array}{*{20}c} { - 1} \\ 0 \\ { - 1} \\ \end{array} \,\,\,\,\begin{array}{*{20}c} 0 \\ { - 1} \\ { - 1} \\ \end{array} \,\,\,\,\begin{array}{*{20}c} 1 \\ { - 1} \\ 0 \\ \end{array} \,\,\,\begin{array}{*{20}c} 1 \\ { - 1} \\ 0 \\ \end{array} \,\,\,\,\begin{array}{*{20}c} 1 \\ 0 \\ { - 1} \\ \end{array} \,\,\,\,\,\begin{array}{*{20}c} { - 1} \\ 1 \\ 0 \\ \end{array} \,\,\,\,\,\begin{array}{*{20}c} { - 1} \\ 0 \\ 1 \\ \end{array} \,\,\,\,\,\,\begin{array}{*{20}c} 0 \\ { - 1} \\ 1 \\ \end{array} } \right] \hfill \\ \end{gathered}$$
(2)

\(\Delta t\) is the time step and \(\Delta x\) is the lattice spacing. \(M\) is a transformation matrix between the velocity and momentum space, and \(M^{ - 1}\) is the inverse form of \(M\). In this work, \(M\) is expressed as

$$\begin{gathered} M = \hfill \\ \left[ {\begin{array}{*{20}c} 1 & 1 & 1 & 1 & 1 & 1 & 1 & 1 & 1 & 1 & 1 & 1 & 1 & 1 & 1 & 1 & 1 & 1 & 1 \\ { - 30} & { - 11} & { - 11} & { - 11} & { - 11} & { - 11} & { - 11} & 8 & 8 & 8 & 8 & 8 & 8 & 8 & 8 & 8 & 8 & 8 & 8 \\ {12} & { - 4} & { - 4} & { - 4} & { - 4} & { - 4} & { - 4} & 1 & 1 & 1 & 1 & 1 & 1 & 1 & 1 & 1 & 1 & 1 & 1 \\ 0 & 1 & 0 & 0 & { - 1} & 0 & 0 & 1 & 1 & 0 & { - 1} & { - 1} & 0 & 1 & 1 & 0 & { - 1} & { - 1} & 0 \\ 0 & { - 4} & 0 & 0 & 4 & 0 & 0 & 1 & 1 & 0 & { - 1} & { - 1} & 0 & 1 & 1 & 0 & { - 1} & { - 1} & 0 \\ 0 & 0 & 1 & 0 & 0 & { - 1} & 0 & 1 & 0 & 1 & { - 1} & 0 & { - 1} & { - 1} & 0 & 1 & 1 & 0 & { - 1} \\ 0 & 0 & { - 4} & 0 & 0 & 4 & 0 & 1 & 0 & 1 & { - 1} & 0 & { - 1} & { - 1} & 0 & 1 & 1 & 0 & { - 1} \\ 0 & 0 & 0 & 1 & 0 & 0 & { - 1} & 0 & 1 & 1 & 0 & { - 1} & { - 1} & 0 & { - 1} & { - 1} & 0 & 1 & 1 \\ 0 & 0 & 0 & { - 4} & 0 & 0 & 4 & 0 & 1 & 1 & 0 & { - 1} & { - 1} & 0 & { - 1} & { - 1} & 0 & 1 & 1 \\ 0 & 2 & { - 1} & { - 1} & 2 & { - 1} & { - 1} & 1 & 1 & { - 2} & 1 & 1 & { - 2} & 1 & 1 & { - 2} & 1 & 1 & { - 2} \\ 0 & { - 4} & 2 & 2 & { - 4} & 2 & 2 & 1 & 1 & { - 2} & 1 & 1 & { - 2} & 1 & 1 & { - 2} & 1 & 1 & { - 2} \\ 0 & 0 & 1 & { - 1} & 0 & 1 & { - 1} & 1 & { - 1} & 0 & 1 & { - 1} & 0 & 1 & { - 1} & 0 & 1 & { - 1} & 0 \\ 0 & 0 & { - 2} & 2 & 0 & { - 2} & 2 & 1 & { - 1} & 0 & 1 & { - 1} & 0 & 1 & { - 1} & 0 & 1 & { - 1} & 0 \\ 0 & 0 & 0 & 0 & 0 & 0 & 0 & 1 & 0 & 0 & 1 & 0 & 0 & { - 1} & 0 & 0 & { - 1} & 0 & 0 \\ 0 & 0 & 0 & 0 & 0 & 0 & 0 & 0 & 0 & 1 & 0 & 0 & 1 & 0 & 0 & { - 1} & 0 & 0 & { - 1} \\ 0 & 0 & 0 & 0 & 0 & 0 & 0 & 0 & 1 & 0 & 0 & 1 & 0 & 0 & { - 1} & 0 & 0 & { - 1} & 0 \\ 0 & 0 & 0 & 0 & 0 & 0 & 0 & 1 & { - 1} & 0 & { - 1} & 1 & 0 & 1 & { - 1} & 0 & { - 1} & 1 & 0 \\ 0 & 0 & 0 & 0 & 0 & 0 & 0 & { - 1} & 0 & 1 & 1 & 0 & { - 1} & 1 & 0 & 1 & { - 1} & 0 & { - 1} \\ 0 & 0 & 0 & 0 & 0 & 0 & 0 & 0 & 1 & { - 1} & 0 & { - 1} & 1 & 0 & { - 1} & 1 & 0 & 1 & { - 1} \\ \end{array} } \right] \hfill \\ \end{gathered}$$
(3)

\(I\) is the identity matrix, and \(S\) is the diagonal relaxation matrix. For the D3Q19 model, \(S\) is descried as

$$S = {\text{diag}}\left( {0, \, \tau_{1}^{ - 1} , \, \tau_{2}^{ - 1} , \, 0, \, \tau_{4}^{ - 1} , \, 0, \, \tau_{6}^{ - 1} , \, 0, \, \tau_{8}^{ - 1} , \, \tau_{{\text{v}}}^{ - 1} ,\left. {\tau_{10}^{ - 1} ,\tau_{{\text{v}}}^{ - 1} , \, \tau_{12}^{ - 1} , \, \tau_{\upsilon }^{ - 1} , \, \tau_{\upsilon }^{ - 1} , \, \tau_{{\text{v}}}^{ - 1} , \, \tau_{16}^{ - 1} , \, \tau_{17}^{ - 1} , \, \tau_{18}^{ - 1} } \right) \, } \right.$$
(4)

The relaxation matrix can be adjusted to decrease the spurious velocity, and in this work,\(\tau_{1}^{ - 1} { = }\tau_{2}^{ - 1} { = }0.57\), \(\tau_{4}^{ - 1} { = }\tau_{6}^{ - 1} { = }\tau_{8}^{ - 1} { = }1.3\), \(\tau_{10}^{ - 1} { = }\tau_{12}^{ - 1} { = }1.1\), and \(\tau_{16}^{ - 1} { = }\tau_{17}^{ - 1} { = }\tau_{18}^{ - 1} { = }1.2\). The bulk viscosity \(\xi\) and kinematic viscosity \(v\) are given by

$$\xi = \frac{2}{9}\left( {\tau_{1} - \frac{1}{2}} \right)$$
(5)

and

$$v = \frac{1}{3}\left( {\tau_{{\text{v}}} - \frac{1}{2}} \right)$$
(6)

\(\overline{F}_{\sigma }\) represents the force term in the model, which is given as

$$\overline{F}_{{\text{s}}} (x,t) = \left[ {\begin{array}{*{20}c} 0 \\ {38u^{{{\text{eq}}}} F_{{{\text{SC}}({\text{s}})}} } \\ { - 11u^{{{\text{eq}}}} F_{{{\text{SC}}({\text{s}})}} } \\ {F_{{{\text{SC}}({\text{s}}),{\text{ x}}}} } \\ { - \frac{2}{3}F_{{{\text{SC}}({\text{s}}),{\text{ x}}}} } \\ {F_{{{\text{SC}}({\text{s}}),{\text{ y}}}} } \\ { - \frac{2}{3}F_{{{\text{SC}}({\text{s}}),{\text{ y}}}} } \\ {F_{{{\text{SC}}({\text{s}}),{\text{ z}}}} } \\ { - \frac{2}{3}F_{{{\text{SC(s)}},{\text{ z}}}} } \\ {2(2u_{{\text{x}}}^{{{\text{eq}}}} F_{{{\text{SC}}({\text{s}}),{\text{ x}}}} - u_{{\text{y}}}^{{{\text{eq}}}} F_{{{\text{SC}}({\text{s}}),{\text{ y}}}} - u_{{\text{z}}}^{{{\text{eq}}}} F_{{{\text{SC}}({\text{s}}),{\text{ z}}}} )} \\ { - (2u_{{\text{x}}}^{{{\text{eq}}}} F_{{{\text{SC}}({\text{s}}),{\text{ x}}}} - u_{{\text{y}}}^{{{\text{eq}}}} F_{{{\text{SC}}({\text{s}}),{\text{ y}}}} - u_{{\text{z}}}^{{{\text{eq}}}} F_{{{\text{SC}}({\text{s}}),{\text{ z}}}} )} \\ {2(u_{{\text{y}}}^{{{\text{eq}}}} F_{{{\text{SC}}({\text{s}}),{\text{ y}}}} - u_{z}^{{{\text{eq}}}} F_{{{\text{SC}}({\text{s}}),{\text{ z}}}} )} \\ { - (u_{{\text{y}}}^{{{\text{eq}}}} F_{{{\text{SC}}({\text{s}}),{\text{ y}}}} - u_{z}^{{{\text{eq}}}} F_{{{\text{SC}}({\text{s}}),{\text{ z}}}} )} \\ {u_{{\text{y}}}^{{{\text{eq}}}} F_{{{\text{SC}}({\text{s}}),{\text{ x}}}} + u_{{\text{x}}}^{{{\text{eq}}}} F_{{{\text{SC}}({\text{s}}),{\text{ y}}}} } \\ {u_{{\text{z}}}^{{{\text{eq}}}} F_{{{\text{SC}}({\text{s}}),{\text{ y}}}} + u_{{\text{y}}}^{{{\text{eq}}}} F_{{{\text{SC}}({\text{s}}),{\text{ z}}}} } \\ {u_{{\text{z}}}^{{{\text{eq}}}} F_{{{\text{SC}}({\text{s}}),{\text{ x}}}} + u_{{\text{x}}}^{{{\text{eq}}}} F_{{{\text{SC}}({\text{s}}),{\text{ z}}}} } \\ 0 \\ 0 \\ 0 \\ \end{array} } \right]$$
(7)

where \(u^{{{\text{eq}}}}\) is the barycentric velocity of the fluid, which indicates the velocities at the equilibrium state; \(F_{{{\text{SC}}({\text{s}})}}\) is the component force, which is the combination of the fluid–fluid interaction force \(F_{{\sigma ,{\text{int}} }} (x)\) and fluid–solid interaction force \(F_{\sigma ,ads} (x)\). \(F_{{\sigma ,{\text{int}} }} (x)\) and \(F_{\sigma ,ads} (x)\) are calculated by

$$\sum\limits_{\sigma } {\rho_{\sigma } } u^{{{\text{eq}}}} = \sum\limits_{\sigma } {\left( {\sum\limits_{\alpha } {f_{\sigma ,\alpha } } e_{\alpha } + \frac{{(F_{{\sigma ,{\text{int}} }} (x) + F_{\sigma ,ads} (x))\Delta t}}{2}} \right)}$$
(8)
$$F_{{\sigma ,{\text{int}} }} (x) = - G_{{\sigma ,\overline{\sigma } }} \psi_{\sigma } (x)\sum\limits_{\alpha } {w\left( {\left| {e_{\alpha } } \right|^{2} } \right))} \psi_{{\overline{\sigma } }} (x + e_{\alpha } \Delta t)e_{\alpha }$$
(9)
$$F_{\sigma ,ads} (x) = - G_{{\sigma ,{\text{w}}}} \psi_{\sigma } (x)\sum\limits_{\alpha } {w\left( {\left| {e_{\alpha } } \right|^{2} } \right)} \psi_{{\overline{\sigma } }} (x)s(x + e_{\alpha } )e_{\alpha }$$
(10)

where \(G_{{\sigma ,\overline{\sigma } }}\) is the interaction strength parameter between water and air and \(G_{{\sigma ,{\text{w}}}}\) is the interaction strength between the water and solid phases. The hydrophobicity of the solid wall can be controlled by adjusting the \(G_{{\sigma ,{\text{w}}}}\) value. \(\psi\) is a pseudopotential, which equals the local density. \(w(\left| {e_{\alpha } } \right|^{2} )\) is the weighted parameter, shown as

$$w(\left| {e_{\alpha } } \right|^{2} ) = \left\{ \begin{gathered} \frac{1}{3},\,\,\,\,\,\,\,\,\;\;\alpha = 0 \hfill \\ \frac{1}{18},\,\,\, \, \;\;\;\alpha = 1, \, 2, \ldots , \, 6 \hfill \\ \frac{1}{36},\,\,\,\;\;\;\alpha = 7, \, 8, \ldots , \, 18 \hfill \\ \end{gathered} \right.$$
(11)

Mass Transport Model

Regarding reactant transport, the D3Q7 model is selected for its simplicity [36]. The evolution equation is described as

$$c_{\alpha } (x + e_{\alpha } \Delta t,\;t + \Delta t) - c_{\alpha } (x,t) = - M_{{\text{c}}}^{ - 1} S_{{\text{c}}} M_{{\text{c}}} \left( {c_{\alpha } (x,t) - c_{\alpha }^{{{\text{eq}}}} (x,t)} \right)$$
(12)

where \(c_{\alpha } (x,t)\) represents the concentration distribution function and \(c_{\alpha }^{{{\text{eq}}}} (x,t)\) is its equilibrium distribution. The transformation matrix \(M_{{\text{c}}}\) and corresponding relaxation matrix \(S_{{\text{c}}}\) are expressed as

$$M_{{\text{c}}} = \left( {\begin{array}{*{20}c} 1 & 1 & 1 & 1 & 1 & 1 & 1 \\ 0 & 1 & { - 1} & 0 & 0 & 0 & 0 \\ 0 & 0 & 0 & 1 & { - 1} & 0 & 0 \\ 0 & 0 & 0 & 0 & 0 & 1 & { - 1} \\ 6 & { - 1} & { - 1} & { - 1} & { - 1} & { - 1} & { - 1} \\ 0 & 2 & 2 & { - 1} & { - 1} & { - 1} & { - 1} \\ 0 & 0 & 0 & 1 & 1 & { - 1} & { - 1} \\ \end{array} } \right)$$
(13)
$$S_{{\text{c}}} = \left( {\begin{array}{*{20}c} {\tau_{0} } & 0 & 0 & 0 & 0 & 0 & 0 \\ 0 & {\tau_{11} } & {\tau_{12} } & {\tau_{13} } & 0 & 0 & 0 \\ 0 & {\tau_{21} } & {\tau_{22} } & {\tau_{23} } & 0 & 0 & 0 \\ 0 & {\tau_{31} } & {\tau_{32} } & {\tau_{33} } & 0 & 0 & 0 \\ 0 & 0 & 0 & 0 & {\tau_{4} } & 0 & 0 \\ 0 & 0 & 0 & 0 & 0 & {\tau_{5} } & 0 \\ 0 & 0 & 0 & 0 & 0 & 0 & {\tau_{6} } \\ \end{array} } \right)$$
(14)

The corresponding relaxation coefficients are shown as

$$\left\{ \begin{gathered} \tau_{0} = 1 \hfill \\ \tau_{11} = \tau_{22} = \tau_{33} = 0.5 + \frac{3\Delta t}{{\Delta x^{2} }}D \hfill \\ \tau_{12} = \tau_{13} = \tau_{21} = \tau_{23} = \tau_{31} = \tau_{32} = 0 \hfill \\ \tau_{4} = \tau_{5} = \tau_{6} = 0.5 + \frac{1}{{6(\tau_{11,22,33} - 0.5)}} \hfill \\ \end{gathered} \right.$$
(15)

where \(D\) is the macroscopic diffusion coefficient, and the local concentration \(C\) can be obtained by

$$C(x,t) = \sum\limits_{i = 0}^{6} {c_{i} (x,t)}$$
(16)

In this study, the CL is simplified as an infinitely thin layer attached to the MPL [31, 37], and the electrochemical reaction occurring at the thin interface is implemented by the boundary condition as follows:

$$\left\{ {\begin{array}{*{20}c} { - D\frac{{\partial C_{w} }}{{\partial n}} = r^{\prime\prime}} \\ {r^{\prime\prime} = \frac{j}{{4F}}} \\ \end{array} } \right.$$
(17)

where \(j\) is the current density; \(r^{\prime\prime}\) is the oxygen consumption rate; and \(F\) is the Faraday constant.

According to the Butler–Volmer equation [38], the reaction constant \(k_{{{\text{sr}}}}\) of the activated surface in the CL can be described as [39]

$$\left\{ \begin{gathered} r^{\prime\prime} = k_{{{\text{sr}}}} C_{{{\text{O}}_{2} }} \hfill \\ k_{{{\text{sr}}}} = \frac{{a_{{\text{s}}} }}{{4F}}\left( {\frac{{j^{{{\text{ref}}}} }}{{C_{{{\text{O}}_{2} }}^{{{\text{ref}}}} }}} \right)\left[ {\exp \left( {\frac{{\alpha _{{\text{f}}} F\eta }}{{R_{{\text{u}}} T}}} \right) - \exp \left( { - \frac{{\alpha _{{\text{r}}} F\eta }}{{R_{{\text{u}}} T}}} \right)} \right] \hfill \\ \end{gathered} \right.$$
(18)

where \(C_{{{\text{O}}_{2} }}\) is the local oxygen concentration; \(a_{{\text{s}}}\) represents the roughness factor of the CL; \(j^{{{\text{ref}}}}\) is the reference current density; \(C_{{{\text{O}}_{{2}} }}^{{{\text{ref}}}}\) is the reference oxygen concentration; \(\alpha_{{\text{f}}}\) and \(\alpha_{{\text{r}}}\) are the transfer coefficients for the forward reaction and reverse reaction, respectively; and \(\eta\) is the overpotential.

The modified bounce-back conditions proposed by Kamali et al. [39] are adopted to the surface reaction. Then, the real physical electrochemical reaction rate \(k_{{{\text{sr}}}}\) is converted into the nondimensional lattice unit \(k_{{{\text{sr}}}}^{{{\text{LB}}}}\) by

$$k_{{{\text{sr}}}}^{{{\text{LB}}}} = \left( {\frac{{6k_{{{\text{sr}}}} \Delta t}}{\Delta x}} \right)/\left( {1 + \frac{{k_{{{\text{sr}}}} \Delta x}}{2D}} \right)$$
(19)

Then, the boundary condition can thus be implemented.

Water–Oxygen Coupling Scheme

Because the solubility and diffusivity of oxygen in liquid water are orders of magnitude lower than those in the air, this work ignores the presence of oxygen in the water. When liquid water moves into the oxygen node, the local oxygen concentration will be cleared to zero, and the original local distribution will stream to the neighbor node to ensure mass conservation. The averaged extrapolation-refilling scheme proposed by Peng et al. [40] is applied in this study, which is given by

$$c_{\alpha } (x_{{{\text{new}}}} ,\;t + \Delta t) = \frac{1}{N}\sum\limits_{n = 1}^{N} {c_{\alpha ,i} (x_{{{\text{new}}}} ,\;t + \Delta t)}$$
(20)
$$c_{\alpha ,i} (x_{{{\text{new}}}} ,\;t + \Delta t) = 2c_{\alpha } (x_{new} + e_{{\text{i}}} \Delta t,\;t + \Delta t) - c_{\alpha } (x_{{{\text{new}}}} + 2e_{{\text{i}}} \Delta t,\;t + \Delta t)$$
(21)

where \(N\) is the number of discrete directions.

Model Validation

Validation of Laplace’s Law

The Young–Laplace equation shows the relationship among the pressure, surface tension, and droplet raids. The internal and external pressure differences of droplets with different radii are compared to verify the model. For the 3D case, Laplace’s law is written as

$$\Delta P = P_{{{\text{in}}}} - P_{{{\text{out}}}} = 2\gamma /R,$$
(22)

where \(P_{{{\text{in}}}} - P_{{{\text{out}}}}\) represents the pressure difference on both sides of the droplet; \(\gamma\) is the surface tension; and \(R\) is the radius. The domain size is \(150\, \times \,150\, \times \,150\) lu (lattice unit), and the periodic boundary is applied in each direction. Droplets with different radii are initialized in the center of the domain. When the droplet is stable, the pressure difference across the liquid–gas interface is measured. As shown in Fig. 2a, the simulation results agree well with the analytical results, which validate the two-phase model.

Fig. 2
figure 2

a Validation of Laplace law test; b Schematic of reactive boundary test; c Comparison between numerical data and analytical results of reactive boundary test

Validation of the Mass Transport Model

To verify the mass transport model and reactive boundary condition, the one-dimensional diffusion benchmark is conducted, schematically shown in Fig. 2b. The distance between the two infinite reaction planes is \(2l\), and the initial oxygen concentration in the computation domain is set as \(C_{0}\). Due to the symmetry structure, the gradient of oxygen concentration in the middle point should be 0, and the governing equations can be presented as

$$\left\{ \begin{gathered} \frac{\partial C}{{\partial t}} = D\frac{{\partial^{2} C}}{{\partial x^{2} }} \hfill \\ C(x,0) = C_{0} \hfill \\ \begin{array}{*{20}c} {\left. {\frac{\partial C}{{\partial x}}} \right|_{x = 0} = 0 \, ;} & {\left. {\frac{\partial C}{{\partial x}}} \right|_{x = l} = - k_{{{\text{sr}}}} C} \\ \end{array} \hfill \\ \end{gathered} \right.$$
(23)

The analytical results can be calculated as

$$C^{*} (x,t) = \frac{C(x,t)}{{C_{0} }} = \sum\limits_{n = 1}^{\infty } {\frac{{4\sin (\lambda_{n} )}}{{2\lambda_{n} + \sin (2\lambda_{n} )}}} e^{{ - \lambda_{n}^{2} {\text{Fo}}}} \cos \left( {\lambda_{n} \frac{x}{l}} \right),$$
(24)

where \(C^{*} \left( {x,t} \right)\) represents the nondimensional oxygen concentration at time \(t\) and position \(x\) and \(Fo\) is the Fourier number obtained from the equation \({\text{Fo}} = {\text{Dt}}/l^{2}\); \(\lambda_{{\text{n}}}\) is the Eigen parameter and can be determined by \(\lambda_{{\text{n}}} \tan (\lambda_{{\text{n}}} ) = {\text{Da}}\), \({\text{Da}}\) is Damköhler number and can be calculated by \({\text{Da}} = {\text{lk}}_{{{\text{sr}}}} /D\). The comparisons between analytical and simulation results under different \({\text{Fo}}\) values are shown in Fig. 2c, and a good agreement is achieved, which validates the mass transport model.

Computational Domain and Boundary Conditions

The computation domain is shown in Fig. 3a, including the buffer space, GDL, MPL, and CL. The thicknesses of the buffer space A, GDL, MPL, and buffer space B are set to 160, 180, 40, and 20 μm, respectively. As mentioned above, the CL is simplified as a thin interface attached to the bottom of the MPL for implementing a reactive boundary condition (labeled as “reaction surface” in Fig. 3a). The buffer spaces A and B are added to the inlet of the gas and liquid water, respectively, to ensure model stability [41]. The computational domain is discretized into 200 × 200 × 200 grids, and the grid resolution is 2 μm. The unit conversion method can be found in Ref. [30].

Fig. 3
figure 3

a Schematic of computation domain; b water inlet positions in CL surface (side length 10 μm)

To reduce the scale effect, periodic boundary conditions are applied in the y and z directions, and the internal solid structure (carbon lattices) is defined as the half-bounce-back boundary [26]. For the oxygen diffusion process, constant concentration is set at the top surface. The reactive boundary scheme proposed by Kamali et al. [39] is employed to describe the electrochemical reaction on the MPL/CL interface. Regarding the two-phase flow, liquid water flows into the domain from the inlet holes in buffer space B with a constant velocity of 0.0024 m/s, as shown in Fig. 3b. The boundary implementations are based on the Zou–He method [42].

Results and Discussion

In this work, 12 cases are utilized to examine the effects of GDL/MPL assemblies on the water and oxygen transport in terms of the structural porosity, MPL cracks, and perforation design, and the specific quantitative summary is shown in Table 1.

Table 1 Quantitative summary of simulation cases

Effect of GDL Porosity

In this study, GDLs with porosities from 0.55 to 0.75 are reconstructed, and the inside dynamic transport processes of liquid water and oxygen are illustrated in Fig. 4. In this work, the solid node is hydrophobic with a contact angle of 120°.

Fig. 4
figure 4

Evolution of liquid water transport and oxygen diffusion in GDLs with different porosity: a water transport inside GDLs; b oxygen diffusion inside GDLs; c average oxygen concentration in CL before and after the flooding

First, oxygen diffuses into the GDL, which is consumed in the CL, and the oxygen distribution in the computation domain gets stable at 90000 lu time. Then, liquid water flows into the computation domain from the CL side. As presented in Fig. 4a, liquid water breaks through the GDL and occupies the original pore space. For porosities ranging from 0.55 to 0.75, the breaking through of liquid water to the GDL with a low porosity takes less time, which can be explained by the relatively small average pore size. Moreover, the water distribution inside the GDL will become stable after the breaking through, as the liquid water prefers to transport through large pores, which agrees well with the results in Ref. [30]. The flooding effect on the oxygen distribution is shown in Fig. 4b. Before the flooding (90000 lu time), the GDL with a large porosity has a high average oxygen concentration in the CL layer for a low transport resistance. However, after the flooding, much pore space is occupied by liquid water, which increases the transport resistance, and the average oxygen concentration in the CL layer is significantly decreased, as shown in Fig. 4c. The results show that the concentration drop is the highest in the 0.75 porosity case, indicating severe flooding. The gradient porosity design yields the highest average oxygen concentration and the lowest gap after the flooding, which proves its advantage on water management.

Figure 5a shows the evolution of the current density distribution under flooding, and Fig. 5b quantitatively presents the change in the activated reaction area ratio in CL. The findings show that liquid water can easily form a water film and block the CL surface under a large porosity near the CL side, resulting in a high reactive area loss, which agrees with the results of Ko et al. [13]. Figure 5c shows the variation of the average current density against the flooding and proves that the flooding leads to serious performance degradation. After the flooding, the current density of the GDL with 0.65 porosity is slightly higher than the GDLs with 0.55 and 0.75 porosities. Moreover, the GDL with gradient porosity yields the best performance against flooding, and thus, it is suggested to improve water management. On the one hand, as shown in Fig. 4c, the gradient porosity GDL exhibits good liquid water distribution, resulting in a high average oxygen concentration in the CL after flooding. On the other hand, as shown in Fig. 5b, the gradient porosity GDL has a low porosity near the CL side, and less liquid water accumulates at the GDL/CL interface, resulting in a large activated area. Therefore, it yields the best performance.

Fig. 5
figure 5

a Evolution of current density distribution in CL; b Variation of activated reaction area ratio in CL; c Variation of average current density in CL

Effect of MPL Porosity

In this section, the GDL porosity is set as 0.65, and three crack-free MPLs with porosities of 0.5, 0.6, and 0.7 are reconstructed and attached to the GDL.

As shown in Fig. 6a, liquid water can hardly transport through the microscopic pores in the MPL, and the presence of the MPL effectively ensures the oxygen transport space under the flooding, leading to a high average oxygen concentration in the CL layer and low reactive area loss. Such results agree well with the conclusions by Lee et al. [14]. Figure 6b shows that the concentration drop is low with a high porosity MPL due to the presence of many water transport paths. For the same reason, liquid water can easily be stuck in the MPL/CL interface under the 0.5 porosity MPL, hence resulting in a high activation area loss, as shown in Fig. 6c, d. Moreover, the MPL makes the oxygen concentration distribution and current density uniform due to its strong in-plane transport capacity. Figure 6e shows that the MPL helps to ensure the performance under flooding, and the crack-free MPL with high porosity is preferred.

Fig. 6
figure 6figure 6

Evolution of liquid water transport, oxygen diffusion and electrochemical reaction with different MPLs: a water transport inside GDL/MPL; b average oxygen concentration in CL before and after flooding; c current density distribution in CL; d variation of activated reaction area ratio in CL; e variation of average current density in CL

Effect of the GDL/MPL Structure

MPLs with cracks and perforations are reconstructed to investigate the effect of the GDL/MPL structure. Micron-scale cracks are usually formed inside the MPL microstructure during its production [43], and studies have proven that laser perforation can optimize water management in PEM fuel cells [21]. The crack morphology is based on Ref. [44]. In Cases 9 and 10, perforations are only constructed in the GDL, whereas in Case 11, they penetrate through the GDL and MPL. In Case 10, the perforation is located at the water breakthrough point. By contrast, in Case 9, it is randomly located. The diameter of the perforation is 20 μm.

As shown in Fig. 7a, liquid water mainly flows through the GDL/MPL assembly by cracks and perforations, and the perforation design can lead the liquid water transport through the assembly effectively. Moreover, the perforation design significantly decreases the concentration drop caused by the flooding, as shown in Fig. 7b, as less liquid water blocks the pore space in the assembly and the transport resistance is small. Such optimization is evident when the perforation is located at the liquid water breakthrough point (Case 10). Among the various designs, the systematic perforation design yields the lowest concentration drop by separating the transport of liquid water and reactant gas.

Fig. 7
figure 7

Evolution process of liquid water transport and oxygen diffusion in GDL/MPL assembly with different structures: a water distribution inside GDL/MPL (red part indicates the perforations); b average oxygen molar concentration in CL before and after flooding

As shown in Fig. 8a, b, the crack and perforation design can increase the activated area for a low water transport resistance. The reaction area is the highest under the systematical perforation design (Case 11) for an organized water transport path. Moreover, the systematical perforation design ensures a complete uniform distribution of the reaction rate, as shown in Fig. 8a, and yields the best performance for simultaneously increasing the activated reaction area and oxygen concentration near CL, as shown in Fig. 8b, c. As mentioned above, the gradient porosity GDL and high porosity MPL, with the presence of cracks and systematic perforations, are favorable for the performance under flooding. Case 12 simulates all the above optimal conditions. The MPL with large porosity and the GDL with gradient porosity will retain more pores in the oxygen transmission path after the liquid water breakthrough, resulting in a great average oxygen concentration in the CL, as shown in Fig. 7b. However, the MPL with a large porosity also leads to a small activation area, and the final performance improvement is not evident, as shown in Fig. 8b, c.

Fig. 8
figure 8

Evolution process of electrochemical reaction in PEMFC with different structures: a current density distribution in CL; b variations of activated reaction area ratio in CL; c variations of average current density in CL

Conclusions

In this work, a 3D multicomponent multiphase LBM is established to examine the coupled two-phase and reactive transport in the stochastically reconstructed GDL/MPL assembly. The MRT collision operator is used to ensure the model stability and accuracy. The flooding effect on the mass transport and performance is studied with the inside water, oxygen, and reaction rate distributions resolved. The simulation results show that water quickly breaks through the GDL in a low porosity structure and the water distribution becomes stable after breaking through the GDL, as water prefers to transport through large pores. The gradient porosity GDL can increase the average reactant concentration under the flooding condition. The presence of the MPL effectively ensures the oxygen transport space under the flooding and achieves a low reactive area loss. Moreover, the MPL promotes the uniform distribution of oxygen concentration and current density for a good in-plane transport capacity. The crack and perforation designs can accelerate the water transport in the assembly. The systematic perforation design ensures the separated transport of water and gas and yields the best performance under flooding.