Skip to content

This repository show you how to model an automotive battery electric vehicle (BEV) for range estimation and battery sizing.

License

Notifications You must be signed in to change notification settings

simscape/Electric-Vehicle-Simscape

Repository files navigation

Electric Vehicle Design with Simscape

View Electric Vehicle Design with Simscape on File Exchange

Open in MATLAB Online

The key components of an electrified platform include HV battery pack, an e-drive system, HVAC, and other electromechanical components. Design of an electric drivetrain is often a collaborative effort between diverse groups and model sharing and reuse becomes important. In this project, a battery electric vehicle is modelled with components available in different fidelity, for you to select and run based on application need. The vehicle model is a coupled electrical, mechanical, and thermal model built using Simscape™, Battery™, Simscape Driveline™, Simscape Electrical™, and Simscape Fluids™ Libraries. Main text

In this project, you will learn about the following seven engineering workflows:

1. Estimate Driving Range of Electric Vehicle

Range Estimation 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. See Workflow/RangeEstimation.

2. Size Battery for Electric Vehicle

Battery Sizing Size your high-voltage (HV) battery pack to achieve your desired range. You will 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. See Workflow/BatterySizing.

3. Characterize Battery using HPPC Test Data

Cell Characterization Cell Characterization Find parameters for an equivalent circuit based battery model from HPPC test data. See Workflow/CellCharacterization.

4. Create Battery Virtual Sensors (Neural Networks)

Battery NN Build a neural network model to predict battery temperature. This Neural network model takes in battery voltage and current measurements to predict battery temperature. This, when deployed, can help in eliminating some thermal sensors in the battery pack and reduce cost of development. See Workflow/BatteryNeuralNetModel.

5. Estimate Efficient Gear Ratio for Electric Drive

Gear Ratio Drive units with fixed gear ratio are usually the most cost effective option for battery electric vehicle. To determine an appropriate fixed gear ratio, run a design of experiment (DoE) which covers a range of gear ratios and test cycle parameters. See Workflow/GearRatioSelect.

6. Setup Electric Motor Test Bench for System Integration

Learn how to generate a permanent magnet synchronous motor (PMSM) for a system level (electro-thermal) simulation by creating a motor loss map and integrating it into the system level blocks. See Workflow/GenerateMotInvLoss. Motor Loss Map

7. Verify Electric Drive Durability and Life

Durability Estimate the inverter power module semiconductor device junction temperature variation due to switching and predict the lifetime of the inverter. See Workflow/InverterLife and Workflow/ThermalDurability.

Setup

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

Copyright 2022 - 2025 The MathWorks, Inc.

About

This repository show you how to model an automotive battery electric vehicle (BEV) for range estimation and battery sizing.

Resources

License

Security policy

Stars

Watchers

Forks

Packages

No packages published