1 Introduction

Growing concerns about the maleficence and finite quantity of fossil fuel resources has increased public attention toward fuel cells as a next-generation power source. The noteworthy advantages, including low-operating temperature, high efficiency, and high power density, have made fuel cells an important contender as an alternative power source.

As PEMFCs near commercialization, precise fault diagnosis methods to promote stable stacks and robust performance are playing an increasingly essential role. Some diagnosis methods use the well- known Electrochemical Impedance Spectroscopy (EIS) based on a small sinusoidal perturbation within a frequency range [1, 2]. Some diagnosis methods measure cell voltage [3] and frequency distortion [4] to detect abnormal states.

Appropriate hydration of a fuel cell stack is becoming a more significant issue because cell flooding or membrane drying, which degrade fuel cell energy generation, occurs frequently during fuel cell operation. Therefore, diagnosis methods monitoring the conditions related to water balance have been developed. One such method involves measuring the AC impedance using EIS with equivalent circuit models [5, 6]. In addition, neural network modeling has been used to diagnose water balance failure in PEMFCs [7], and fault tolerant control strategies have been implemented to monitor the SOH of the stack [8]. Although these provide precise stack condition parameters, they are difficult to apply online because the EIS method is based on various sinusoidal perturbations off-line, and signal processing required costly and heavy instruments.

This paper proposes a Step Response Analysis (SRA) based on the simplified Randle’s circuit, monitoring the flooding or drying out condition of the PEMFC. Occurrence of the drying out state leads to the degradation of the proton exchange efficiency of the electrolyte membrane in the Membrane Electrolyte Assembly (MEA), which is related to resistance polarization caused by Rm. On the other hand, under flooding conditions the Gas Diffusion Layer (GDL) is filled with water droplets which hinder approach of reactants to the catalyst area on the MEA, eventually giving rise to polarization related to Ra. The initial voltage response by step input current is related to membrane resistance and the final voltage response is related to activation resistance. By calculating and comparing these resistance values, the water content conditions in PEMFC can be monitored.

2 Step Response Analysis

2.1 Mathematical Expression of Step Response

The proposed step response analysis is a method where the membrane resistance, the activation resistance, and the double layer capacitance of the equivalent circuit of the PEMFC can be measured after a step current consumption is applied to the stack. A fuel cell stack can consist of between a few to hundreds of fuel cells, 400 fuel cells being common in automobile applications. Only measured stack voltage and current values are used for monitoring in this paper and the simplified Randle’s equivalent circuit shown in Fig. 1 is the chosen model for the SRA method.

Fig. 1
figure 1

Simplified randles equivalent circuit

In Fig. 1, circuit current i(t) and circuit voltage can be defined as Eqs. (1) and (2).

$$i\left( t \right) = C\frac{{dV_{c} \left( t \right)}}{dt} + \frac{{V_{c} \left( t \right)}}{{R_{a} }}$$
(1)
$${\text{V}}\left( {\text{t}} \right) = V_{R} \left( t \right) + V_{c} \left( t \right) = i\left( t \right)R_{m} + V_{c} \left( t \right)$$
(2)

System Eqs. (1) and (2) are combined and can be written as follows.

$$\frac{dV\left( t \right)}{dt} + \frac{1}{{CR_{a} }}V(t) = i(t)\left( {\frac{{R_{a} + R_{m} }}{{CR_{a} }}} \right) + R_{m} \frac{di\left( t \right)}{dt}$$
(3)

By applying the Laplace transform (3) and letting the initial conditions of voltage and current be \(\alpha\) and \(\beta\), respectively, \(V\left( S \right)\) is obtained as Eq. (5).

$${\text{SV}}\left( {\text{S}} \right) + \frac{1}{{CR_{a} }}V\left( S \right) - v\left( {0^{ - } } \right) = \frac{{{\text{R}}_{\text{a}} + R_{m} }}{{CR_{a} }}I\left( S \right) + R_{m} SI\left( S \right) - R_{m} i\left( {0^{ - } } \right)$$
(4)
$$V\left( S \right) = \frac{{\alpha - R_{m} \beta }}{{S + \frac{1}{{CR_{a} }}}} + \left\{ {R_{m} - \frac{{\frac{{R_{m} }}{{CR_{a} }} - \bar{C}}}{{S + \frac{1}{{CR_{a} }}}}} \right\}I\left( S \right)$$
(5)

