Main Content

Fuel Cell Stack

Implement generic hydrogen fuel cell stack model


Simscape / Electrical / Specialized Power Systems / Electric Drives / Extra Sources

  • Fuel Cell Stack block


The Fuel Cell Stack block implements a generic model parameterized to represent most popular types of fuel cell stacks fed with hydrogen and air.

The block represents two versions of the stack model: a simplified model and a detailed model. You can switch between the two models by selecting the level in the mask under Model detail level in the block dialog box.

Simplified Model

This model is based on the equivalent circuit of a fuel cell stack shown below:

The simplified model represents a particular fuel cell stack operating at nominal conditions of temperature and pressure. The parameters of the equivalent circuit can be modified based on the polarization curve obtained from the manufacturer datasheet. You just have to input in the mask the value of the voltage at 0 and 1 A, the nominal and the maximum operating points, for the parameters to be calculated. A diode is used to prevent the flow of negative current into the stack. A typical polarization curve consists of three regions:

The first region represents the activation voltage drop due to the slowness of the chemical reactions taking place at electrode surfaces. Depending on the temperature and operating pressure, type of electrode, and catalyst used, this region is more or less wide. The second region represents the resistive losses due to the internal resistance of the fuel cell stack. Finally, the third region represents the mass transport losses resulting from the change in concentration of reactants as the fuel is used.

Detailed Model

The detailed model represents a particular fuel cell stack when the parameters such as pressures, temperature, compositions and flow rates of fuel and air vary. You can select which parameters to vary on the Signal variation pane on the block dialog box. These variations affect the open circuit voltage (Eoc), the exchange current (i0), and the Tafel slope (A). Eoc, i0 and A are modified as follows:



R = 8.3145 J/(mol K)

F = 96485 A s/mol

z = Number of moving electrons

En = Nernst voltage, which is the thermodynamics voltage of the cells and depends on the temperatures and partial pressures of reactants and products inside the stack (V)

α = Charge transfer coefficient, which depends on the type of electrodes and catalysts used

PH2 = Partial pressure of hydrogen inside the stack (Pa)

PO2 = Partial pressure of oxygen inside the stack (Pa)

k = Boltzmann's constant = 1.38 × 10–23 J/K

h = Planck's constant = 6.626 × 10–34 J s

Δv = Activation barrier volume factor (m3). The size of activation barrier (ΔG) is computed assuming Δv = 1 m3.

ΔG = Size of the activation barrier which depends on the type of electrode and catalyst used (J/mol)

T = Temperature of operation (K)

Kc = Voltage constant at nominal condition of operation

The equivalent circuit is the same as for the simplified model, except that the parameters Eoc, i0 and Α have to be updated on-line as shown below:

The rates of conversion (utilizations) of hydrogen (UfH2) and oxygen (UfO2) are determined in Block A as follows:



Pfuel = Absolute supply pressure of fuel (atm)

Pair = Absolute supply pressure of air (atm)

Vlpm(fuel) = Fuel flow rate (l/min)

Vlpm(air) = Air flow rate (l/min)

x = Percentage of hydrogen in the fuel (%)

y = Percentage of oxygen in the oxidant (%)

N = Number of cells

The 60000 constant comes from the conversion from the liter/min flow rate used in the model to m3/s (1 liter/min = 1/60000 m3/s).

The partial pressures and the Nernst voltage are determined in Block B as follows:



