Battery Modeling

Lithium ion battery characterization, state estimation, cell balancing, and thermal management

53.5K Downloads

Updated 3 Jun 2021

View License

Editor's Note: Popular File 2020

This file contains Simscape Electrical Lithium-ion battery models for parameter estimation and simulation.
1. Unzip the project.
2. Double-click BatteryModeling.prj to set up the MATLAB path. The html index contains links to open each example.
Demos:
1. 3S-1P battery pack CCCV charge with passive balancing using Simscape Electrical. Charge / discharge cycling with passive balancing, including thermal effects.
2. EV battery cooling. Liquid cooling of an automotive battery pack.
3. Cell characterization. Parameter estimation of single cell using pulsed discharge experiments.
4. SOC Estimation using UKF.
5. SOH (internal resistance) online estimation using EKF. Internal resistance grows over time and the nonlinear Kalman Filter estimates its evolution.
6. Battery App. This app can be used to find battery parameters from datasheet information.
This site contains additional information on battery modeling using bat365(R) tools:
/solutions/power-electronics-control/battery-models.html
----------------------------------------------------------------------------
Additional literature:
SAE 2015: Model-Based Parameter Identification of Healthy and Aged Li-ion Batteries for Electric Vehicle Applications
http:/company/newsletters/articles/model-based-parameter-identification-of-healthy-and-aged-li-ion-batteries-for-electric-vehicle-applications.html
Webinar: Battery Data Acquisition and Analysis Using MATLAB
http:/videos/battery-data-acquisition-and-analysis-using-matlab-89170.html
Webinar: Lithium Battery Model with Thermal Effects for System-Level Analysis
http:/videos/lithium-battery-model-with-thermal-effects-for-system-level-analysis-81886.html
IEEE 2012: Lithium Battery Model with Thermal Effect
/content/dam/bat365/tag-team/Objects/i/71900-ieee-2012-high-fidelity-lithium-battery-model-with-thermal-effect.pdf
SAE 2013: Simplified Extended Kalman Filter Observer for Battery SOC Estimation
/content/dam/bat365/tag-team/Objects/s/76108-sae-2013-simplified-ekf-battery-model.pdf
SAE 2013: Battery Model Parameter Estimation Using a Layered Technique
http:/company/newsletters/articles/battery-model-parameter-estimation-using-a-layered-technique-an-example-using-a-lithium-iron-phosphate-cell.html?s_tid=srchtitle
SAE 2014: Battery Pack Modeling, Simulation, and Deployment on a Multicore Real Time Target
http:/company/newsletters/articles/battery-pack-modeling-simulation-and-deployment-on-a-multicore-real-time-target.html?s_tid=srchtitle
Webinar: Optimizing Vehicle Electrical Design through System-Level Simulation
http:/videos/optimizing-vehicle-electrical-design-through-system-level-simulation-81919.html
Video: Real-Time Simulation of Battery Packs Using Multicore Computers
http:/videos/real-time-simulation-of-battery-packs-using-multicore-computers-92061.html
Video: MATLAB & Simulink Racing Lounge: Battery Modeling with Simulink
http:/videos/matlab-simulink-racing-lounge-battery-modeling-with-simulink-96690.html
Using Model-Based Design to Build the Tesla Roadster
http:/company/newsletters/articles/using-model-based-design-to-build-the-tesla-roadster.html
----------------------------------------------------------------------------
bat365(R) Consulting offers services on this topic. For assistance, please contact me or your bat365(R) representative.
http:/services/consulting/proven-solutions/battery-simulation-and-controls.html

Cite As

Javier Gazzarri (2023). Battery Modeling (/matlabcentral/fileexchange/36019-battery-modeling), MATLAB Central File Exchange. Retrieved .

MATLAB Release Compatibility
Created with R2019b
Compatible with R2019a and later releases
Platform Compatibility
Windows macOS Linux
Communities

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

passiveBalancing

socEstimation

sohEstimation

syntheticData

sohEstimation

syntheticData

Version Published Release Notes
1.27

Updated description with mention of the tools needed for physical modeling

1.26

Demos use new battery cell block

1.25

This version uses the new battery cell block and incorporates new SOC and SOH workflows

1.24.0.2

Fixed incompatibilities with new Simscape(TM) unit system

1.24.0.1

Updated license

1.24.0.0

Updated link to: SAE 2014: Battery Pack Modeling, Simulation, and Deployment on a Multicore Real Time Target
updated a hyperlink in description
added link to new paper on lithium battery cell parameter changes due to aging

1.23.0.0

updated links in description only

1.22.0.0

Corrected webinar links

1.21.0.0

Added acknowledgement for other entry - electrical system simulation

1.19.0.0

Description updated - added a link to the Battery Data Acquisition webinar. No changes to the files.

1.18.0.0

Updated description only. No file changes.

1.17.0.0

Added a new webinar link to the description

1.16.0.0

Updated a bad link to the parameter estimation video.

1.15.0.0

Fixed an issue with temperature units on R2012b demos.

1.14.0.0

Modified description only to add links to new publications.

1.13.0.0

Updated the R2012b+ version of the models:
1. The shortcut block to open the custom library was broken
2. Use Kelvin temperature units within the Simscape model

There is a known bug in R2013a. Please see README.txt for info.

1.12.0.0

R2012b folder with .SLX file format. Excluded R2012b +LiBatteryElements folder because it is a shipping demo.

ssc_lithium_cell_SDO_Project.mat parallel computing unchecked as default, due to a bug if the toolbox is not installed. See Readme.txt

1.10.0.0

Added 80-cell battery pack model.

1.6.0.0

Added link to demo video. Removed extraneous Simscape mex files. (Note: you will need to run "ssc_build LiBatteryElements" to build a machine-specific Simscape library for the battery building blocks.

1.3.0.0

Updated copyright statement, link to webinar.

1.1.0.0

n/a

1.0.0.0