Methods—PETLION: Open-Source Software for Millisecond-Scale Porous Electrode Theory-Based Lithium-Ion Battery Simulations

This article presents PETLION, which is an open-source, high-performance computing implementation of the porous electrode theory (PET) model in Julia. A typical runtime for a dynamic simulation of full charge or discharge is 3 ms on a laptop while allocating about 1 MB of total memory, and the software is seen to be two orders of magnitude faster than comparable software for some applications. At moderate spatial resolutions, the computation times are similar to those of reduced-order and reformulated models in the literature. Multiple numerical solvers and methods for their initialization are compared in terms of numerical convergence and computational times, for a wide variety of operating conditions. PETLION is shown to quickly and robustly simulate complex battery protocols such as the Galvanostatic Intermittent Titration Technique (GITT), and to achieve high performance when incorporated into real-time PET-based nonlinear model predictive control. © 2021 The Author(s). Published on behalf of The Electrochemical Society by IOP Publishing Limited. This is an open access article distributed under the terms of the Creative Commons Attribution Non-Commercial No Derivatives 4.0 License (CC BYNC-ND, http://creativecommons.org/licenses/by-nc-nd/4.0/), which permits non-commercial reuse, distribution, and reproduction in any medium, provided the original work is not changed in any way and is properly cited. For permission for commercial reuse, please email: permissions@ioppublishing.org. [DOI: 10.1149/1945-7111/ac201c]

[1]  R. Braatz,et al.  Editors’ Choice—Perspective—Challenges in Moving to Multiscale Battery Models: Where Electrochemistry Meets and Demands More from Math , 2020 .

[2]  Marcello Torchio,et al.  Optimal charging of an electric vehicle battery pack: A real-time sensitivity-based model predictive control approach , 2020, Journal of Power Sources.

[3]  Richard D. Braatz,et al.  Real-time Nonlinear Model Predictive Control (NMPC) Strategies using Physics-Based Models for Advanced Lithium-ion Battery Management System (BMS) , 2020 .

[4]  R. Timms,et al.  Python Battery Mathematical Modelling (PyBaMM) , 2020, Journal of Open Research Software.

[5]  P. Kamat Lithium-Ion Batteries and Beyond: Celebrating the 2019 Nobel Prize in Chemistry – A Virtual Issue , 2019, ACS Energy Letters.

[6]  Moritz Diehl,et al.  CasADi: a software framework for nonlinear optimization and optimal control , 2018, Mathematical Programming Computation.

[7]  Wes McKinney,et al.  Python for Data Analysis , 2012 .

[8]  Qing Nie,et al.  DifferentialEquations.jl – A Performant and Feature-Rich Ecosystem for Solving Differential Equations in Julia , 2017, Journal of Open Research Software.

[9]  Azah Mohamed,et al.  Review of energy storage systems for electric vehicle applications: Issues and challenges , 2017 .

[10]  R. B. Gopaluni,et al.  LIONSIMBA: A Matlab Framework Based on a Finite Volume Model Suitable for Li-Ion Battery Design, Simulation, and Control , 2016 .

[11]  Sang-Hoon Cha,et al.  Capacity fade modeling of a Lithium-ion battery for electric vehicles , 2015 .

[12]  Paul W. C. Northrop,et al.  Efficient Simulation and Reformulation of Lithium-Ion Battery Models for Enabling Electric Transportation , 2014 .

[13]  R. Compton,et al.  Marcus-Hush-Chidsey theory of electron transfer applied to voltammetry: A review , 2012 .

[14]  Ralph E. White,et al.  Mathematical modeling of a lithium ion battery with thermal effects in COMSOL Inc. Multiphysics (MP) , 2011 .

[15]  Homer F. Walker,et al.  Anderson Acceleration for Fixed-Point Iterations , 2011, SIAM J. Numer. Anal..

[16]  Venkatasailanathan Ramadesigan,et al.  Coordinate Transformation, Orthogonal Collocation, Model Reformulation and Simulation of Electrochemical-Thermal Behavior of Lithium-Ion Battery Stacks , 2011 .

[17]  C. M. Doyle Design and simulation of lithium rechargeable batteries , 2010 .

[18]  Weifeng Fang,et al.  Electrochemical–thermal modeling of automotive Li‐ion batteries and experimental validation using a three‐electrode cell , 2010 .

[19]  Dennis W. Dees,et al.  Analysis of the Galvanostatic Intermittent Titration Technique (GITT) as applied to a lithium-ion porous electrode , 2009 .

[20]  V. Subramanian,et al.  Mathematical Model Reformulation for Lithium-Ion Battery Simulations: Galvanostatic Boundary Conditions , 2009 .

[21]  V. Subramanian,et al.  Towards real-time (milliseconds) parameter estimation of lithium-ion batteries using reformulated physics-based models , 2008 .

[22]  Venkat R. Subramanian,et al.  A quick and efficient method for consistent initialization of battery models , 2007 .

[23]  V. Subramanian,et al.  Efficient Macro-Micro Scale Coupled Modeling of Batteries , 2005 .

[24]  Carol S. Woodward,et al.  Enabling New Flexibility in the SUNDIALS Suite of Nonlinear and Differential/Algebraic Equation Solvers , 2020, ACM Trans. Math. Softw..

[25]  Stephen J. Mellor,et al.  Executable UML - A Foundation for Model-Driven Architecture , 2002, Addison Wesley object technology series.

[26]  Chaoyang Wang,et al.  Thermal‐Electrochemical Modeling of Battery Systems , 2000 .

[27]  Nicholas I. M. Gould,et al.  Trust Region Methods , 2000, MOS-SIAM Series on Optimization.

[28]  W. Marquardt,et al.  Structural analysis of differential-algebraic equation systems—theory and applications , 1995 .

[29]  M. Doyle,et al.  Relaxation Phenomena in Lithium‐Ion‐Insertion Cells , 1994 .

[30]  M. Doyle,et al.  Simulation and Optimization of the Dual Lithium Ion Insertion Cell , 1994 .

[31]  M. Doyle,et al.  Modeling of Galvanostatic Charge and Discharge of the Lithium/Polymer/Insertion Cell , 1993 .

[32]  J. E. Cuthrell,et al.  On the optimization of differential-algebraic process systems , 1987 .

[33]  C. Kelley Solving Nonlinear Equations with Newton's Method , 1987 .

[34]  J. Newman,et al.  Porous‐electrode theory with battery applications , 1975 .

[35]  J. Newman Numerical Solution of Coupled, Ordinary Differential Equations , 1968 .