Here, \(\bar{C}\) is \(\frac{{{\text{R}}_{\text{a}} + R_{m} }}{{CR_{a} }}\).

In order to find the output voltage v(t) from Eq. (5), the inverse Laplace transform can be applied to Eq. (5).

$$V\left( t \right) = L^{ - 1} \left( {\frac{{\alpha - R_{m} \beta }}{{S + \frac{1}{{CR_{a} }}}}} \right) + L^{ - 1} \left( {\left\{ {R_{m} - \frac{{\frac{{R_{m} }}{{CR_{a} }} - \bar{C}}}{{S + \frac{1}{{CR_{a} }}}}} \right\}I\left( S \right)} \right).$$
(6)

The first term is easily obtained with \(\left( {\alpha - R_{m} \beta } \right)e^{{ - \frac{t}{{CR_{a} }}}}\). The second term can be solved using the convolution operation as shown in Eq. (7).

$${\text{L}}^{ - 1} \left( {R_{m} - \frac{{\frac{{R_{m} }}{{CR_{a} }} - \bar{C}}}{{S + \frac{1}{{CR_{a} }}}}I\left( S \right)} \right) = R_{m} i\left( t \right) - \left( {\frac{{R_{m} }}{{R_{a} }} - \bar{C}} \right)\mathop \int \limits_{0}^{t} e^{{ - \frac{t - \sigma }{{CR_{a} }}}} {\text{i}}\left( \sigma \right){\text{d}}\sigma$$
(7)

The current i(t) used for step consuming is modeled as shown in Fig. 2 and can be expressed as \({\text{i}}\left( t \right) = \beta - u(t - t_{0} )\).

Fig. 2
figure 2

Current step shape for the model

For the current step model, the integral term in Eq. (7) is as follows.

$$\mathop \int \limits_{0}^{t} e^{{ - \frac{t - \sigma }{{CR_{a} }}}} i\left( \sigma \right)d\sigma = \mathop \int \limits_{0}^{{t_{0} }} e^{{ - \frac{t - \sigma }{{CR_{a} }}}} \beta d\sigma + \mathop \int \limits_{{t_{0} }}^{t} e^{{ - \frac{t - \sigma }{{CR_{a} }}}} \left( {\beta - 1} \right)d\sigma = \beta CR_{a} \left( {e^{{\frac{{t_{0} - t}}{{CR_{a} }}}} - e^{{ - \frac{t}{{CR_{a} }}}} } \right) + \left( {\beta - 1} \right)CR_{a} \left( {1 - e^{{\frac{{t_{0} - t}}{{CR_{a} }}}} } \right)$$

The final output voltage V(t) is as follows.

$$V\left( t \right) = \left( {\alpha - R_{m} \beta } \right)e^{{ - \frac{t}{{CR_{a} }}}} + R_{m} \left\{ {\beta - u\left( {t - t_{0} } \right)} \right\} - \beta R_{a} \left( {e^{{\frac{{t_{0} - t}}{{CR_{a} }}}} - e^{{ - \frac{t}{{CR_{a} }}}} } \right) + \left( {\beta - 1} \right)R_{a} \left( {1 - e^{{\frac{{t_{0} - t}}{{CR_{a} }}}} } \right)$$
(8)

The output voltage may be simplified if the start time, \(t_{0}\), of the step input is zero, as follows.

$${\text{V}}\left( {\text{t}} \right) = \left( {\alpha - R_{m} \beta } \right)e^{{ - \frac{t}{{CR_{a} }}}} + R_{m} \left\{ {\beta - u\left( t \right)} \right\} + \left( {\beta - 1} \right)R_{a} \left( {1 - e^{{ - \frac{t}{{CR_{a} }}}} } \right)$$
(9)

If we focus on the value of V(t) when \({\text{t}} = 0^{ + }\) and \(t = \infty\), the following is derived.

