File Exchange

image thumbnail

Battery Pack Design Solution for Battery EVs in Simscape

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

51 Downloads

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: https://github.com/mathworks/Battery-Pack-Model-Simscape/archive/refs/tags/20.2.1.1.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.
https://www.mathworks.com/products/simscape-electrical.html

Try this free, hands-on tutorial to learn how to use Simscape:
https://www.mathworks.com/learn/tutorials/simscape-onramp.html

To learn more about Simscape, visit the resources page for tutorials and examples:
https://www.mathworks.com/solutions/physical-modeling/resources.html

Cite As

Steve Miller (2021). Battery Pack Design Solution for Battery EVs in Simscape (https://github.com/mathworks/Battery-Pack-Model-Simscape/releases/tag/21.1.1.2), 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.
https://github.com/mathworks/Battery-Pack-Model-Simscape/archive/refs/tags/20.2.1.1.zip

Sam

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

Gautam

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!