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
Open batteryExamplesProjectSetup.prj to get started up the project path. The project shortcut buttons in the toolstrip open these three examples.
Use the "Download from GitHub" button above to get files compatible with the latest release of MATLAB.
Use the links below to get files compatible with earlier releases of MATLAB.
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 this free, hands-on tutorial to learn how to use Simscape:
To learn more about Simscape, visit the resources page for tutorials and examples:
Steve Miller (2021). Battery Pack Design Solution for Battery EVs in Simscape (https://github.com/mathworks/Battery-Pack-Model-Simscape/releases/tag/220.127.116.11), GitHub. Retrieved .
Hi Sam - you need to use the hyperlink in the description above to download files saved for use in R2020b.
it's not compatible with 2020b, could you please fix it.
Hi, I am getting an error " failed to generate batterymodule_lib" kindly help to solve
Find the treasures in MATLAB Central and discover how the community can help you!Start Hunting!