$$V\left( {0^{ + } } \right) = \alpha - R_{m} \beta + R_{m} \beta - R_{m} = \alpha - R_{m}$$
$$V\left( \infty \right) = R_{m} \beta - R_{m} + R_{a} \beta - R_{a} = \left( {\beta - 1} \right)\left( {R_{m} + R_{a} } \right)$$
(10)

From the conditions of Eq. (10), membrane resistance \(R_{m}\) and activation resistance \(R_{a}\) can be calculated.

$$V\left( {0^{ - } } \right) - V\left( {0^{ + } } \right) = \alpha - \left( {\alpha - R_{m} } \right) = R_{m}$$
$${\text{V}}\left( {0^{ - } } \right) - V\left( \infty \right) = \beta \left( {R_{m} + R_{a} } \right) - \left( {\beta - 1} \right)\left( {R_{m} + R_{a} } \right) = {\text{R}}_{\text{m}} + R_{a}$$
(11)

2.2 Simulation of Step Response

Based on Sect. 2.1, the simulation is conducted under the condition shown in Table 1 to prove if SRA is useful for finding \(R_{m}\), \(R_{a}\), and \(C\) in a PEMFC. In the simulation, the unit step signal is imposed at t = 0 as a unit current load command and Fig. 3 shows the voltage response of the stack simulator. The initial stack voltage response shows \(R_{m}\) at t = 0 and the final response shows \(R_{m} + R_{a}\) at t ≈ \(\infty\). Thus, through the simulation of the theoretical expression of SRA, it’s demonstrated that SRA is valid for finding \(R_{m}\), \(R_{a}\) and \(C.\)

Table 1 Simulation condition of SRA
Fig. 3
figure 3

Variation of \(R_{m}\) and \(R_{a}\) in simulation

3 Experimental Setup

3.1 System Layout

The main components of the PEMFC test bench are a hydrogen tank, an air compressor mass flow controllers, humidifiers, two xPC targets and an electric load to consume current. The two xPC targets are based on the Matlab© real time controller and one xPC is for the stack control and the other for fast data measurement.

The specification of the stack is listed in Table 2, and the output graph of the fuel cell used in the experiment is shown in Fig. 4. The schematic diagram of the system is shown in Fig. 5. The heating and cooling system for the stack is installed to control the stack temperature for each status. In addition, another heating and cooling system controls the temperature of two humidifiers of H2 and O2.

Table 2 Specification of PEMFC used in this test
Fig. 4
figure 4

Measured fuel cell stack output

Fig. 5
figure 5

Schematic diagram of PEMFC test bench

3.2 Experimental Conditions

3.2.1 Fuel Cell Operating Conditions

For fuel cell operation, \({\text{H}}_{2}\) and air are supplied to the system 1.5 ~ 2 times more than stoichiometric fuel-to-oxidizer consumption and that changes linearly according to current consumption. Thus, 2 LPM \({\text{H}}_{2}\) and 6 LPM air are constantly supplied regardless of test states and considering the losses of the system. Also, back pressure and remaining fuel and air which affect PEMFC performance are emitted only at atmospheric pressure during the experiment. The 99.999% purity hydrogen and dry air controlled by the mass flow controller are humidified in the bubble type humidifier. The fuel and air are heated or cooled before supplying to the PEMFC according to test states shown in Table 3.

Table 3 Test conditions of each test state

The operation point, 0.6A/cm^2(15A), is selected in the linear section of the performance curve of the PEMFC. The linear range of the performance curve is normal operation section of the fuel cell. Any point included in the normal operating range can be used as an operation point, but we selected this operation point considering the performance of BOP. Also, we set the current step magnitude to 0.04A/cm2(1A) because it is convenient for assigning to the formula, and is useful for intuitively observing the experimental results.

3.2.2 Optimization of Sampling Frequency

As discussed before, the initial response of PEMFC for a step response is the most important point to obtain the time constant and \(R_{m}\) of the PEMFC. However, the ideal initial response at t = 0 is impossible to measure using any practical devices. The ideal sampling frequency should be as high as possible, but practical devices cannot have boundless memory space or infinitely high sampling frequency. Thus, several tests under steady-state conditions as shown in Table 4 were conducted to find the proper sampling frequency, considering the performance of Data Acquisition (DAQ) devices and target xPCs. After investigating the step response according to the various sampling frequencies, almost the same gradients of each response are shown on the data sampled from 10 to 25 kHz as shown in Fig. 6. Based on these tests, 10 kHz sampling frequency is selected to acquire the initial response of PEMFC stack and to have enough memory space.

