Skip to content

cideMOD solves DFN physicochemical equations by Finite Element methods using FEniCS library. It enables doing physics-based battery simulations with a wide variety of use cases, from different drive cycles to studies of the SEI growth under storage conditions. Thermal and degradation models can be used to obtain more realistic predictions.

License

cidetec-energy-storage/cideMOD

Repository files navigation

cideMOD_logo

Documentation Status License Docker image

Twitter

CIDETEC's proprietary software cideMOD is based on the Doyle-Fuller-Newman model in which the physicochemical equations are solved by Finite Element methods using the FEniCSx library. It enables doing physics-based battery cell (herein after cell) simulations with a wide variety of use cases, from different drive cycles to studies of the SEI growth under storage conditions.

cideMOD is a pseudo X-dimensional (PXD) model that extends the original pseudo 2-dimensional (P2D) model, proposed by Newman and co-workers, from 1D to 2D and 3D cell geometries. Therefore, charge balance, mass balance and reaction kinetics, as well as energy balance, are spatially resolved for the entire cell geometry, considering the inhomogeneity of cell state properties. cideMOD has some additional models for solving the cell thermal behaviour, including mayor heat sources, and studying battery degradation mechanisms (e.g., SEI growth and loss of active material). It also supports several active materials in the electrodes, and, nonlinear and temperature dependent electrode and electrolyte transport properties.

It allows complete customization of the cell geometry including the tab position for optimal configuration, as well as highly customizable simulation conditions

Installation

Read the Installation Section in the documentation for more information and installation options.

The cideMOD model is based on the finite element platform FEniCS and the library multiphenics. From here we will assume that the user has a working environment with FEniCS and multiphenics.

To use cideMOD, first install it using pip:

$ git clone https://github.com/cidetec-energy-storage/cideMOD.git
$ cd cideMOD
$ pip install .

The P3D/P4D models make use of Gmsh meshes to create the battery mesh. Therefore, the python environment should be able to locate the Gmsh shared libraries. If your PYTHONPATH doesn't contains gmsh, you should add it:

$ export PYTHONPATH=$PYTHONPATH:<path_to_gmsh_libs>

or

$ export PYTHONPATH=$PYTHONPATH:$(find /usr/local/lib -name "gmsh-*-sdk")/lib

Additionally Gmsh needs from some libraries that you may not have installed:

$ sudo apt-get update
$ sudo apt-get install libglu1-mesa-dev libxcursor-dev libxinerama-dev

To test if the installation is complete, run a simple test (within the tests folder):

$ pytest -m "quicktest"

Documentation

The documentation can be viewed at ReadTheDocs.

You can also access the documentation on the docs folder building it (See the requirements.txt file for necessary packages):

$ cd docs/
$ make html

License

cideMOD is copyright (C) 2023 of CIDETEC Energy Storage and is distributed under the terms of the Affero GNU General Public License (GPL) version 3 or later.

Contact

For issues and bug reports visit:

https://github.com/cidetec-energy-storage/cideMOD

For other questions about cideMOD, you are welcome to contact us via email:

cidemod@cidetec.es

About

cideMOD solves DFN physicochemical equations by Finite Element methods using FEniCS library. It enables doing physics-based battery simulations with a wide variety of use cases, from different drive cycles to studies of the SEI growth under storage conditions. Thermal and degradation models can be used to obtain more realistic predictions.

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •  

Languages