> For the complete documentation index, see [llms.txt](https://www.opal-rt.com/docs/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://www.opal-rt.com/docs/smart-power-simulation-software-sps/blocks-functions-tools/renewables/fuel-cell-stack.md).

# Fuel Cell Stack

## Description

<figure><img src="https://799605156-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FdlNg8IbOdahCpFCyzxSN%2Fuploads%2Fgit-blob-df0a746d4e75bc8ae966c01420c5a237b30df910%2Ffuel_cell_stack_block.png?alt=media" alt=""><figcaption></figcaption></figure>

The **Fuel Cell Stack block**, located in the **OPAL-RT SPS Software/Sources** library, 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:

<figure><img src="https://799605156-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FdlNg8IbOdahCpFCyzxSN%2Fuploads%2Fgit-blob-16c604b838da6854e1ce0403386156706da5dd02%2Ffuel_cell_stack_simplified_model.png?alt=media" alt=""><figcaption></figcaption></figure>

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:

<figure><img src="https://799605156-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FdlNg8IbOdahCpFCyzxSN%2Fuploads%2Fgit-blob-5d925324d77033592a05e4934fb094df90763513%2Ffuel_cell_stack_polarization_curve.png?alt=media" alt=""><figcaption></figcaption></figure>

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 (*E*<sub>*oc*</sub>), the exchange current (*i*<sub>*0*</sub>), and the Tafel slope (*A*). *E*<sub>*oc*</sub>, *i*<sub>*0*</sub> and *A* are modified as follows:

$$
E\_{oc} = K\_t E\_n \\\[8pt]

i\_0 = \frac{z F k (P\_{H\_2} + P\_{O\_2}) \Delta v}{R h} e^{-\Delta G / (R T)} \\\[8pt]

A = \frac{R T}{z \alpha F}, \\\[8pt]
$$

where:

*R* = 8.3145 J/(mol K)

*F* = 96485 A s/mol

*z* = Number of moving electrons

*E*<sub>*n*</sub> = 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

*P*<sub>*H2*</sub> = Partial pressure of hydrogen inside the stack (Pa)

*P*<sub>*O2*</sub> = Partial pressure of oxygen inside the stack (Pa)

*k* = Boltzmann's constant = 1.38 × 10<sup>–23</sup> J/K

*h* = Planck's constant = 6.626 × 10<sup>–34</sup> J s

*Δv* = Activation barrier volume factor (m<sup>3</sup>). The size of activation barrier (*ΔG*) is computed assuming *Δv* = 1 m<sup>3</sup>.

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

*T* = Temperature of operation (K)

*K*<sub>*c*</sub> = Voltage constant at nominal condition of operation

The equivalent circuit is the same as for the simplified model, except that the parameters *E*<sub>*oc*</sub>, *i*<sub>*0*</sub> and *Α* have to be updated on-line as shown below:

<figure><img src="https://799605156-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FdlNg8IbOdahCpFCyzxSN%2Fuploads%2Fgit-blob-7eda99500432bea7cc94fa20ee6c2f3c80356158%2Ffuel_cell_stack_equivalent_circuit.png?alt=media" alt=""><figcaption></figcaption></figure>

The rates of conversion (utilizations) of hydrogen (*U*<sub>*fH2*</sub>) and oxygen (*U*<sub>*fO2*</sub>) are determined in Block A as follows:

$$
W\_{H\_2} = \frac{\dot{m}*{H\_2}^n}{\dot{m}*{H\_2}^a}
\= \frac{60000 RT N\_c}{2 F P\_{\text{fuel}} V\_{\text{syn}}^{\text{mol}%} V\_0}
\\\[8pt]

U\_{O\_2} = \frac{\dot{m}*{O\_2}^n}{\dot{m}*{O\_2}^a}
\= \frac{60000 RT N\_c}{2 z F P\_{\text{air}} V\_{\text{syn}}^{\text{mol}%} V\_0}

\\\[8pt]
$$

where

*P*<sub>*fuel*</sub> = Absolute supply pressure of fuel (atm)

*P*<sub>*air*</sub> = Absolute supply pressure of air (atm)

*V*<sub>*lpm(fuel)*</sub> = Fuel flow rate (l/min)

*V*<sub>*lpm(air)*</sub> = 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:

$$
c\_{P\_{H\_2}} = (1 - U\_{H\_2}) , x % , P\_{\text{fuel}} \\\[8pt]

P\_{H\_2O} = (w + 2 y % U\_{O\_2}) , P\_{\text{air}} \\\[8pt]

P\_{O\_2} = (1 - U\_{O\_2}) , y % , P\_{\text{air}} \\\[8pt]
$$

and

$$
E\_n =
\begin{cases}
1.229 + (T - 298) \frac{-44.43}{zF}
\+ \frac{RT}{zF} \ln\left( \frac{P\_{H\_2} , P\_{O\_2}^{1/2}}{P\_{H\_2O}} \right)
& \text{when } T \le 100^\circ C
\\\[8pt]

1.229 + (T - 298) \frac{-44.43}{zF}
\+ \frac{RT}{zF} \ln\left( \frac{P\_{H\_2} , P\_{O\_2}^{1/2}}{P\_{H\_2O}} \right)
& \text{when } T > 100^\circ C
\end{cases}
\\\[8pt]
$$

where

*P*<sub>*H2O*</sub> = 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 (*E*<sub>*oc*</sub>) and the exchange current (*i*<sub>*0*</sub>) can be calculated.

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

The parameters α, *ΔG*, and *K*<sub>*c*</sub> 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:

$$
U\_{H\_2} =
\frac{\eta\_{\text{nom}} , \Delta h^{0}(H\_{2}O(\text{gas})) , N}
{2 F V\_{\text{nom}} I\_{\text{nom}}}
\\\[8pt]

U\_{fO\_2} =
\frac{60000 R T\_{\text{nom}} , N , I\_{\text{nom}}}
{2 z F P\_{\text{airnom}} , V\_{\text{ipm(air)nom}} \cdot 0.21}
\\\[8pt]
$$

where:

*η*<sub>*nom*</sub>= Nominal LHV efficiency of the stack (%).

*Δh*<sup>*0*</sup>*(H*<sub>*2*</sub>*O(gas))* = 241.83 × 10<sup>3</sup> J/mol.

*V*<sub>*nom*</sub> = Nominal voltage (V).

*I*<sub>*nom*</sub> = Nominal current (A).

*V*<sub>*lpm(air)nom*</sub> = Nominal air flow rate (l/min).

*P*<sub>*airnom*</sub> = Nominal absolute air supply pressure (Pa).

*T*<sub>*nom*</sub> = Nominal operating temperature (K).

From these rates of conversion, the nominal partial pressures of gases and the Nernst voltage can be derived. With *E*<sub>*oc*</sub>, *i*<sub>*0*</sub> and *Α* known and assuming that the stack operates at constant rates of conversion or utilizations at nominal condition, α, *ΔG*, and *K*<sub>*c*</sub> can be determined.

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 (*T*<sub>*d*</sub>) @ 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 (*NA\_ln*(i<sub>fc</sub>/i<sub>0</sub>)\_) as shown on the equivalent circuits.

The peak utilization *(Uf*<sub>*O2*</sub><sub>(peak)</sub>) and the corresponding voltage undershoot (*V*<sub>*u*</sub>) 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:

$$
E\_m =
\left{
\begin{array}{l}
E\_n - K \left( U\_{fO\_2} - U\_{fO\_2(\text{nom})} \right)
\quad U\_{fO\_2} > U\_{fO\_2(\text{nom})}
\\\[8pt]

E\_n
\quad U\_{fO\_2} \le U\_{fO\_2(\text{nom})}
\end{array}
\right.
\\\[8pt]
$$

where

*K =* voltage undershoot constant

*U*<sub>*fO2*</sub><sub>(nom)</sub> = nominal oxygen utilization

*K* is determined as follows:

$$
K = \frac{V\_u}{K\_c \left( U\_{fO\_2(\text{peak})} - U\_{fO\_2(\text{nom})} \right)}. \\\[8pt]
$$

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 (*T*<sub>*d*</sub>, *Uf*<sub>*O2*</sub><sub>(peak)</sub> and *V*<sub>*u*</sub>).

<figure><img src="https://799605156-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FdlNg8IbOdahCpFCyzxSN%2Fuploads%2Fgit-blob-55cbd1527e6bf20d9a40882bd8266e5c793f5026%2Ffuel_cell_stack_response_curve.png?alt=media" alt=""><figcaption></figcaption></figure>

The response time (*T*<sub>*d*</sub>) depends on the fuel cell stack itself and is usually given on the datasheet. The parameters for flow dynamics (*Uf*<sub>*O2*</sub><sub>(peak)</sub> and *V*<sub>*u*</sub>) 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 *Uf*<sub>*O2*</sub><sub>(peak)</sub> between 60% to 70% and *V*<sub>*u*</sub> between 2-5% of the stack nominal voltage.

### 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:

<figure><img src="https://799605156-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FdlNg8IbOdahCpFCyzxSN%2Fuploads%2Fgit-blob-2b17c37035ea57a379b4f29bc8281d0c0cf17b80%2Ffuel_cell_stack_datasheet.png?alt=media" alt=""><figcaption></figcaption></figure>

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 \[E<sub>oc</sub>,V<sub>1</sub>] = \[65, 63]
* Nominal operating point \[I<sub>nom</sub>, V<sub>nom</sub>]=\[133.3, 45]
* Maximum operating point \[I<sub>end</sub>,V<sub>end</sub>]=\[225, 37]
* Nominal stack efficiency (*η*<sub>*nom*</sub>)= 55%
* Operating temperature = 65 <sup>0</sup>C
* 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 O<sub>2</sub> and 1% of H<sub>2</sub>O in case their percentages are not specified.
* Number of cells If not specified, estimate it from the formulae below:

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:

$$
N = \frac{2 \cdot 96485 \cdot V\_{\text{nom}}}{241.83 \cdot 10^{3} \cdot \eta\_{\text{nom}}} \\\[8pt]
$$

In this case,

$$
N = \frac{2 \cdot 96485 \cdot 45}{241.83 \cdot 10^{3} \cdot 0.55}
\= 65.28 = 65\ \text{cells}. \\\[8pt]
$$

* 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:

$$
V\_{\text{lpm(air)nom}} = \frac{I\_{\text{nom}} \cdot V\_{\text{lpm(air)max}}}{I\_{\text{end}}} \\\[8pt]
$$

In this case,

$$
V\_{\text{lpm(air)nom}} = \frac{133.3 \cdot 500}{225} = 297\ \text{liters/min}. \\\[8pt]
$$

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.

We don't have a way to export this macro.

* Fuel cell response time = 10 s

{% hint style="info" %}
The parameters \[E<sub>oc</sub>, V<sub>1</sub>], \[I<sub>nom</sub>, V<sub>nom</sub>], and \[I<sub>end</sub>,V<sub>end</sub>] 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.
{% endhint %}

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.

<figure><img src="https://799605156-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FdlNg8IbOdahCpFCyzxSN%2Fuploads%2Fgit-blob-45a20db74a950cc38771050d70a554b2ea205d11%2Ffuel_cell_stack_datasheet_simulation.png?alt=media" alt=""><figcaption></figcaption></figure>

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.

## Assumptions and Limitations

These are the assumptions of this block:

* 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.

These are the limitations of this block:

* 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.

## Ports

### Output

<table data-header-hidden><thead><tr><th width="289.5555419921875"></th><th></th></tr></thead><tbody><tr><td><strong>m</strong> — Measurement vector<br>Simulink<sup>®</sup> signal</td><td>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.</td></tr></tbody></table>

<table data-header-hidden><thead><tr><th width="86.88885498046875"></th><th></th><th width="85.3333740234375"></th><th width="115.2222900390625"></th><th></th><th></th></tr></thead><tbody><tr><td><strong>Signal</strong></td><td><strong>Definition</strong></td><td><strong>Units</strong></td><td><strong>Symbol</strong></td><td><strong>Model detailed</strong></td><td><strong>Model simplified</strong></td></tr><tr><td>1</td><td>Voltage</td><td>V</td><td>V<sub>fc</sub></td><td>Yes</td><td>Yes</td></tr><tr><td>2</td><td>Current</td><td>I</td><td>I<sub>fc</sub></td><td>Yes</td><td>Yes</td></tr><tr><td>3</td><td>Stack Efficiency</td><td>%</td><td>η</td><td>Yes</td><td>No (Set to 0)</td></tr><tr><td>4</td><td>Stack consumption [Air, Fuel]</td><td>slpm</td><td>V<sub>slpm</sub></td><td>Yes</td><td>No (Set to 0)</td></tr><tr><td>5</td><td>Flow Rate [Air, Fuel]</td><td>lpm</td><td>Fr<sub>lpm</sub></td><td>Yes</td><td>No (Set to 0)</td></tr><tr><td>6</td><td>Stack consumption [Air, Fuel]</td><td>lpm</td><td>V<sub>lpm</sub></td><td>Yes</td><td>No (Set to 0)</td></tr><tr><td>7</td><td>Utilization [Oxygen, Hydrogen]</td><td>%</td><td>U<sub>f</sub></td><td>Yes</td><td>No (Set to 0)</td></tr><tr><td>8</td><td>Slope of Tafel curve</td><td></td><td>A</td><td>Yes</td><td>No (Set to 0)</td></tr><tr><td>9</td><td>Exchange current</td><td>A</td><td>i<sub>0</sub></td><td>Yes</td><td>No (Set to 0)</td></tr><tr><td>10</td><td>Nernst voltage</td><td>V</td><td>E<sub>n</sub></td><td>Yes</td><td>No (Set to 0)</td></tr><tr><td>11</td><td>Open circuit voltage</td><td>V</td><td>E<sub>oc</sub></td><td>Yes</td><td>No (Set to 0)</td></tr></tbody></table>

### Conserving

<table data-header-hidden><thead><tr><th width="250.2222900390625"></th><th></th></tr></thead><tbody><tr><td><strong>+</strong> — Positive terminal<br>SPS electrical</td><td>SPS electrical conserving port associated with the positive terminal.</td></tr><tr><td><strong>-</strong> — Negative terminal<br>SPS electrical</td><td>SPS electrical conserving port associated with the negative terminal.</td></tr></tbody></table>

## Parameters

<table data-header-hidden><thead><tr><th width="249.7777099609375"></th><th></th></tr></thead><tbody><tr><td><strong>Preset model</strong> — Set of predetermined polarization curves<br>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</td><td><p>Provides a set of predetermined polarization curves and parameters for particular fuel cell stacks found on the market:</p><ul><li>No (User-Defined) (default)</li><li>PEMFC - 1.26 kW - 24 Vdc</li><li>PEMFC - 6 kW - 45 Vdc</li><li>PEMFC - 50 kW - 625 Vdc</li><li>AFC - 2.4 kW - 48 Vdc</li><li>SOFC - 3 kW - 100 Vdc</li><li>SOFC - 25 kW - 630 Vdc</li></ul><p>Select one of these preset models to load the corresponding parameters in the entries of the dialog box.</p><p>Select No (User-Defined) if you do not want to use a preset model.</p></td></tr><tr><td><strong>Model detail Level</strong> — Detail level<br>Simplified (default) | Detailed</td><td><p>Provide access to the two versions of the model:</p><ul><li>Simplified</li><li>Detailed (default)</li></ul><p>When a simplified model is used, there is no variable under the <strong>signal variation</strong> tab.</p></td></tr><tr><td><strong>Voltage at 0A and 1A [V_0(V), V_1(V)]</strong> — Voltage at 0A and 1A<br>[65,63] (default)</td><td>Voltage at 0 A and 1 A of the stack (Volts). Assuming nominal and constant gases utilizations. Default is [65 63].</td></tr><tr><td><strong>Nominal operating point [Inom(A), Vnom(V)]</strong> — Nominal operating point<br>[133.3,45] (default)</td><td>Rated current (Ampere) and rated voltage (Volts) of the stack. Assuming nominal and constant gases utilizations. Default is [133.3 45].</td></tr><tr><td><strong>Maximum operating point [Iend(A), Vend(V)]</strong> — Maximum operating point<br>[225,37] (default)</td><td>Current (Ampere) and voltage (Volts) of the stack at maximum power. Assuming nominal and constant gases utilizations. Default is [225 37].</td></tr><tr><td><strong>Number of cells</strong> — Number of cells<br>65 (default)</td><td>Number of cells in series in the stack. This parameter is available only for a detailed model. Default is 65.</td></tr><tr><td><strong>Nominal stack efficiency (%)</strong> — Nominal stack efficiency<br>55 (default)</td><td>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.</td></tr><tr><td><strong>Operating temperature (Celsius)</strong> — Operating temperature<br>65 (default)</td><td>Nominal temperature of operation in degrees Celsius. This parameter is available only for a detailed model. Default is 65.</td></tr><tr><td><strong>Nominal Air flow rate (lpm)</strong> — Nominal Air flow rate<br>300 (default)</td><td>Rated air flow rate (l/min). This parameter is available only for a detailed model. Default is 300.</td></tr><tr><td><strong>Nominal supply pressure [Fuel (atm), Air (atm)]</strong> — Nominal supply pressure<br>[1.5,1] (default)</td><td><p>Rated supply pressure (absolute) of fuel and air in atm. This parameter is available only for a detailed model. Default is [1.5 1].</p><div data-gb-custom-block data-tag="hint" data-style="info" class="hint hint-info"><p>In R2024b the unit for the <strong>Nominal supply pressure [Fuel (atm), Air (atm)]</strong> parameter has changed to atm</p></div></td></tr><tr><td><strong>Nominal composition (%) [H2 O2 H2O(Air)]</strong> — Nominal composition<br>[99.95,21,1] (default)</td><td><p>Rated percentage of hydrogen (x) in the fuel, oxygen (y) and water (w) in the oxidant.</p><p>This parameter is available only for a detailed model. Default is [99.95 21 1].</p></td></tr><tr><td><strong>Peak O2 utilization (%)</strong> — Peak O2 utilization<br>80 (default)</td><td><p>Enter the peak oxygen utilization at nominal condition of operation. Default is 80.</p><p>This parameter is available only when the <strong>Specify Fuel Cell Dynamics?</strong> check box is selected and the <strong>Air flow rate</strong> check box is selected in the <strong>Signal Variation</strong> tab.</p></td></tr><tr><td><strong>Voltage undershoot (V) @ peak O2 utilization</strong> — Voltage undershoot<br><code>10</code> (default)</td><td>Enter the voltage undershoot (Volts) at peak oxygen utilization at nominal condition of operation. Default is <code>10</code>. This parameter is available only when the <strong>Specify Fuel Cell Dynamics?</strong> check box is selected and the <strong>Air flow rate</strong> check box is selected in the <strong>Signal Variation</strong> tab.</td></tr><tr><td><strong>Plot V-I characteristic</strong> — Plot V-I characteristic<br></td><td><p>Plots a figure containing two graphs.</p><p>The first graph represents the stack voltage (Volts) vs current (A) and the second graph represents the stack power (kW) vs current (A).</p><p>This button is available only for a detailed model.</p></td></tr><tr><td><strong>View cell parameters</strong> — View cell parameters<br></td><td><p>Presents the overall parameters of the stack. This button is available only for a detailed model.</p><p>The dialog box is shown below.<img src="https://799605156-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FdlNg8IbOdahCpFCyzxSN%2Fuploads%2Fgit-blob-00819d83cc1abb626582d1474667730dce4c784a%2Ffuel_cell_stack_parameters_mask.png?alt=media" alt=""></p></td></tr></tbody></table>

#### Signal variation

<table data-header-hidden><thead><tr><th width="250"></th><th></th></tr></thead><tbody><tr><td><strong>Fuel composition [x_H2(%)]</strong> — Hydrogen in fuel<br>off (default) | on</td><td>Percentage of hydrogen in the fuel. Default is cleared.</td></tr><tr><td><strong>Oxidant composition [y_O2(%)]</strong> — Oxygen in oxidant<br>off (default) | on</td><td>Percentage of oxygen in the oxidant. Default is cleared.</td></tr><tr><td><strong>Fuel flow rate [FuelFr(lpm)]</strong> — Fuel flow rate<br>off (default) | on</td><td>Fuel flow rate in liter per minutes. Default is cleared.</td></tr><tr><td><strong>Air flow rate [AirFr(lpm)]</strong> — Air flow rate<br>off (default) | on</td><td>Air flow rate in liter per minutes. Default is cleared.</td></tr><tr><td><strong>System Temperature [T(Kelvin)]</strong> — Temperature of operation<br>off (default) | on</td><td>Temperature of operation in Kelvin. Default is cleared.</td></tr><tr><td><strong>Fuel supply pressure [Pfuel(atm)]</strong> — Fuel supply pressure<br>off (default) | on</td><td>Fuel supply pressure in atm. Default is cleared.</td></tr><tr><td><strong>Air supply pressure [PAir(atm)]</strong> — Air supply pressure<br>off (default) | on</td><td>Air supply pressure in atm. Default is cleared.</td></tr></tbody></table>

{% hint style="info" %}
In R2024b the calculation of air flow rate has changed when there is no signal variation.
{% endhint %}

If, in the **Signal Variation** settings, you clear the **Fuel flow rate \[FuelFr(Ipm)]** and **Air flow rate \[AirFr(Ipm)]** parameters, the block now obtains the air flow rate directly from the value of the **Nominal Air flow rate (Ipm)** parameter and calculates the fuel flow rate by rearranging the equation for hydrogen utilization by making flow rate the subject, based on the nominal conditions.

#### Fuel Cell Dynamics

<table data-header-hidden><thead><tr><th width="249.77777099609375"></th><th></th></tr></thead><tbody><tr><td><strong>Specify Fuel Cell Dynamics?</strong> — Fuel Cell dynamics options<br><code>off</code> (default) | <code>on</code></td><td><p>Whether you want to specify the fuel cell dynamics.</p><p>Select the check box to enter the fuel cell response time in seconds. Default is cleared.</p></td></tr><tr><td><strong>Fuel Cell response time (sec)</strong> — Fuel Cell response time<br>1 (default)</td><td><p>Enter the response time of the cell (at 95% of the final value). Default is 1.</p><p>This parameter becomes available only when the <strong>Specify Fuel Cell Dynamics?</strong> check box is selected.</p></td></tr></tbody></table>

## Model Examples

[6 kW 45 Vdc Fuel Cell Stack](https://www.opal-rt.com/docs/smart-power-simulation-software-sps/blocks-functions-tools/renewables/fuel-cell-stack.md)

The Proton Exchange Membrane (PEM) Fuel Cell Stack model feeding an average value 100Vdc DC/DC converter.


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://www.opal-rt.com/docs/smart-power-simulation-software-sps/blocks-functions-tools/renewables/fuel-cell-stack.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
