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

Notifications You must be signed in to change notification settings

cidetec-energy-storage/cideMOD

Repository files navigation

cideMOD_logo

Documentation Status Reference 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

The cideMOD model is based on the finite element platform FEniCSx and the library multiphenicsx. The current version of cideMOD runs on version 0.7.0 of dolfinx and the prefered installation method is using the conda-forge package for FEniCSx (https://github.com/conda-forge/fenics-dolfinx-feedstock). Thus, a new conda environment can be setup to install the corresponding versions of dolfinx and multiphenicsx

$ conda create --name cidemod python=3.11
$ conda activate cidemod
$ conda install fenics-dolfinx=0.7.0 fenics-libdolfinx=0.7.0
$ git clone -b dolfinx-v0.7.0 --depth 1 --single-branch https://github.com/multiphenics/multiphenicsx.git
$ pip install ./multiphenicsx

To use cideMOD, first install it using pip:

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

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 libxft2 lib32ncurses6

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

$ pytest -m "quicktest"

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

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

Languages