Coder Social home page Coder Social logo

mathworks / simscape-hybrid-electric-vehicle-model Goto Github PK

View Code? Open in Web Editor NEW
41.0 4.0 11.0 122.2 MB

A Power-Split Hybrid Electric Vehicle (HEV) model in Simscape

Home Page: https://www.mathworks.com/matlabcentral/fileexchange/92820

License: Other

MATLAB 44.47% M 0.05% HTML 55.48%
matlab simulation simulink simscape automotive electric-vehicles hybrid-vehicles stateflow

simscape-hybrid-electric-vehicle-model's Introduction

Hybrid Electric Vehicle Model in Simscape™

View Hybrid Electric Vehicle Model in Simscape on File Exchange

Version 2.1

Introduction

This example includes a Hybrid Electric Vehicle model in Simscape™, demonstrating some new features of the recent releases of MATLAB® and featuring Subsystem Reference which enables modular physical modeling workflow.

The model includes an abstract Power-Split Hybrid Electric Vehicle (HEV) model with a simple rule-based controller for speed tracking simulation. It can be used to better understand how to work with Subsystem Reference for an automotive application. For a vehicle model that includes more detailed supervisory and engine controllers, please see the reference applications in Powertrain Blockset™.

The included abstract model is suitable for the system level simulation of longitudinal vehicle behavior as it runs faster than real time. The model consists of components such as motor, engine, power-split device, and so on, and they are built in a modular manner using Subsystem Reference and Simscape product family demonstrating a workflow where physical components are built and tested individually and also they can be easily integrated into a complete vehicle system model.

The HEV model and its component files are managed by a MATLAB project and some components come with their own test setups.

Model Screenshot

Plot of Simulation Result

For MATLAB R2023a

Version 2.1 is available.

See the change log for the details.

For MATLAB R2022b

Version 1.6 is available.

You can download the ZIP archive of the project from the link below. It does not include Git repository data.

This version requires MATLAB, Simulink®, Simscape, Simscape Driveline™, Simscape Electrical™, Stateflow®, Powertrain Blockset and optionally Parallel Computing Toolbox™.

You can also fork or clone the repository. Note that the latest repository may be ahead of the released version and potentially broken.

For previous MATLAB releases

You can download the ZIP archive of the project from the links below. It does not include Git repository data.

R2022a:

R2021a, R2021b

These versions require MATLAB, Simulink®, Simscape, Simscape Driveline™, Simscape Electrical™, Stateflow®, Powertrain Blockset and optionally Parallel Computing Toolbox™.

How to Use

Open HybridElectricVehicle.prj in MATLAB, and it will automatically open the Live Script HEVProject_main_script.mlx. The script contains the description of the model and hyperlinks to models and scripts.

How to Use in MATLAB Online

You can try this in MATLAB Online. In MATLAB Online, from the HOME tab in the toolstrip, select Add-OnsGet Add-Ons to open the Add-On Explorer. Then search for the submission name, navigate to the submission page, click Add button, and select Save to MATLAB Drive.

Changes

See ChangeLog.md for changes in each version.

See Also

License

See LICENSE.txt

Copyright 2021-2023 The MathWorks, Inc.

simscape-hybrid-electric-vehicle-model's People

Contributors

isaac-ito-mw avatar isaacito12 avatar jpkmw avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

simscape-hybrid-electric-vehicle-model's Issues

Tests in GitHub Actions generating errors

Some of the tests are generating errors in GitHub Actions CI pipeline although all tests pass when they are run locally in MATLAB. It looks like failures are related to desktop-related operations such as opening Live Scripts in MATLAB Editor or taking screenshots. These must be resolved with MATLAB Actions service. (In the meantime, releasing this project must continue by making sure that tests pass locally.)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.