Li-ion Diffusion Modelling using FiPy
Envision
Piston
Abstract
Lithium-ion batteries are closed systems, making direct observation of their internal electrochemical processes impossible. This project develops a physics-based numerical model for lithium-ion diffusion inside electrode particles using FiPy, a Python-based finite volume library, and a custom-built finite difference PDE solver for Butler-Volmer kinetics. The spherical diffusion equation (Fick's Second Law) was solved on a 50-cell uniform grid using the Finite Volume Method (FVM), validated against the Crank analytical solution with relative L2 errors below 6×10⁻³. Building on this, a custom PDE solver was developed from scratch to couple solid-phase diffusion with Butler-Volmer electrode kinetics a nonlinear, concentration-dependent boundary condition that FiPy cannot natively handle efficiently.
Abstract
Lithium-ion batteries are closed systems, making direct observation of their internal electrochemical processes impossible. This project develops a physics-based numerical model for lithium-ion diffusion inside electrode particles using FiPy, a Python-based finite volume library, and a custom-built finite difference PDE solver for Butler-Volmer kinetics. The spherical diffusion equation (Fick's Second Law) was solved on a 50-cell uniform grid using the Finite Volume Method (FVM), validated against the Crank analytical solution with relative L2 errors below 6×10⁻³. Building on this, a custom PDE solver was developed from scratch to couple solid-phase diffusion with Butler-Volmer electrode kinetics a nonlinear, concentration-dependent boundary condition that FiPy cannot natively handle efficiently.
Report Information
Report Details
Created: May 17, 2026, 10:51 p.m.
Approved by: None
Approval date: None
Report Details
Created: May 17, 2026, 10:51 p.m.
Approved by: None
Approval date: None