Chapter 33: Electrolysis Modeling of Proton Exchange Membrane Electrolyzers

33.1. Introduction

This tutorial demonstrates the setup and solution of a proton exchange membrane (PEM) electrolyzer using the electrolysis model in Ansys Fluent.

The 3D PEM electrolyzer geometry consists of a membrane electrode assembly (MEA), current collectors, and bipolar plates with flow channels.

This tutorial illustrates how to do the following:

  • Set up a PEM electrolyzer simulation using the electrolysis model in Ansys Fluent

  • Define solid materials for the anode, cathode, and electrolyte

  • Initiate and solve the electrolysis simulation using the pressure-based solver

  • Obtain the electrolyzer simulation results and perform postprocessing activities

To learn more about electrolysis modeling, see Electrolysis and H2 Pump Model in the Fluent Theory Guide and Setting the Electrolysis and H2 Pump Model in the Fluent User's Guide.

33.2. Prerequisites

This tutorial is written with the assumption that you have completed the introductory tutorials found in this manual and that you are familiar with the Ansys Fluent outline view and ribbon structure. Some steps in the setup and solution procedure will not be shown explicitly.

33.3. Problem Description

The 3D electrolyzer model described in [1] is considered in this tutorial. The geometry of the PEM electrolyzer with bipolar plates is schematically shown in Figure 33.1: Schematic of the Electrolyzer Problem.

Figure 33.1: Schematic of the Electrolyzer Problem

Schematic of the Electrolyzer Problem

Liquid water is supplied through the anode flow channel at 333.15 K and a mass flow rate of 0.000404 kg/s. It flows through the porous layers to the catalyst layers where electrochemistry reactions occur. During the electrochemistry reactions, gaseous hydrogen is produced in the cathode catalyst layer, and oxygen is produced in the anode catalyst layer. Then gaseous hydrogen and oxygen are transported out of the catalyst layer through the flow channels to the anode and cathode outlets where hydrogen and oxygen, along with the remaining liquid water, are discharged from the electrolyzer. See Figure 33.2: The Electrolyzer Cross-Section.

Figure 33.2: The Electrolyzer Cross-Section

The Electrolyzer Cross-Section

33.3.1. Background

In this tutorial, the electrolysis model is used to simulate a 3D PEM electrolyzer. For the PEM electrolysis, the electrochemistry reactions are given by:

The electrochemistry reaction rates in the catalyst layers are calculated using the Butler-Volmer formulation, which determines the production rates of hydrogen and oxygen. Due to the presence of liquid water and gaseous hydrogen and oxygen, the multiphase model is used in the modeling. Two potential equations are solved to track the electrical currents and ionic currents, respectively.

33.4. Setup and Solution

The following sections describe the setup and solution steps for this tutorial:

33.4.1. Preparation

  1. Download the electrolysis.zip file here .

  2. Unzip electrolysis.zip to your working directory.

    The mesh file electrolysis.msh.h5 can be found in the folder.

  3. Use the Fluent Launcher to start Ansys Fluent.

  4. Select Solution in the top-left selection list to start Fluent in Solution Mode.

  5. Select 3D under Dimension.

  6. Enable Double Precision under Solver Options.

  7. Set Solver Processes to 4 under Parallel (Local Machine).

33.4.2. Mesh

  1. Read the mesh file electrolysis.msh.h5.

     File Read Mesh...

    When prompted, browse to the location of the electrolysis.msh.h5 and select the file.

    Once you read in the mesh, it is displayed in the embedded graphics windows.

  2. Check the mesh.

     Domain Mesh Perform Mesh Check

33.4.3. Model Setup

33.4.3.1. Setting Up Physics

Set the solver settings.

 Physics Solver General...

  1. In the General task page, retain the default setting of Pressure-Based under Type (Solver group box).

  2. Retain the default selection of Steady in the Time group box.

