journal article·2024-12-11Open access

Comparative Analysis of Computational Times of Lithium-Ion Battery Management Solvers and Battery Models Under Different Programming Languages and Computing Architectures

Moin Ahmed, Zhiyu Mao, Yunpeng Liu, Aiping Yu, Michael Fowler, Zhongwei Chen

Batteries· Volume 10· Issue 12

Abstract

With the global rise in consumer electronics, electric vehicles, and renewable energy, the demand for lithium-ion batteries (LIBs) is expected to grow. LIBs present a significant challenge for state estimations due to their complex non-linear electrochemical behavior. Currently, commercial battery management systems (BMSs) commonly use easier-to-implement and faster equivalent circuit models (ECMs) than their counterpart continuum-scale physics-based models (PBMs). However, despite processing more mathematical and computational complexity, PBMs are attractive due to their higher accuracy, higher fidelity, and ease of integration with thermal and degradation models. Various reduced-order PBM battery models and their computationally efficient numerical schemes have been proposed in the literature. However, there is limited data on the performance and feasibility of these models in practical embedded and cloud systems using standard programming languages. This study compares the computational performance of a single particle model (SPM), an enhanced single particle model (ESPM), and a reduced-order pseudo-two-dimensional (ROM-P2D) model under various battery cycles on embedded and cloud systems using Python and C++. The results show that reduced-order solvers can achieve a 100-fold reduction in solution times compared to full-order models, while ESPM with electrolyte dynamics is about 1.5 times slower than SPM. Adding thermal models and Kalman filters increases solution times by approximately 20% and 100%, respectively. C++ provides at least a 10-fold speed increase over Python, varying by cycle steps. Although embedded systems take longer than cloud and personal computers, they can still run reduced-order models effectively in Python, making them suitable for embedded applications.
Source: crossref · Quality: baseline

Research context

OpenAlex topics: Advanced Battery Technologies Research · Advancements in Battery Materials · Advanced Battery Materials and Technologies

SciVX discovery tags are terminology-based. OpenAlex topics are source-provided classifications.

Affiliations

Department of Chemical Engineering, University of Waterloo, Waterloo, ON N2L 3W3, Canada

Power Battery & System Research Center, Dalian Institute of Chemical Physics, Chinese Academy of Sciences, Dalian 116023, China

State Key Laboratory of Catalysis, Dalian Institute of Chemical Physics, Chinese Academy of Sciences, Dalian 116023, China

Funding

Strategic Priority Research Program of the Chinese Academy of Sciences

References (54)

