Skip to main content
QUICK REVIEW

[Paper Review] A fast solver for the pseudo-two-dimensional model of lithium-ion batteries

Rachel Han, Colin B. Macdonald|arXiv (Cornell University)|Nov 17, 2021
Advanced Battery Technologies ResearchEngineering20 references7 citations
TL;DR

This paper presents a fast, accurate solver for the pseudo-two-dimensional (P2D) model of lithium-ion batteries using finite differences, backward Euler time integration, and Newton’s method in Python. By restructuring the linear algebra and leveraging automatic differentiation via JAX, the method reduces computational cost without sacrificing accuracy, enabling efficient simulation of complex electrochemical behavior.

ABSTRACT

The pseudo-two-dimensional (P2D) model is a complex mathematical model that can capture the electrochemical processes in Li-ion batteries. However, the model also brings a heavy computational burden. Many simplifications to the model have been introduced in the literature to reduce the complexity. We present a method for fast computation of the P2D model which can be used when simplifications are not accurate enough. By rearranging the calculations, we reduce the complexity of the linear algebra problem. We also employ automatic differentiation, using an open source package JAX for robustness, while also allowing easy implementation of changes to coefficient expressions. The method alleviates the computational bottleneck in P2D models without compromising accuracy.

Motivation & Objective

  • Address the high computational cost of the full pseudo-two-dimensional (P2D) electrochemical model for lithium-ion batteries.
  • Overcome limitations of simplified models like the single particle model, which lack sufficient accuracy for certain applications.
  • Develop a numerically efficient solver that maintains full P2D model fidelity while reducing computational burden.
  • Enable practical deployment of the P2D model in battery management systems (BMS) for real-time control and state estimation.
  • Facilitate easy modification of model coefficients through automatic differentiation, enhancing model flexibility and robustness.

Proposed method

  • Implement the P2D model using finite difference methods (FDM) for spatial discretization on a 1D domain in the x-direction (electrode thickness) and radial r-direction (particle diffusion).
  • Apply backward Euler time integration for unconditional stability in time-stepping of the differential-algebraic system.
  • Use Newton’s method to solve the resulting nonlinear algebraic systems at each time step, ensuring fast convergence.
  • Employ JAX for automatic differentiation to compute Jacobians and sensitivities accurately and efficiently, enabling rapid prototyping and model updates.
  • Reorganize the computational structure to reduce the complexity of the linear algebra solve, improving performance without approximation.
  • Integrate thermal effects into the P2D model, including heat generation from ohmic, reaction, and reversible processes, with temperature-dependent material properties.

Experimental results

Research questions

  • RQ1Can a fast and accurate solver be developed for the full P2D model that avoids the inaccuracies of simplified models like the single particle model?
  • RQ2How can the computational burden of solving the P2D model’s differential-algebraic equations be reduced without sacrificing physical fidelity?
  • RQ3To what extent can automatic differentiation via JAX improve the robustness and maintainability of P2D model implementations?
  • RQ4Can restructured linear algebra operations significantly reduce the time required to solve the P2D system while preserving accuracy?
  • RQ5How well does the proposed solver perform in simulating key battery behaviors such as concentration profiles, voltage response, and thermal dynamics?

Key findings

  • The proposed solver achieves significant speedups over standard black-box DAE solvers (e.g., DASSL, SUNDIALS) by restructuring the linear algebra problem and optimizing the Newton solve.
  • The use of JAX for automatic differentiation enables accurate and efficient computation of Jacobians, reducing implementation errors and simplifying model updates.
  • The method maintains high accuracy across all state variables, including electrolyte concentration, solid-phase concentration, potential, and temperature, even under varying current loads.
  • The solver successfully handles temperature-dependent material properties, including diffusivity, conductivity, and reaction kinetics, with Arrhenius-type temperature dependencies.
  • The computational framework supports easy modification of model expressions (e.g., diffusivity, reaction rate) due to JAX’s functional programming interface, enhancing model extensibility.
  • The method enables stable and accurate simulation of the full P2D model with thermal effects, including heat generation from ohmic, reaction, and reversible processes, across all electrode and separator regions.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.