33.4.3.2. Models

  1. Enable the potential/electrochemistry model.

     Physics Models More Potential/Electrochemistry

    1. In the Potential/Electrochemistry dialog box, enable Potential Equation.

    2. In the Electrochemistry group box, enable Electrolysis and H2 Pump Model.

      The dialog box expands to display the electrolysis model’s settings.

      Figure 33.3: Potential/Electrochemistry Dialog Box - Model Tab

      Potential/Electrochemistry Dialog Box - Model Tab

  2. In the Model tab (see Figure 33.3: Potential/Electrochemistry Dialog Box - Model Tab), configure the following settings:

    Group BoxControl or ListValue or Selection

    MEA Layer Modeling Method

    Resolved

    (Selected)

    Device Type

    PEM Electrolysis

    (Selected)

    Options

    Electrochemistry Sources

    (Selected)

    Butler-Volmer Rate

    (Selected)

    Osmotic Drag

    (Selected)

    Capillary Pressure

    (Selected)

    Electrical System Setup

    Specify Total Voltage

    (Selected)

    Total Voltage

    1.730202 V

  3. In the Parameters tab (see Figure 33.4: Potential/Electrochemistry Dialog Box - Parameters Tab), configure the following settings:

    Group Box

    Control or List

    Value or Selection

    Anode

    J_ref

    1.36e-9 A/m2

    Ea

    181411 J/mol

    C_ref

    1 kmol/m3 (Default)

    Con. Exponent

    0

    Exch. Coeff. a

    2 (Default)

    Exch. Coeff. c

    2 (Default)

    Cathode

    J_ref

    200 A/m2

    Ea

    24359 J/mol

    C_ref

    1 kmol/m3 (Default)

    Con. Exponent

    0 (Default)

    Exch. Coeff. a

    1

    Exch. Coeff. c

    1

    Global

    Open Voltage

    1.1999 V

    Mod. Coef. OSM_Drag

    1 (Default)

    Figure 33.4: Potential/Electrochemistry Dialog Box - Parameters Tab

    Potential/Electrochemistry Dialog Box - Parameters Tab


    Note:  The input values for the electrolyzer considered in this tutorial are taken from [1]. These inputs may not be appropriate for your electrolysis device. You must provide inputs suitable for your case.


  4. In the Anode tab, specify settings for the anode zones.

    1. In the Anode Zone Type group box, select Current Collector, and then in the Zone(s) multiple-selection list, select anode_cc and retain the default selection of collector-default for Solid Material.

      Figure 33.5: Potential/Electrochemistry Dialog Box - Anode Collector

      Potential/Electrochemistry Dialog Box - Anode Collector

    2. In the Anode Zone Type group box, select Flow Channel, and then in the Zone(s) multiple-selection list, select anode_fc.

      Figure 33.6: Potential/Electrochemistry Dialog Box - Anode Flow Channel

      Potential/Electrochemistry Dialog Box - Anode Flow Channel

    3. In the Anode Zone Type group box, select Porous Layer and then and then configure the following settings (see Figure 33.7: Potential/Electrochemistry Dialog Box - Anode Porous Layer).

      1. In the Zone(s) multiple-selection list, select anode_pl.

      2. In the Cell Zone Conditions group box, modify the following settings:

        • Set Porosity to 0.75.

        • Set Absolute Permeability to 4.9e-11 m2.

        • Set Contact Angle to 70 degrees.

        • Retain the remaining default settings.

      Figure 33.7: Potential/Electrochemistry Dialog Box - Anode Porous Layer

      Potential/Electrochemistry Dialog Box - Anode Porous Layer

    4. In the Anode Zone Type group box, select Catalyst Layer and then configure the following settings (see Figure 33.8: Potential/Electrochemistry Dialog Box - Anode Catalyst Layer.

      1. In the Zone(s) multiple-selection list, select anode_cl.

      2. In the Cell Zone Conditions group box, modify the following settings:

        • Set Porosity to 0.2.

        • Set Absolute Permeability to 4.9e-12 m2.

        • Set Contact Angle to 80 degrees.

        • Retain the remaining default settings.

      Figure 33.8: Potential/Electrochemistry Dialog Box - Anode Catalyst Layer

      Potential/Electrochemistry Dialog Box - Anode Catalyst Layer

  5. In the Electrolyte tab, configure the following settings for the electrolyte/membrane.

    Group or List

    Control or Zone

    Value or Selection

    Zone(s)

    mem

    (Selected)

    Cell Zone Conditions

    Solid Material

    electrolyte-default

    Porosity

    0.6 (default)

    Absolute Permeability

    1e-12 m2 (default)

    Figure 33.9: Potential/Electrochemistry Dialog Box - Electrolyte Tab

    Potential/Electrochemistry Dialog Box - Electrolyte Tab

  6. In the Cathode tab, specify settings for the cathode zones (in a manner similar to the anode zones).

    1. For the cathode current collector, configure the following settings:

      Group or List

      Control or Zone

      Value or Selection

      Cathode Zone Type

      Current Collector

      (Selected)

      Zone(s)

      cathode_cc

      (Selected)

      Cell Zone Conditions

      Solid Material

      collector-default
    2. For the cathode flow channel, configure the following settings:

      Group or List

      Control or Zone

      Value or Selection

      Cathode Zone Type

      Flow Channel

      (Selected)

      Zone(s)

      cathode_fc

      (Selected)

    3. For the cathode porous layer, configure the following settings:

      Group or List

      Control or Zone

      Value or Selection

      Cathode Zone Type

      Porous Layer

      (Selected)

      Zone(s)

      cathode_pl

      (Selected)

      Cell Zone Conditions

      Solid Material

      porous-default

      Porosity

      0.75

      Absolute Permeability

      1e-11 m2

      Contact Angle

      60 degrees (Default)
    4. For the cathode catalyst layer, configure the following settings:

      Group or List

      Control or Zone

      Value or Selection

      Cathode Zone Type

      Catalyst Layer

      (Selected)

      Zone(s)

      cathode_cl

      (Selected)

      Cell Zone Conditions

      Solid Material

      catalyst-default

      Porosity

      0.2

      Absolute Permeability

      2e-12 m2

      Contact Angle

      60 degrees (Default)
  7. In the Electrical Tabs tab, specify external anode and cathode tabs.

    Figure 33.10: Potential/Electrochemistry Dialog Box - Electrolyte Tab

    Potential/Electrochemistry Dialog Box - Electrolyte Tab

    1. In the Anode multiple-selection list, select anode_tab, anode_tab.1, anode_tab.1.1.

    2. In the Cathode multiple-selection list, select cathode_tab, cathode_tab.1, cathode_tab.1.1.

  8. Click OK to close the Potential/Electrochemistry dialog box.

    In the background, Fluent automatically makes the following changes:

    • Adjusts the solver settings. The information about the changes is printed in the console window.

    • Sets the species model. A mixture material called pem-mixture (consisting of nitrogen, oxgen, hydrogen, and water-vapor) is automatically created.

    • Sets the mixture multiphase model. The pem-mixture mixture material is assigned to the primary phase. water-liquid is assigned to the secondary phase. The primary phase (phase-1) is selected for a species mixture material in the Species Model dialog box.

    • Enables the energy equation.

33.4.3.3. Materials

Adjust electrical conductivity and electrolyte conductivity for the solid materials (catalyst-default, porous-default, catalyst-default, and electrolyte-default).

  1. Modify properties of the collector material.

     Setup Materials Solid collector-default  Edit...

    1. In the Create/Edit Materials dialog box, make sure that solid is selected for Material Type, and collector-default is selected for Fluent Solid Materials.

    2. In the Properties group box, set Electrical Conductivity to 20000 and Electrolyte Conductivity to 1e-16.

    3. Click the Change/Create button.

  2. In a similar manner, modify properties of the porous material as follows.


    Important:  You must click Change/Create to save the settings for each material before selecting the next material. Otherwise, your edits will be lost.


    Fluent Solid Materials

    Property

    Value

    porous-default

    Electrical Conductivity

    20000

    Electrolyte Conductivity

    1e-16

    catalyst-default

    Electrical Conductivity

    5000

    Electrolyte Conductivity

    4.5

    electrolyte-default

    Electrical Conductivity

    1e-16

    Electrolyte Conductivity

    11

  3. Close the Create/Edit Material dialog box.

33.4.3.4. Boundary Conditions

Set the boundary conditions at a mass-flow inlet for the mixture phase and phase-2.

 Setup Boundary Conditions Inlet anode_in  Edit...

  1. In the Outline View, right-click anode_in (under the Setup/Boundary Conditions/Inlet tree branch) and select Edit... from the menu that opens.

  2. In the Mass Flow Inlet dialog box that opens, define the boundary conditions for the mixture phase.

    1. Make sure that mixture is selected from the Phase drop-down list.

    2. In Thermal tab, enter 333.15 K for Total Temperature.

    3. Click Apply.

  3. Define the boundary conditions for phase-2.

    1. From the Phase drop-down list, select phase-2.

    2. In Momentum tab, retain the default selection of Mass Flow Rate for the Mass Flow Specification Method.

    3. Enter 0.000404 kg/s for Mass Flow Rate.

    4. Click Apply.

  4. Close the Mass Flow Inlet dialog box.


    Note:  Since phase 1 is not present at the inlet, its mass flow rate is 0 kg/s, which is a default value.


33.4.3.5. Solution

  1. In the Solution Methods task page, retain the default settings for the Pressure-Velocity Coupling and Spatial Discretization.

     Solution Solution Methods...

  2. In the Solution Controls task page, adjust the solution settings.

     Solution Controls Controls...

    1. Enter 1.0 for Volume Fraction in the Under-Relaxation Factors group box.

      In electrolysis applications, the velocities (or convection) are relatively small, and diffusion dominates the flow inside porous zones. Therefore, setting the volume fraction under-relaxation factor to 1.0 is recommended for a faster convergence.

    2. Retain the default values for the remaining under-relaxation factors.

  3. Enable the plotting of residuals during the calculation.

     Solution Reports Residuals...

    1. Ensure that Plot is enabled in the Options group box.

    2. Click OK to close the Residual Monitors dialog box.

33.4.3.6. Obtaining Solution

  1. Initialize the field variables using the Standard Initialization method.

     Solution Initialization

    1. Retain the selection of Standard from the Initialization Methods group box.

    2. Modify the Initial Values as follows:

      • Set Temperature to 333.15 K.

      • Set phase-2 Volume Fraction to 1.

        Scroll down the Initial Values list to find phase-2 Volume Fraction.

    3. Click Initialize.

    4. Save the case file (electrolysis.cas.h5).

       File Write Case...

  2. Run the simulation.

     Solution Run Calculation Run Calculation...

    1. Enter 300 for Number of Iterations.

    2. Click Calculate.

      As the solution progresses, the residuals history will be plotted in the Scaled Residuals tab in the graphics window (see Figure 32.5: Residual History of the Simulation.

      Figure 33.11: Residual History of the Simulation

      Residual History of the Simulation

    3. Save the case and data files (electrolysis.cas.h5 and electrolysis.dat.h5).

       File Write Case & Data...

33.4.4. Postprocessing

  1. Compute the volume integral of transfer current at the anode and cathode catalyst layers to verify that they have the same values (which indicates the total current at the anode and cathode sides are the same).

     Results Reports Volume Integrals...

    1. Select Volume Integral as the Report Type.

    2. From the Field Variable drop-down lists, select Potential... and Transfer Current.

    3. In the Cell Zones button next to the Surfaces filter and from the drop-down list, select Surface Type (under Group By).

    4. In the Cell Zones multiple selection list, select anode_cl and cathode_cl.

    5. Click Compute.

      Ansys Fluent reports in the Total Volume Integral field and in the console that the total volume integral for transfer current at the anode and cathode catalyst layers is approximately 3.12 A. The results printed in the console show that the total volume integrals for the anode_cl and cathode_cl cell zones are the same, which indicates that the total current is balanced on the anode and cathode sides.

    6. Close the Volume Integrals dialog box

  2. Create iso-surfaces through the electrolyzer geometry for postprocessing purposes.

     Results Surface Create Iso-Surface...

    1. In the Iso-Surface dialog box, enter z-mid for Name.

    2. From the Surface of Constant drop-down lists, elect Mesh... and Z-Coordinate.

    3. Click Compute.

      The Min and Max fields display the Z extents of the domain.

    4. Enter 0.025 m for Iso-Values.

    5. Click Create.

    6. Enter x-mid for Name.

    7. From the Surface of Constant drop-down lists, elect Mesh... and X-Coordinate.

    8. Click Compute.

      The Min and Max fields display the X extents of the domain.

    9. Enter 0.0015 m for Iso-Values.

    10. Click Create and close the Iso-Surface dialog box..

  3. Display contours of potential on the z-mid cross-sectional surface.

     Results Graphics Contours New...

    1. In the Contours dialog box, enter potential for Contour Name.

    2. Ensure that Filled is enabled in the Options group box.

    3. Retain the selection of Smooth in the Coloring group box.

    4. From the Contours of drop-down list, select Potential... and Electrical Potential.

    5. In the Phase drop-down list, retain the default selection of mixture.

    6. From the Surfaces selection list, select z-mid.

    7. Click Save/Display and close the Contours dialog box.

      Figure 33.12: Electric Potential Distribution

      Electric Potential Distribution

      Figure 33.12: Electric Potential Distribution shows that electric potential on the cathode side is lower than that on the cathode side. The major electric potential changes occur inside the catalyst layers due to electrochemistry reactions in catalyst layers.

  4. In a similar manner, display the contour of volume fraction of phase-1(pem-mixture) on the x-mid and z-mid iso-surfaces.

     Results Graphics Contours New...

    1. Enter volume-fraction for Contour Name.

    2. Ensure that Filled is enabled in the Options group box.

    3. Retain the selection of Smooth in the Coloring group box.

    4. From the Contours of drop-down list, select Phases... and Volume Fraction.

    5. From the Phase drop-down list, select phase-1.

    6. From the Surfaces selection list, select x-mid and z-mid.

    7. Click Save/Display and close the Contours dialog box.

    Figure 33.13: Total Heat Generation Rate

    Total Heat Generation Rate

    Figure 33.13: Total Heat Generation Rate shows that the volume fraction of phase-1 on the cathode side is 0.997 due to the production of gaseous H2. On the anode side, gaseous O2 is produced and is mixed with the remaining liquid water that has not yet reacted.

  5. Save the case file (electrolysis.cas.h5).

     File Write Case...

33.5. Summary

In this tutorial, you learned how to model PEM electrolysis in a 3D PEM electrolyzer using the electrolysis model in Ansys Fluent. You learned how to define solid materials for the anode, cathode, and electrolyte and set up boundary conditions for the mixture and phases. The steps to perform various forms of postprocessing were also described.

Bibliography

[1] H. Ito, T. Maeda, A. Nakano, A. Kato, and T. Yoshida. "Influence of pore structural properties of current collectors on the performance of proton exchange membrane electrolyzer". Electrochimica Acta. 100. 242–248. 2013.