Table 4 Test conditions for sampling frequency optimization
Fig. 6
figure 6

Step response by different sampling frequencies

3.3 Experimental Results

3.3.1 State 1 (Dry Out Condition)

The relative humidity of H2 and air are decreasing as temperatures are changed from 60 to 30 °C so that the stack is controlled to reach the dry-out state gradually. In Fig. 7, the additional polarization of the fuel cell stack compared to initial condition can be identified. More precisely, the stack performs 3.425 V at 300 s but when dry-out state is proceeding, it shows 3.189 V, which is 7.6% lower than the initial state at 2000 s. The experiment during each state is conducted 16 times, and 15 data except the first data of each state are considered as valuable data. In the Fig. 8, the membrane resistance and the activation resistance are calculated and shown to increase during State 1. Table 5 shows the transition of the Ra, Rm showing 25.35% and 49.45%, finally increasing respectively.

Table 5 Transition of the resistance parameters during State 1
Fig. 7
figure 7

Trends of several important conditions of test bench during State 1

Fig. 8
figure 8

Variation of activation and membrane resistance of the stack during State 1

3.3.2 State 2 (Back to Normal Condition)

State 2 aims to restore the fuel cell stack condition to normal state and observe perturbation during that process. For restoration of fuel cell stack conditions, the water of each humidifier is re-heated to 60 °C, the same as the initial state. In this state, as expected, all parameters composing simplified Randle’s cell are changing reversely to State 1. Figures 9 and 10 represents the change of fuel cell stack conditions and each parameter. In Table 6, \({\text{R}}_{\text{a}}\) is restored to the conditions before the start of State1 and \({\text{R}}_{\text{m}}\) is decreased a little far from the initial condition that the fuel cell had before the start of State1.

Fig. 9
figure 9

Trends of several important conditions of test bench during State 2

Fig. 10
figure 10

Variation of activation and membrane resistance of the stack during State 2

Table 6 Transition of the total model parameters during State 2

3.3.3 State 3 (Flooding Condition)

State 3 starts from the steady-state operation to the flooding condition by heating the water of the humidifier to 80 °C while maintaining temperatures of the stack, pipe, and other parts that constitute the supply path of fuel and air to the stack at 60 °C. The variation of some important operating conditions during State 3 is shown in Fig. 11. Table 7 shows that Ra exhibits outstanding increases of about 51% and Rm is decreased to − 15.85% and these results can be seen in Fig. 12.

Table 7 Transition of the total model parameters during State 3
Fig. 11
figure 11

Trends of several important conditions of test bench during State 3

Fig. 12
figure 12

Variation of activation and membrane resistance of the stack during State 3

The overall change of the membrane resistance and the activation resistance according to each state is shown in Fig. 13. As noted earlier, the membrane resistance corresponding to the dry-out shows a large change (up to 49.45%); however, the amount of change in the membrane resistance beyond State 2 is getting smaller and converges to the constant value. In State 3, the membrane resistance is decreased up to 14.63%. The activation resistance showed a small increase in the dry-out state, a little change in State 2, and a dramatic increase up to 50.32% during the flooding conditions.

Fig. 13
figure 13

Variation of activation and membrane resistances during the whole states

4 Analysis of Experimental Results

4.1 Analysis of State 1

The dry-out condition leads to an increase in resistance polarization by degrading the \({\text{H}}^{ + }\) ionic conductivity of polymer electrolyte membrane. Ionic conductivity is highly sensitive to the water content in the electrolyte membrane and if the ionic conductivity is reduced, this is shown to increase membrane resistance in the equivalent circuit. Polymer electrolyte membrane ionic conductivity as a formula can be represented as in Eq. (12) [10].

