Sign inSign up

ecsim/opem

By ecsim

•Updated over 5 years ago

OPEM (Open Source PEM Fuel Cell Simulation Tool)

Image
0

972

ecsim/opem repository overview


⁠Table of Contents

⁠Overview

Modeling and simulation of proton-exchange membrane fuel cells (PEMFC) may work as a powerful tool in the research & development of renewable energy sources. The Open-Source PEMFC Simulation Tool (OPEM) is a modeling tool for evaluating the performance of proton exchange membrane fuel cells. This package is a combination of models (static/dynamic) that predict the optimum operating parameters of PEMFC. OPEM contained generic models that will accept as input, not only values of the operating variables such as anode and cathode feed gas, pressure and compositions, cell temperature and current density, but also cell parameters including the active area and membrane thickness. In addition, some of the different models of PEMFC that have been proposed in the OPEM, just focus on one particular FC stack, and some others take into account a part or all auxiliaries such as reformers. OPEM is a platform for collaborative development of PEMFC models.

Fig1. OPEM Block Diagram

Open Hub
PyPI Counter
Github Stars
Branchmasterdevelop
CI
Code QualityCodeFactor

⁠Usage

⁠Executable
  • Open CMD (Windows) or Terminal (UNIX)
  • Run python -m opem or python3 -m opem (or run OPEM.exe)
  • Enter PEM cell parameters (or run standard test vectors)
    1. Amphlett Static Model

      InputDescriptionUnit
      TCell operation temperatureK
      PH2Partial pressureatm
      PO2Partial pressureatm
      i-startCell operating current start pointA
      i-stepCell operating current stepA
      i-stopCell operating current end pointA
      AActive areacm^2
      lMembrane thicknesscm
      lambdaAn adjustable parameter with a min value of 14 and max value of 23--
      R(*Optional)R-Electronicohm
      JMaxMaximum current densityA/(cm^2)
      NNumber of single cells--
      * For more information about this model visit here⁠
    2. Larminie-Dicks Static Model

      InputDescriptionUnit
      E0Fuel cell reversible no loss voltageV
      AThe slope of the Tafel lineV
      TCell operation temperatureK
      i-startCell operating current start pointA
      i-stepCell operating current stepA
      i-stopCell operating current end pointA
      i_nInternal currentA
      i_0Exchange current at which the overvoltage begins to move from zero A
      i_LLimiting currentA
      RMThe membrane and contact resistancesohm
      NNumber of single cells--
      * For more information about this model visit here⁠
    3. Chamberline-Kim Static Model

      InputDescriptionUnit
      E0Open circuit voltageV
      bTafel's parameter for the oxygen reductionV
      RResistanceohm.cm^2
      i-startCell operating current start pointA
      i-stepCell operating current stepA
      i-stopCell operating current end pointA
      AActive areacm^2
      mDiffusion's parametersV
      nDiffusion's parameters(A^-1)(cm^2)
      NNumber of single cells--
      * For more information about this model visit here⁠
    4. Padulles Dynamic Model I

      InputDescriptionUnit
      E0No load voltageV
      TFuel cell temperatureK
      KH2Hydrogen valve constantkmol.s^(-1).atm^(-1)
      KO2Oxygen valve constantkmol.s^(-1).atm^(-1)
      tH2Hydrogen time constants
      tO2Oxygen time constants
      BActivation voltage constantV
      CActivation constant parameterA^(-1)
      RintFuel cell internal resistanceohm
      rhoHydrogen-Oxygen flow ratio--
      qH2Molar flow of hydrogenkmol/s
      N0Number of cells--
      i-startCell operating current start pointA
      i-stepCell operating current stepA
      i-stopCell operating current end pointA
      * For more information about this model visit here⁠
    5. Padulles Dynamic Model II

      InputDescriptionUnit
      E0No load voltageV
      TFuel cell temperatureK
      KH2Hydrogen valve constantkmol.s^(-1).atm^(-1)
      KH2OWater valve constantkmol.s^(-1).atm^(-1)
      KO2Oxygen valve constantkmol.s^(-1).atm^(-1)
      tH2Hydrogen time constants
      tH2OWater time constants
      tO2Oxygen time constants
      BActivation voltage constantV
      CActivation constant parameterA^(-1)
      RintFuel cell internal resistanceohm
      rhoHydrogen-Oxygen flow ratio--
      qH2Molar flow of hydrogenkmol/s
      N0Number of cells--
      i-startCell operating current start pointA
      i-stepCell operating current stepA
      i-stopCell operating current end pointA
      * For more information about this model visit here⁠
    6. Padulles-Hauer Dynamic Model

      InputDescriptionUnit
      E0No load voltageV
      TFuel cell temperatureK
      KH2Hydrogen valve constantkmol.s^(-1).atm^(-1)
      KH2OWater valve constantkmol.s^(-1).atm^(-1)
      KO2Oxygen valve constantkmol.s^(-1).atm^(-1)
      tH2Hydrogen time constants
      tH2OWater time constants
      tO2Oxygen time constants
      t1Reformer time constants
      t2Reformer time constants
      BActivation voltage constantV
      CActivation constant parameterA^(-1)
      CVConversion factor--
      RintFuel cell internal resistanceohm
      rhoHydrogen-Oxygen flow ratio--
      qMethanolMolar flow of methanolkmol/s
      N0Number of cells--
      i-startCell operating current start pointA
      i-stepCell operating current stepA
      i-stopCell operating current end pointA
      * For more information about this model visit here⁠
    7. Padulles-Amphlett Dynamic Model

      InputDescriptionUnit
      E0No load voltageV
      TFuel cell temperatureK
      KH2Hydrogen valve constantkmol.s^(-1).atm^(-1)
      KH2OWater valve constantkmol.s^(-1).atm^(-1)
      KO2Oxygen valve constantkmol.s^(-1).atm^(-1)
      tH2Hydrogen time constants
      tH2OWater time constants
      tO2Oxygen time constants
      t1Reformer time constants
      t2Reformer time constants
      AActive areacm^2
      lMembrane thicknesscm
      lambdaAn adjustable parameter with a min value of 14 and max value of 23--
      R(*Optional)R-Electronicohm
      JMaxMaximum current densityA/(cm^2)
      CVConversion factor--
      rhoHydrogen-Oxygen flow ratio--
      qMethanolMolar flow of methanolkmol/s
      N0Number of cells--
      i-startCell operating current start pointA
      i-stepCell operating current stepA
      i-stopCell operating current end pointA
      * For more information about this model visit here⁠
    8. Chakraborty Dynamic Model

      InputDescriptionUnit
      E0No load voltageV
      TCell operation temperatureK
      KH2Hydrogen valve constantkmol.s^(-1).atm^(-1)
      KH2OWater valve constantkmol.s^(-1).atm^(-1)
      KO2Oxygen valve constantkmol.s^(-1).atm^(-1)
      rhoHydrogen-Oxygen flow ratio--
      RintFuel cell internal resistanceohm
      N0Number of cells--
      uFuel utilization ratio--
      i-startCell operating current start pointA
      i-stepCell operating current stepA
      i-stopCell operating current end pointA
      * For more information about this model visit here⁠
    • Find your reports in Model_Name folder
    ⁠Screen Record

    Screen Record

⁠Library
  1. Amphlett Static Model
    >>> from opem.Static.Amphlett import Static_Analysis
    >>> Test_Vector={"T": 343.15,"PH2": 1,"PO2": 1,"i-start": 0,"i-stop": 75,"i-step": 0.1,"A": 50.6,"l": 0.0178,"lambda": 23,"N": 1,"R": 0,"JMax": 1.5,"Name": "Amphlett_Test"}
    >>> data=Static_Analysis(InputMethod=Test_Vector,TestMode=True,PrintMode=False,ReportMode=False)
    
    KeyDescriptionType
    StatusSimulation statusBool

Tag summary

Content type

Image

Digest

Size

96.4 MB

Last updated

over 6 years ago

docker pull ecsim/opem