Battery Pack Design Solution for Battery EVs in Simscape
Version 24.1.1.5 (29.8 MB) by
Steve Miller
Battery pack model for thermal management tasks, with modules of cells in series and parallel.
This repository shows use of Simscape to model an electric vehicle battery pack. There are three examples:
1. Battery Pack Thermal Management
Shows how to model an automotive battery pack for thermal management tasks.
2. Full Vehicle Thermal Management
Shows a BEV full vehicle thermal management with a detailed battery model.
3. Workflow from Module Design to Full Pack
Demonstrates a workflow to go from a detailed battery module design to a real-time pack plant model
4. Battery Management System for State of Charge estimation
Shows how to use Kalman Filters (EKF) and predict battery state of charge.
5. Battery Temperature estimation using Neural Networks
Shows how to use Neural Networks to eliminate a sensor in the battery pack. Demonstrates a workflow to generate training data for neural networks, train the network, validate it and use for time-series prediciton, and code generation for hardware deployment.
Open batteryExamplesProjectSetup.prj to get started up the project path. The project shortcut buttons in the toolstrip open these three examples.
Use the links below to get files compatible with earlier releases of MATLAB.
- For R2023b: Use Download button
- For R2023b: https://github.com/mathworks/Battery-Pack-Model-Simscape/archive/23.2.1.5.zip
- For R2023a: https://github.com/mathworks/Battery-Pack-Model-Simscape/archive/23.1.1.5.zip
- For R2022b: https://github.com/mathworks/Battery-Pack-Model-Simscape/archive/22.2.1.5.zip
- For R2022a: https://github.com/mathworks/Battery-Pack-Model-Simscape/archive/22.1.1.5.zip
- For R2021b: https://github.com/mathworks/Battery-Pack-Model-Simscape/archive/21.2.1.4.zip
- For R2021a: https://github.com/mathworks/Battery-Pack-Model-Simscape/archive/21.1.1.4.zip
- For R2020b: https://github.com/mathworks/Battery-Pack-Model-Simscape/archive/20.2.1.4.zip
All examples have a battery-module custom component that is based on Simscape Electrical Battery (Table-Based) block for modeling battery behavior. Please visit the Simscape Electrical page to learn more about modeling electrical systems.
Try these free, hands-on tutorials to learn how to use Simscape:
- https://www.mathworks.com/learn/tutorials/simscape-onramp.html
- https://www.mathworks.com/learn/tutorials/circuit-simulation-onramp.html
To learn more about Simscape, visit the resources page for tutorials and examples:
Cite As
Steve Miller (2024). Battery Pack Design Solution for Battery EVs in Simscape (https://github.com/mathworks/Battery-Pack-Model-Simscape/releases/tag/24.1.1.5), GitHub. Retrieved .
MATLAB Release Compatibility
Created with
R2024a
Compatible with R2020b to R2024a
Platform Compatibility
Windows macOS LinuxCategories
Find more on Propulsion and Power Systems in Help Center and MATLAB Answers
Tags
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!Discover Live Editor
Create scripts with code, output, and formatted text in a single executable document.
Libraries/+batteryModule
Overview/html
Scripts_Data
Libraries/demoDetailedThermalDataTransfer
Models
Models/BEV_Battery_Plant_Model
Overview
Overview
Scripts_Data
To view or report issues in this GitHub add-on, visit the GitHub Repository.
To view or report issues in this GitHub add-on, visit the GitHub Repository.