File Exchange

image thumbnail

Battery Pack Design Solution for Battery EVs in Simscape

version (4.72 MB) by Steve Miller
Battery pack model for thermal management tasks, with modules of cells in series and parallel.


Updated 17 Apr 2021

From GitHub

View Version History

View license on GitHub

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.

For R2020b:

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:

Cite As

Steve Miller (2021). Battery Pack Design Solution for Battery EVs in Simscape (, GitHub. Retrieved .

Comments and Ratings (7)

Steve Miller

Hi Sam - you need to use the hyperlink in the description above to download files saved for use in R2020b.


Hi Miller,
it's not compatible with 2020b, could you please fix it.

Ramana Anchuri

Kameswara Prakash

Hi, I am getting an error " failed to generate batterymodule_lib" kindly help to solve

Graham Dudgeon


MATLAB Release Compatibility
Created with R2021a
Compatible with R2020b to R2021a
Platform Compatibility
Windows macOS Linux

Community Treasure Hunt

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

Start Hunting!