OpenFCST: The open-source Fuel Cell Simulation Toolbox
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
OpenFCST Class Documentation

This is the main page of the OpenFCST (open source Fuel Cell Simulation Toolbox) class documentation.

What is OpenFCST?

The Open Fuel Cell Simulation Toolbox (OpenFCST) is an open-source mathematical modelling package for polymer electrolyte fuel cells. FCST builds on top of the open-source finite element libraries deal.II, therefore many of its requirements in terms of operating systems and such are the same as for deal.II. OpenFCST is distributed under the MIT License. OpenFCST has been developed as a modular toolbox from which you can develop your own applications. It contains a database of physical phenomena equations, fuel cell layers and materials, and kinetics mathematical models. In addition, it already contains several applications that allow you to simulate different fuel cell components. For example, you can simulate a cathode electrode (using either a macrohomogeneous or an ionomer-filled agglomerate model), an anode electrode or a complete membrane electrode assembly. The applications already provided in FCST and they have been validated with respect to experimental data in the literature as well as numerical results from another model implemented in a commercial package.

OpenFCST is being developed at the Energy Systems Design Laboratory at the University of Alberta in collaboration with the Automotive Fuel Cell Cooperation Corp. that, together with the Natural Science and Engineering Research Council of Canada has provided the majority of the funding required to developer this code. The goal of OpenFCST is that research groups in academia and in industry use the current toolbox to better understand fuel cells and to develop new physics and material databases that can then be integrated in the current library.

This code can also be used for fuel cell optimization using analytical sensitivities. For examples of problems solved using this code and a description of the numerical method used see:

Here is a snapshot of the oxygen mole fraction in the cathode obtained using one of my applications (AppCathodeAgglomerate): The figure shows Contour lines at the catalyst layer for the base electrode design at $dV=0.5V$ for (a) oxygen molar fraction [-], (b) potential in the solid phase [V], (c) potential in the electrolyte [V], (d) volumetric current density [ $A/cm^3$] and (e) final adaptive grid in the catalyst layer. (Note: output generated using Tecplot)

application.jpg
Authors
See authors site

Getting OpenFCST

OpenFCST can be either downloaded from the OpenFCST website, i.e., http://www.openfcst.org or copied from the developer GIT repository. If you are a user, the easiest way to get the code is via the website. Go to Downloads and download a .tar file with the source code. You are then ready to install.

If you are using Git please follow the step in the BitBucket site for checking out a copy.

Installing OpenFCST

Requirements:

OpenFCST is developed on a Linux operating system using the GNU GCC compiler. It uses our own CMake scripts and the contributing libraries CMake scripts, such as the deal.II (www.dealii.org) script, to configure and compile the library. It supports at least the following platform:

  1. OpenSUSE 12.3 and 13.1
  2. Ubuntu 14.04

The following software needs to also be installed on your computer in order for FCST to compile (make sure to have the development versions as well):

  1. CMake
  2. GNU Make and C++11 support
  3. GCC version 4.7 or later (4.8.1 Recommended)
  4. BLAS and LAPACK libraries
  5. OpenMPI compiler
  6. GNU gfortran compiler
  7. Bison
  8. qt4-designer and libqt4
  9. For generating the documentation: DOxygen and Sphinx
  10. Boost; the specific packages are iostreams, serialization, system, thread, filesystem, regex, signals, program_options
  11. FLEX (For Dakota)
  12. Python Packages: SciPy, NumPy, ipython, Sphinx, evtk, vtk, mayavi
  13. libconfig-devel and libconfig++-devel

OpenFCST comes with all required libraries except:

  1. The optimization library DAKOTA from Sandia National Labs (version 5.4_r2206)
  2. The parallel adaptive mesh refinement library p4est (version 3.4.2)
  3. The partition mesh for parallel computing library Metis (version 5.1)
  4. The parallel linear algebra solver library PETSc (version 3.4.4)

You can either download them yourself and install them yourself, place tar files in the appropriate folder (specified below) following OpenFCST naming convention (specified below) or allow OpenFCST to download them for you if you have an internet connection.

Configuring and installing OpenFCST:

To help with configuring OpenFCST with CMake we have provided a configure script, i.e., openFCST_install. For a typical installation, go to the openfcst/ folder, and enter the following:

$./openFCST_install --cores=<number of cores> --install-dir=path_for_installation_directory

where the variable –cores allows you to compile the program using multiple CPUs and –install-dir allows you to specify the installation directory where openFCST will be installed. By default, openFCST will create a Build and Install folder in the same directory as the src folder; i.e. Inside the openfcst/ folder, two new folders will appear

If you are using any of your own pre-installed packages please consult the src/README for more information on any necessary changes that need to be made as is the case for Metis deal.ii and Dakota. For more options and information about the installation script type:

$./openFCST_install --help

Getting started

See user guide. To launch a sample cathode simulation, go to the install folder Install source the environment script. Then go to examples/cathode/analysis and execute the 2D fcst binary::

cd YourInstallDir
source ./fcst_env.sh
cd example/cathode/analysis
fcst2D main_app_cathode_analysis.prm

This will run a cathode simulation with the simulation data parameters specified in data_app_cathode_analysis.prm.

License

Please see the file src/LICENSE or doc/LICENSE for details

Further information

Visit the OpenFCST website: http://www.openfcst.org/