En={1.229+(T298)44.43zF+RTzFln(PH2PO21/2)when T100C1.229+(T298)44.43zF+RTzFln(PH2PO21/2PH2O)when T>100C


PH2O = Partial pressure of water vapor inside the stack (atm)

w = Percentage of water vapor in the oxidant (%)

From the partial pressures of gases and the Nernst voltage, the new values of the open circuit voltage (Eoc) and the exchange current (i0) can be calculated.

Block C calculates the new value of the Tafel slope (A).

The parameters α, ΔG, and Kc are calculated based on the polarization curve at nominal conditions of operation along with some additional parameters, such as the low heating value (LHV) efficiency of the stack, composition of fuel and air, supply pressures and temperatures. They can be easily obtained from the manufacturer datasheet.

The nominal rates of conversion of gases are calculated as follows:



ηnom = Nominal LHV efficiency of the stack (%).

Δh0(H2O(gas)) = 241.83 × 103 J/mol.

Vnom = Nominal voltage (V).

Inom = Nominal current (A).

Vlpm(air)nom = Nominal air flow rate (l/min).

Pairnom = Nominal absolute air supply pressure (Pa).

Tnom = Nominal operating temperature (K).

From these rates of conversion, the nominal partial pressures of gases and the Nernst voltage can be derived. With Eoc, i0 and Α known and assuming that the stack operates at constant rates of conversion or utilizations at nominal condition, α, ΔG, and Kc can be determined.

If there is no fuel or air at the stack input, it is assumed that the stack is operating at a fixed rate of conversion of gases (nominal rate of conversion), that is, the supply of gases is adjusted according to the current so that they are always supplied with just a bit more than needed by the stack at any load.

The maximum current the stack can deliver is limited by the maximum flow rates of fuel and air that can be reached. Beyond that maximum current, the voltage output by the stack decreases abruptly as more current is drawn.

The dynamics of the fuel cell are represented if you specify the response time and the parameters for flow dynamics (peak utilization and corresponding voltage undershoot) on the Fuel Cell Dynamics pane on the dialog box.

The response time (Td) @ 95% is used to model the "charge double layer" phenomenon due to the build-up of charges at electrode/electrolyte interface. This affects only the activation voltage (NAln(ifc/i0)) as shown on the equivalent circuits.

The peak utilization (UfO2(peak)) and the corresponding voltage undershoot (Vu) are used to model the effect of oxygen depletion (due to the air compressor delay) on the cell output voltage. The Nernst voltage is modified due to this effect as follows:



K = voltage undershoot constant

UfO2(nom) = nominal oxygen utilization

K is determined as follows:


Current step and interrupt tests must be made on a real stack to represent with accuracy its dynamics. The figure below shows the stack response from these tests and the required parameters (Td, UfO2(peak) and Vu).

The response time (Td) depends on the fuel cell stack itself and is usually given on the datasheet. The parameters for flow dynamics (UfO2(peak) and Vu) depend on the dynamics of external equipment (compressor, regulator, and loads) and they are not provided by manufacturers as their values vary with the user application. For simulation, assume values of UfO2(peak) between 60% to 70% and Vu between 2-5% of the stack nominal voltage.


Parameters Tab

Preset model

Provides a set of predetermined polarization curves and parameters for particular fuel cell stacks found on the market:

  • No (User-Defined) (default)

  • PEMFC - 1.26 kW - 24 Vdc

  • PEMFC - 6 kW - 45 Vdc

  • PEMFC - 50 kW - 625 Vdc

  • AFC - 2.4 kW - 48 Vdc

  • SOFC - 3 kW - 100 Vdc

  • SOFC - 25 kW - 630 Vdc

Select one of these preset models to load the corresponding parameters in the entries of the dialog box. Select No (User-Defined) if you do not want to use a preset model.

Model detail level

Provide access to the two versions of the model:

  • Simplified

  • Detailed (default)

When a simplified model is used, there is no variable under the signal variation tab.

Voltage at 0 A and 1 A

The voltage at 0 A and 1 A of the stack (Volts). Assuming nominal and constant gases utilizations. Default is [65 63].

Nominal operating point

The rated current (Ampere) and rated voltage (Volts) of the stack. Assuming nominal and constant gases utilizations. Default is [133.3 45].

Maximum operating point

The current (Ampere) and voltage (Volts) of the stack at maximum power. Assuming nominal and constant gases utilizations. Default is [225 37].

Number of cells

The number of cells in series in the stack. This parameter is available only for a detailed model. Default is 65.

Nominal stack efficiency

The rated efficiency of the stack relative to the low heating value (LHV) of water. This parameter is available only for a detailed model. Default is 55.

Operating temperature

The nominal temperature of operation in degrees Celsius. This parameter is available only for a detailed model. Default is 65.

Nominal air flow rate

The rated air flow rate (l/min). This parameter is available only for a detailed model. Default is 300.

Nominal supply pressure

Rated supply pressure (absolute) of fuel and air in bars. This parameter is available only for a detailed model. Default is [1.5 1].

Nominal composition

The rated percentage of hydrogen (x) in the fuel, oxygen (y) and water (w) in the oxidant. This parameter is available only for a detailed model. Default is [99.95 21 1].

Plot V-I characteristic

Plots a figure containing two graphs. The first graph represents the stack voltage (Volts) vs current (A) and the second graph represents the stack power (kW) vs current (A). This button is available only for a detailed model.

View cell parameters

Presents the overall parameters of the stack. This button is available only for a detailed model. The dialog box is shown below.

Signal Variation Tab

The Signal Variation tab is available only if Model detail level is set to Detailed. It provides a list of parameters that can be varied. Select a check box for a variable to input a corresponding signal to the block. The following signals can be input to the block:

Fuel composition

Percentage of hydrogen in the fuel. Default is cleared.

Oxidant composition

Percentage of oxygen in the oxidant. Default is cleared.

Fuel flow rate

Fuel flow rate in liter per minutes. Default is cleared.

Air flow rate

Air flow rate in liter per minutes. Default is cleared.

System Temperature

Temperature of operation in Kelvin. Default is cleared.

Fuel supply pressure

Fuel supply pressure in bars. Default is cleared.

Air supply pressure

Air supply pressure in bars. Default is cleared.

Fuel Cell Dynamics Tab

Specify Fuel Cell Dynamics?

Asks whether you want to specify the fuel cell dynamics. Select the check box to enter the fuel cell response time in seconds. Default is cleared.

Fuel Cell response time (sec)

Enter the response time of the cell (at 95% of the final value). Default is 1. This parameter becomes available only when the Specify Fuel Cell Dynamics? check box is selected.

Peak O2 utilization (%)

Enter the peak oxygen utilization at nominal condition of operation. Default is 80. This parameter is available only when the Specify Fuel Cell Dynamics? check box is selected and the Air flow rate check box is selected in the Signal Variation tab.

Voltage undershoot (V) @ peak O2 utilization

Enter the voltage undershoot (Volts) at peak oxygen utilization at nominal condition of operation. Default is 10. This parameter is available only when the Specify Fuel Cell Dynamics? check box is selected and the Air flow rate check box is selected in the Signal Variation tab.

How to Extract Parameters from Data Sheet

Here is the procedure to extract parameters from fuel cell stack manufacturer's data sheet. For this example, the NetStack PS6 data sheet from NetStack is used:

The rated power of the stack is 6 kW and the nominal voltage is 45 V. The following detailed parameters are deduced from the datasheet.

  • Voltage at 0 A and 1 A [Eoc,V1] = [65, 63]

  • Nominal operating point [Inom, Vnom]=[133.3, 45]

  • Maximum operating point [Iend,Vend]=[225, 37]

  • Nominal stack efficiency (ηnom)= 55%

  • Operating temperature = 65 0C

  • Nominal supply pressure [H2, Air]=[1.5 1]

    If the pressure given is relative to the atmospheric pressure, add 1 bar to get the absolute pressure.

  • Nominal composition (%)[H2, O2, H2O(Air)]=[99.999, 21, 1]

    If air is used as oxidant, assume 21% of O2 and 1% of H2O in case their percentages are not specified.

  • Number of cells

    If not specified, estimate it from the formulae below:


    In this case,

    N=29648545241.831030.55=65.28=65 cells.

  • Nominal air flow rate

    If the maximum air flow rate is given, the nominal flow rate can be calculated assuming a constant oxygen utilization at any load. The current drawn by the cell is linearly dependent on air flow rate and the nominal flow rate is given by:


    In this case,

    Vlpm(air)nom=133.3500225=297 liters/min.

    In case no information is given, assume the rate of conversion of oxygen to be 50% (as it is usually the case for most fuel cell stacks) and use the formulae below to determine the nominal air flow rate.


  • Fuel cell response time = 10 s


The parameters [Eoc, V1], [Inom, Vnom], and [Iend,Vend] are approximate and depend on the precision of the points obtained from the polarization curve. The higher the accuracy of these parameters, the more closed the simulated stack voltage to the data sheet curve is. A tool, called ScanIt (from amsterchem) can be used to extract precise values from data sheet curves.

With the above parameters, the polarization curve of the stack operating at fixed nominal rate of conversion of gases is closed to the datasheet curves as shown below: The blue dotted line shows that the simulated stack voltage and green dotted line shows the simulated stack power.

Above the maximum current, the flow rate of gases entering the stack is maximum and the stack voltage decreases abruptly as more current is drawn.

Block Inputs and Outputs


The Simulink® output of the block is a vector containing 11 signals. You can demultiplex these signals by using the Bus Selector block provided in the Simulink library.


Model detail level
(Signal availability)




















Stack Efficiency




No(Set to 0)


Stack consumption [Air, Fuel]




No(Set to 0)


Flow Rate [Air, Fuel]




No(Set to 0)


Stack consumption [Air, Fuel]




No(Set to 0)


Utilization [Oxygen, Hydrogen]




No(Set to 0)


Slope of Tafel curve




No(Set to 0)


Exchange current




No(Set to 0)


Nernst voltage




No(Set to 0)


Open circuit voltage




No(Set to 0)

Model Assumptions

  • The gases are ideal

  • The stack is fed with hydrogen and air

  • The stack is equipped with a cooling system which maintains the temperature at the cathode and anode exits stable and equal to the stack temperature

  • The stack is equipped with a water management system to maintain the humidity inside the cell at appropriate level at any load

  • The cell voltage drops are due to reaction kinetics and charge transport as most fuel cells do not operate in the mass transport region

  • Pressure drops across flow channels are negligible

  • The cell resistance is constant at any condition of operation

Model Limitations

  • Chemical reaction dynamics caused by partial pressure changes of chemical species inside the cell are not considered

  • The stack output power is limited by the fuel and air flow rates supplied

  • The effect of temperature and humidity of the membrane on the internal resistance is not considered

  • The flow of gases or water through the membrane is not considered


The power_fuel_cell example illustrates a 6 kW, 45 volts Proton Exchange Membrane (PEM) Fuel Cell Stack model feeding a 100Vdc DC/DC converter.


[1] Njoya, S. M., O. Tremblay, and L. -A. Dessaint. A generic fuel cell model for the simulation of fuel cell vehicles. Vehicle Power and Propulsion Conference, 2009, VPPC ’09, IEEE® . Sept. 7–10, 2009, pp. 1722–29.

[2] Motapon, S.N., O. Tremblay, and L. -A. Dessaint. “Development of a generic fuel cell model: application to a fuel cell vehicle simulation.” Int. J. of Power Electronics. Vol. 4, No. 6, 2012, pp. 505–22.

Introduced in R2008a