Show source-provided references
1. Opportunities and Challenges of Lithium Ion Batteries in Automotive Applications10.1021/acsenergylett.0c02584 ↗
2. Wu, Y. (2020). Applications of Lithium-Ion Batteries. Lithium-Ion Batteries, CRC Press.
3. Li-ion batteries: Basics, progress, and challenges10.1002/ese3.95 ↗
4. Rahn, C. (2013). Electrochemistry. Battery Systems Engineering, John Wiley & Sons Ltd.10.1002/9781118517048 ↗
5. Promise and reality of post-lithium-ion batteries with high energy densities10.1038/natrevmats.2016.13 ↗
6. Issues and challenges facing rechargeable lithium batteries10.1038/35104644 ↗
7. Battery-management system (BMS) and SOC development for electrical vehicles10.1109/TVT.2010.2089647 ↗
8. A review on the key issues for lithium-ion battery management in electric vehicles10.1016/j.jpowsour.2012.10.060 ↗
9. A comparative study of equivalent circuit models for Li-ion batteries10.1016/j.jpowsour.2011.10.013 ↗
10. The role of artificial intelligence in the mass adoption of electric vehicles10.1016/j.joule.2021.07.012 ↗
11. Evaluation of Lithium-Ion Battery Equivalent Circuit Models for State of Charge Estimation by an Experimental Approach10.3390/en4040582 ↗
12. A comparative study of different equivalent circuit models for estimating state-of-charge of lithium-ion batteries10.1016/j.electacta.2017.10.153 ↗
13. Simplified Li Ion Cell Model for BMS Coupling an Equivalent Circuit Dynamic Model with a Zero Dimensional Physics Based SEI Model10.1149/1945-7111/ac3597 ↗
14. A comprehensive equivalent circuit model for lithium-ion batteries, incorporating the effects of state of health, state of charge, and temperature on model parameters10.1016/j.est.2021.103252 ↗
15. State of charge estimation of a lithium ion cell based on a temperature dependent and electrolyte enhanced single particle model10.1016/j.energy.2014.12.031 ↗
16. A single particle model with chemical/mechanical degradation physics for lithium ion battery State of Health (SOH) estimation10.1016/j.apenergy.2018.01.011 ↗
17. A numerically efficient method of solving the full-order pseudo-2-dimensional (P2D) Li-ion cell model10.1016/j.jpowsour.2021.229571 ↗
18. Plett, G. (2015). Battery Boot Camp. Battery Management System, Artech House. [1st ed.].
19. Equivalent Circuit Models
20. Plett, G. (2015). Continuum-scale Cell Models. Battery Management Systems, Artech House.
21. Simulation and Optimization of the Dual Lithium Ion Insertion Cell10.1149/1.2054684 ↗
22. Plett, G.L. (2015). Microscale Cell Models. Battery Management Systems, Artech House.
23. A Neural Network Based Method for Thermal Fault Detection in Lithium-Ion Batteries10.1109/TIE.2020.2984980 ↗
24. Analysis of ternary hybrid nanofluid in microchannel-cooled cylindrical Li-ion battery pack using multi-scale multi-domain framework10.1016/j.apenergy.2023.122241 ↗
25. Plett, G. (2015). Thermal Modelling. Battery Management Systems, Artech House. [1st ed.].
26. Single-Particle Model for a Lithium-Ion Cell: Thermal Behavior10.1149/1.3521314 ↗
27. Han, R., Macdonald, C., and Wetton, B. (2021). A fast solver for the pseudo-two-dimensional model of lithium-ion batteries. arXiv.
28. Battery State Estimation for a Single Particle Model with Electrolyte Dynamics10.1109/TCST.2016.2571663 ↗
29. Extension of physics-based single particle model for higher charge–discharge rates10.1016/j.jpowsour.2012.09.084 ↗
30. A multi scale multi domain model for large format lithium-ion batteries10.1016/j.electacta.2021.139046 ↗
31. Multi-Domain Modeling of Lithium-Ion Batteries Encompassing Multi-Physics in Varied Length Scales10.1149/1.3597614 ↗
32. Magri, L., Sequino, L., and Ferrari, C. (2023). Simulating the Electrochemical-Thermal Behavior of a Prismatic Lithium-Ion Battery on the Market under Various Discharge Cycles. Batteries, 9.10.3390/batteries9080397 ↗
33. Gwak, G., and Ju, H. (2019). Multi-Scale and Multi-Dimensional Thermal Modeling of Lithium-Ion Batteries. Energies, 12.10.3390/en12030374 ↗
34. Multiscale-multidomain model order reduction of Lithium-ion batteries for automobile application: A review10.1016/j.est.2024.113390 ↗
35. Plauska, I., Liutkevičius, A., and Janavičiūtė, A. (2023). Performance Evaluation of C/C++, MicroPython, Rust and TinyGo Programming Languages on ESP32 Microcontroller. Electronics, 12.10.3390/electronics12010143 ↗
36. MicroPython or Arduino C for ESP32—Efficiency for neural network edge devices
37. Choroszucho, A., Golonko, P., Bednarek, J., Sumorek, M., and Żukowski, J. (June, January 27). Comparison of high-level programming languages efficiency in embedded systems. Proceedings of the Photonics Applications in Astronomy, Communications, Industry, and High-Energy Physics Experiments, Wilga, Poland.
38. Thomas, J.W. (1995). Numerical Partial Differential Equations: Finite Difference Methods, Springer.10.1007/978-1-4899-7278-1 ↗
39. On finite-difference solutions of the heat equation in spherical coordinates10.1080/10407788708913597 ↗
40. Lee, W. (2024, May 19). Tridiagonal Matrices: Thomas Algorithm—University of Limerick, n.d. Available online: https://www.yumpu.com/en/document/read/4721668/tridiagonal-matrices-thomas-algorithm-university-of-limerick.
41. Krishnan, H., Piyush, T., and Ramachandran, S. (2018). Theoretical Framework of the Reduced Order Models. Mathematical Modeling in Lithium-Ion Batteries, Springer International Publishing.
42. LIONSIMBA: A Matlab Framework Based on a Finite Volume Model Suitable for Li-Ion Battery Design, Simulation, and Control10.1149/2.0291607jes ↗
43. Reduced order model for a lithium ion cell with uniform reaction rate approximation10.1016/j.jpowsour.2012.09.013 ↗
44. An explicit algebraic reduced order algorithm for lithium ion cell voltage prediction10.1016/j.jpowsour.2013.09.089 ↗
45. Model-Based Estimation of Lithium Concentrations and Temperature in Batteries Using Soft-Constrained Dual Unscented Kalman Filtering10.1109/TCST.2020.2974176 ↗
46. Electrochemical model-based state estimation for lithium-ion batteries with adaptive unscented Kalman filter10.1016/j.jpowsour.2020.228534 ↗
47. Plett, G. (2016). Battery State Estimations. Battery Management Systems, Artech House.
48. (2024, May 20). Welcome to Python.org, (n.d.). Available online: https://www.python.org/.
49. (2024, May 20). Cplusplus. Available online: https://cplusplus.com/.
50. Ateeq, M., Habib, H., Umer, A., and Rehman, M.U. (2014, January 11–13). C++ or Python? Which one to begin with: A learner’s perspective. Proceedings of the 2014 International Conference on Teaching and Learning in Computing and Engineering (LaTiCE), Kuching, Malaysia.10.1109/LaTiCE.2014.20 ↗
51. A review of using object-orientation properties of C++ for designing expert system in strategic planning10.1016/j.cosrev.2020.100282 ↗
52. (2024, May 21). About the Unified Modeling Language Specification Version 2.5.1 (n.d.). Available online: https://www.omg.org/spec/UML/2.5.1.
53. Adaptive robust unscented Kalman filter-based state-of-charge estimation for lithium-ion batteries with multi-parameter updating10.1016/j.electacta.2022.140760 ↗
54. State-of-charge inconsistency estimation of lithium-ion battery pack using mean-difference model and extended Kalman filter10.1016/j.jpowsour.2018.02.058 ↗