When designing an electric vehicle, engineers need to balance performance and energy efficiency by selecting the right energy storage technology and minimizing powertrain losses. These and other critical tasks require simulation of the physical system throughout development, from selecting a powertrain architecture to testing the embedded software.
This article shows how MATLAB®, Simulink®, and Simscape™ support the seven most common use cases for electric vehicle simulation:
- Explore electric powertrain architectures
- Tune regenerative braking algorithms
- Modify a suspension design
- Optimize vehicle performance
- Develop active chassis controls
- Validate ADAS algorithms
- Test using hardware-in-the-loop
The example model used in this article is available for download.
Explore Electric Powertrain Architectures
Selecting the right architecture for an electric vehicle design is challenging because of the many options and tradeoffs that must be considered. Architectures can include one, two, or multiple electrical motors; a combustion engine; and various sources of power. Each architecture must be evaluated against criteria such as range, acceleration, performance, and price. Simulation enables you to complete these evaluations by testing candidate architectures on hills and racing circuits and in stop-and-go traffic.
In Simscape, the interfaces between subsystems are physical connections representing mechanical shafts, electrical wires, or fluid in a pipe. The model of the physical system is a schematic that visually communicates how the systems are connected. You can try out various configurations—for example, exchanging a powertrain containing three motors and a battery for a powertrain with a single motor powered by a battery and a fuel cell—and compare the effect of each configuration on vehicle-level performance (Figure 1).