System-Level Battery Electric Vehicle (BEV) Model
This example shows how to design a battery electric vehicle using abstract models of vehicle components. This is a simple, fast running model that you can use to estimate vehicle-level parameters like electrical efficiency. You can download this model in MATLAB® or access it from MATLAB Central File Exchange and GitHub®.
In this example, you learn how to:
Build a simple BEV model that you can use as a baseline to estimate electrical efficiency.
Build a detailed model of the permanent magnet synchronous motor (PMSM) and controller that you can use to estimate the electrical efficiency at the unit level.
Speed up simulations by using the results of simulations with the detailed motor drive unit to parameterize the simpler Motor & Drive block in the simple BEV model.
For more information about this example, follow these steps to explore the overview that opens in your web browser or see Battery Electric Vehicle Model in Simscape (MATLAB Central File Exchange).
Clone the up-to-date repository in the current folder using the
Alternatively, choose one of these options. You can download the latest files and versions of the project that are compatible with earlier releases of MATLAB using these options.
Download ZIP files of this project from Battery Electric Vehicle Model in Simscape (MATLAB Central File Exchange).
Clone the Git™ repository from Battery Electric Vehicle Model in Simscape (GitHub).
After you use the
gitclone function, MATLAB creates a new folder in the current folder. This example uses projects to manage the supporting files. Open the
BatteryElectricVehicle project file. If you have any projects open, MATLAB closes them before loading this project. An overview opens in your web browser that helps you explore subsystems and the construction of the model. The overview also shows you the main simulation results.
Open the model.
Click the Main script button on the canvas of the top-level model. This script shows how to set up the model, run the simulation, visualize the results, and calculate efficiency. You can find more scripts demonstrating other simulation cases in the SimulationCases folder.
To find the latest examples from the MathWorks Simscape Team, see MathWorks Simscape Team on MATLAB Central.