Skip to content

mathworks/hev-p4-app

Repository files navigation

Simulation App For A Hybrid Electric Vehicle

Open in MATLAB Online

Description

This project contains a simulation dashboard GUI for a customized version of the HEV P4 Reference Application Simulink® model that ships with the Powertrain Blockset™ software. The user configures input parameters such as the drive cycle, environment variables (temperature, pressure, wind speed, grade), vehicle-related parameters (engine type, battery SOC, wheel radius, etc.), then runs a simulation. The results can be displayed in the app while the simulation is running, exported, loaded, and compared with those from a previous simulation. A report of the simulation can be generated using MATLAB® Report Generator™. The app can be deployed as a standalone desktop app or as a web app using MATLAB Compiler™ and Simulink Compiler™. Watch the video "App_Presentation.mp4" to learn additional details.

To run the app, follow these steps:

  1. Open the MATLAB project "HEVProject.prj"
  2. Open "HEVApp.mlapp" in App Designer (e.g., via the project shortcut)
  3. Run application

Note: The first time the simulation is run from the app code will be generated, so longer execution times are expected.

Required Products

  • Powertrain Blockset™
  • MATLAB
  • Simulink
  • MATLAB Report Generator™
  • Stateflow®
  • Simulink Compiler™

License

The license for Simulation App For A Hybrid Electric Vehicle is available in the license.txt file in this GitHub repository.

Copyright 2021-2022 The MathWorks, Inc.