Main Content

Fuel Cell

Fuel cell electrical system

  • Library:
  • Simscape / Electrical / Sources

Description

The Fuel Cell block models a fuel cell that converts the chemical energy of hydrogen into electrical energy.

This chemical reaction defines the electrical conversion:

H2+12O2H2O+heat

with these catalytic sub-reactions:

H22H++2e12O2+2eO2

A fuel cell stack comprises several series-connected fuel cells. This figure shows the equivalent circuit of a single fuel cell

where:

  • Vcell is the cell voltage.

  • Ri is the Internal resistance.

  • Rd is the Sum of activation and concentration resistances.

  • Cdl is the parallel RC capacitance that accounts for time dynamics in the cell.

Equations

You can use the Model fidelity parameter to set the Fuel Cell block to two different levels of fidelity:

  • Simplified - nominal conditions — The block calculates the Nernst voltage at the nominal condition of temperature and pressure.

  • Detailed with physical inputs — The block calculates the Nernst voltage by considering the pressures and flow rates of fuel and air.

Simplified Electrical Model

When Model fidelity is set to Simplified - nominal conditions, the Fuel Cell block calculates the Nernst voltage, E, at the nominal condition of temperature and pressure, as defined by these equations:

E=EocNAln(iFCi0)vFC=NunitERiiFCvd1Rd(τdvddt+vd)=iFC

where:

  • Eoc is the Open-circuit voltage.

  • N is the Number of cells per module.

  • Nunit is the Module units (Series).

  • A is the Tafel slope, in volts.

  • i0 is the Nominal exchange current.

  • τ=CdlRd.

Detailed Electrical Model

When Model fidelity is set to Detailed with physical inputs, the Fuel Cell block calculates the Nernst voltage, E, by considering the pressures and flow rates of fuel and air.

These equations determine the rates of utilization of hydrogen, UH2, and oxygen, UO2

UH2=60000NiFCVepfuelqfuelxH2UO2=60000NiFCVe2pairqairxO2

where:

  • Ve is the thermal voltage at room temperature.

  • pfuel is the supply pressure of the fuel, in bar.

  • qfuel is the fuel flow rate.

  • xH2 is the concentration of hydrogen in the fuel.

  • pair is the supply pressure of air, in bar.

  • qair is the air flow rate.

  • xO2 is the concentration of oxygen in the air.

These equations define the partial pressures:

pH2=pfuelxH2UH2pO2=pairxO2UO2pH2O=pairxH2O2UO2

where xH2O is the concentration of vapor in air.

Then, the block computes the Nernst voltage as

where:

  • Kz=Eoc_admKcN1.229(Tnom298)44.43z0F+RTnomz0Fln(pnH2pnO212).

  • ETafel=NATln(iFCi0) is the electrokinetic term for the activation.

  • Econc=VeT298ln(ilimilimiFC) is the electrokinetic term for the concentration.

  • Eoc_adm=max(Eoc,N(1.229+RTnom2Fln(pnH2pnO212))).

  • Kc is the voltage constant at nominal condition of operation.

  • Tnom is the value of the Nominal temperature parameter.

  • z is the number of moving electrons per second.

  • z0 is the number of moving electrons per second at the value of the Nominal exchange current parameter.

  • F is the Faraday constant.

  • R is the universal gas constant.

  • pnH2 is the nominal hydrogen pressure, in bar.

  • pnO2 is the nominal oxygen pressure, in bar.

  • AT=ATln(10)298 is the Tafel slope as a function of the temperature.

  • ilim is the value of the Collapse current parameter.

  • The voltage 1.229 represents the standard cell potential for the Nernst equation.

The block computes the power dissipated, or the heat released in the fuel cell, by using this equation

Pdissipated=Ze_agg(TΔS)+RiiFC+vd21Rd

where:

  • Ze_agg=(NunitERiiFCvd)iFC2ΔG is the total electron circulation rate, in mol/s.

  • ΔS is the entropy fuel cell reaction, in kJ/(mol*K).

  • ΔG is the free Gibbs fuel cell reaction, in kJ/mol.

Variables