$$K = \left( {0.5139\mu - 0.326} \right)* \exp \left[ {1268\left( {\frac{1}{303} - \frac{1}{T}} \right)} \right]$$
(12)
$$\mu = 0.043 + 17.81h - 39.85h^{2} + 36.0h^{3}$$
(13)

Equation (14) represents the resistance of the electrolyte membrane by using the thickness of the electrolyte membrane (t) and ionic conductivity (K) [10].

$${\text{R}}_{\text{m}} = \frac{1000* t}{K}$$
(14)

Based on the equation above, the ionic conductivity is a function of \(\mu\) because the temperature of stack is fixed during this test. Since \(\mu\) is a function of the relative humidity of reactants, eventually we can take ionic conductivity as a function of the relative humidity of reactants. If the relative humidity of reactants is lowered, \(\mu\) and K are lowered together and this instance leads to an increase in membrane resistance.

4.2 Analysis of State 2

In State 2, the relative humidity is increased again in the inlet gas that is input to the cell component, thereby increasing relative humidity in the fuel and oxidant hydrate in the electrolyte membrane. In this regard, the membrane resistance is recovered as much as the initial state of State 1 as the hydration of electrolyte membrane in the PEMFC stack has recovered and it leads to a decline of membrane resistance based on Eqs. (12, 13, 14).

4.3 Analysis of State 3

The activation resistance has shown an increase in State 3 multiple-times that of the increase in membrane resistance. First of all, the membrane resistance showed a reduction during State 3; however, its slope is small compared to other states and does not fall much further from a certain level. To explain this phenomenon, the relationship between accumulations of water contents at GDL and membrane resistance should be investigated. The cause of this is found in [9] which explains that the membrane resistance converges to a constant value after passing the optimum point as the membrane hydration progresses. It can be seen that the tendency described in the paper is still present in this experiment.

Also, we can observe a change in activation resistance during State 3 and Eqs. (15) and (16) [10] show correlations among activation polarization represented by activation resistance, exchange current density at cathode, and catalyst specific area at cathode because most portions of activation polarization are related to activation energy at the cathode.

$${{\rm{V}}_{{\rm{act}}}} = {{{R_u}T} \over {nFa}}*\ln \left( {{{I + {I_{in}}} \over {{I_0}}}} \right)$$
(15)
$${{\rm{I}}_0} = {I_{0,ref}}{A_c}{L_c}{\left( {\left( {{{0.21\left( {P - \emptyset {P_{{H_2}o,sat}}} \right)} \over P}} \right)} \right)^{{1 \over 2}}}*\exp \left[ { - {{{E_c}} \over {RT}}*(1 - \left( {{T \over {298.15}}} \right)} \right]$$
(16)

Since temperature in the PEMFC stack during the test is fixed and the other parameters are constant, (15) is a function of exchange current density \({\text{I}}_{0}\). This can be calculated by (16) as function of catalyst specific area \({\text{A}}_{\text{C}}\) because other parameters are of constant value in this test. Thus, as accumulation of water contents at GDL proceeds, gradual reduction of catalyst specific area is achieved. If a catalyst-specific area is reduced, the \({\text{V}}_{\text{act}}\) increases in (16). One can then conclude that congelation of water contents at GDL reduces catalyst specific area where reactants can make reaction, leading to a decline in exchange current density. Finally, reduced exchange current density brings about increased activation polarization (\({\text{V}}_{\text{act}}\)) by increasing activation resistance in State 3.

5 Conclusions

Water management of PEMFC is a critical issue in PEMFC application for commercialization. For detecting PEMFC water balance, the SRA method has been discussed here. This method is based on \({\text{R}}_{\text{m}}\) and \({\text{R}}_{\text{a}}\) which are components of the PEMFC equivalent circuit. In this paper, an interesting finding is that it is possible to find \({\text{R}}_{\text{m}}\) and \({\text{R}}_{\text{a}}\) by using a simple step current consumption.

Also, the correlation between the variation of resistance values in equivalent circuit calculated by SRA and water balance conditions in PEMFC (dry-out and flooding) is assessed. Using this SRA method is not only a simple and convenient solution for monitoring water balance in PEMFC stack; it also has an advantage in on-board integration system for real time application because of its simple signal processing.