File Exchange

image thumbnail

Battery Electric Vehicle with Motor Cooling in Simscape

version (395 KB) by Steve Miller
Battery electric vehicle with liquid-cooled motor.


Updated 17 Apr 2021

From GitHub

View Version History

View license on GitHub

This example models a battery electric vehicle with a cooling system for the motor. It is used to size mechanical, electrical, and fluid components in the vehicle. The vehicle executes a passing maneuver and the speed, torque, and temperature measurements are used to assess if the system requirements are met.

The motor cooling system can be optionally disconnected from the system. This allows us to see the impact of the cooling system on motor temperature.

This video, "Getting Started with Simscape" explains the purpose of the model and introduces you to modeling with Simscape:

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:

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 Electric Vehicle with Motor Cooling in Simscape (, GitHub. Retrieved .

Comments and Ratings (5)

Swaraj S

Thank you Steve. Can you please help me with how to replace the voltage source with the generic lithium ion battery model, as its not the from the same library as that of PMSM motor in the simulink ? . This is my email id if you want to share some files regarding the topic . Email:

Steve Miller

Many datasheets can be downloaded from battery supplier websites. We sized ours based on values seen in articles about electric vehicles.

Swaraj S

where can i get the datasheet used for assigning the parameters ??

Jingshi Yang

Nandagopal Vidhu

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!