Use the Variables section of the block interface to set the priority and initial target values for the block variables prior to simulation. For more information, see Set Priority and Initial Target for Block Variables.

Limitations

The Fuel Cell block does not allow electrolysis.

Ports

Input

expand all

Physical signal port associated with the supply pressure of the fuel, in bar, specified as a physical signal.

Dependencies

To enable this port, set Model fidelity to Detailed with physical inputs.

Physical signal port associated with the supply pressure of air, in bar, specified as a physical signal.

Dependencies

To enable this port, set Model fidelity to Detailed with physical inputs.

Physical signal port associated with the fuel flow rate, specified as a physical signal.

Dependencies

To enable this port, set Model fidelity to Detailed with physical inputs.

Physical signal port associated with the air flow rate, specified as a physical signal.

Dependencies

To enable this port, set Model fidelity to Detailed with physical inputs.

Conserving

expand all

Electrical conserving port associated with the fuel cell positive terminal.

Electrical conserving port associated with the fuel cell negative terminal.

Thermal conserving port.

Dependencies

To enable this port, set Model fidelity to Detailed with physical inputs.

Parameters

expand all

Main

Level of fidelity of the fuel cell model.

Open-circuit voltage.

Amount of overpotential required to increase the reaction rate by a factor ten.

Internal resistance.

Exchange current at the nominal temperature.

Amount of temporary reduction of drain current immediately after the application of high voltage.

Dependencies

To enable this parameter, set Model fidelity to Detailed with physical inputs.

Number of cells per module.

Module units, in series.

Supply

To enable these parameters, in the Main tab, set Model fidelity to Detailed with physical inputs.

Hydrogen pressure at nominal temperature.

Dependencies

To enable this parameter, set Model fidelity to Detailed with physical inputs.

Oxygen pressure at nominal temperature.

Dependencies

To enable this parameter, set Model fidelity to Detailed with physical inputs.

Percentage concentration of hydrogen in fuel.

Dependencies

To enable this parameter, set Model fidelity to Detailed with physical inputs.

Percentage concentration of oxygen in fuel.

Dependencies

To enable this parameter, set Model fidelity to Detailed with physical inputs.

Percentage concentration of vapor in air.

Dependencies

To enable this parameter, set Model fidelity to Detailed with physical inputs.

Dynamics

Whether to model the activation delay of the fuel cell.

Sum of the activation resistance and concentration resistance.

Dependencies

To enable this parameter, set Model activation delay to Yes.

Time constant.

Dependencies

To enable this parameter, set Model activation delay to Yes.

Thermal

To enable these parameters, in the Main tab, set Model fidelity to Detailed with physical inputs.

Temperature at which the nominal parameters are measured.

Dependencies

To enable this parameter, set Model fidelity to Detailed with physical inputs.

Thermal mass associated with the thermal port, H. This value represents the energy required to raise the temperature of the thermal port by one degree.

Dependencies

To enable this parameter, set Model fidelity to Detailed with physical inputs.

References

[1] Do, T.C., et al. “Energy Management Strategy of a PEM Fuel Cell Excavator with a Supercapacitor/Battery Hybrid Power Source”. Energies 12, no. 22, (November 2019). DOI.org (Crossref), doi:10.3390/en13010136.

[2] Motapon, Souleman N., O. Tremblay and L. Dessaint, “A generic fuel cell model for the simulation of fuel cell vehicles.” 2009 IEEE Vehicle Power and Propulsion Conference, Dearborn, MI, 2009, pp. 1722-1729, doi: 10.1109/VPPC.2009.5289692

[3] Hirschenhofer, J. H.,, D.B. Stauffer, R.R. Engleman, and M.G. Klett. Fuel Cell Handbook (4th Ed). U.S. Department of Energy Office of Fossil Energy, 1988.

[4] Larminie, James, and Andrew Dicks. Fuel Cell Systems Explained. West Sussex, England: John Wiley & Sons, Ltd,., 2003. https://doi.org/10.1002/9781118878330.

Extended Capabilities

C/C++ Code Generation
Generate C and C++ code using Simulink® Coder™.

See Also

Introduced in R2021a