Electric Vehicle Design with Simscape

This repository show you how to model an automotive battery electric vehicle (BEV) for range estimation and battery sizing.
2K Downloads
Updated 14 Feb 2024

Electric Vehicle Design with Simscape

To reduce greenhouse gas emissions, meet climate goals, and arrest global warming, the automotive sector is rapidly developing and proposing innovative low-carbon solutions. Among these solutions, electric vehicles (EVs) have gained traction thanks to their reduced carbon footprint and overall efficiency. The mass adoption of EVs depends on factors including the cost of ownership, safety, and range anxiety. Typically, these vehicles employ large battery packs, which are often the most expensive component of the vehicle. Modeling and simulation play then an important role in reducing the development cost and enabling greater adoption of these vehicles.

View Electric Vehicle Design with Simscape on File Exchange

Open in MATLAB Online

The examples in this repository show you how to model an automotive battery electric vehicle (BEV) for range estimation and battery sizing. The battery pack comprises several battery modules as combinations of cells in series and parallel. The vehicle model is a coupled electrical, mechanical, and thermal model built using Simscape™ Battery™, Simscape Driveline™, Simscape Electrical™, and Simscape Fluids™ Libraries.

There are workflows in this project where you learn how to:

  1. Simulate an all wheel drive (AWD) and a front wheel drive (FWD) vehicle.

  1. Estimate the on-road range of the vehicle. Run drive cycles with different ambient conditions to determine the range of the vehicle with a given capacity.

  1. Size your high-voltage (HV) battery pack to achieve your desired range. You learn how to simulate battery packs with different capacities and weights, and compare them based on how these factors affect the range of the vehicle.

  2. Setup your electric motor test bench for system integration.

  3. Find the fixed gear ratio suitable for BEV application.

  1. Generate a loss map for the motor and inverter.

  2. Estimate the inverter power module semiconductor device junction temperature variation due to switching and predict the lifetime of the inverter.

  1. Build a neural network model to predict battery temperature.

Setup

  • Clone the project repository.
  • Open ElectricVehicleSimscape.prj to get started with the project.
  • Requires MATLAB® release R2023b or newer.

Copyright 2022 - 2023 The MathWorks, Inc.

Cite As

MathWorks Simscape Team (2024). Electric Vehicle Design with Simscape (https://github.com/simscape/Electric-Vehicle-Simscape/releases/tag/23.2.1.7), GitHub. Retrieved .

MATLAB Release Compatibility
Created with R2023b
Compatible with R2022b to R2023b
Platform Compatibility
Windows macOS Linux

Community Treasure Hunt

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

Start Hunting!

Components/BatteryHV/harnessModels

Components/BatteryHV/lib

Components/BatteryHV/test

Components/Controller/harnessModels

Components/MotorDrive/harnessModels

Components/MotorDrive/test

Script_Data

Test

Test/CheckProject

Workflow/BatteryNeuralNetModel

Workflow/BatterySizing

Workflow/GearRatioSelect

Workflow/GenerateMotInvLoss

Workflow/InverterLife

Workflow/RangeEstimation

Workflow/ThermalDurability

utils

utils/SignalDesigner

utils/SignalDesigner/+SignalDesignUtility

utils/SignalDesigner/+SignalSourceBlockCallback

Version Published Release Notes
23.2.1.7

See release notes for this release on GitHub: https://github.com/simscape/Electric-Vehicle-Simscape/releases/tag/23.2.1.7

23.1.1.6

See release notes for this release on GitHub: https://github.com/simscape/Electric-Vehicle-Simscape/releases/tag/23.1.1.6

23.1.1.5

See release notes for this release on GitHub: https://github.com/simscape/Electric-Vehicle-Simscape/releases/tag/23.1.1.5

22.2.1.4

See release notes for this release on GitHub: https://github.com/simscape/Electric-Vehicle-Simscape/releases/tag/22.2.1.4

22.2.1.1

See release notes for this release on GitHub: https://github.com/simscape/Electric-Vehicle-Simscape/releases/tag/22.2.1.1

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.