{"id":19129814,"url":"https://github.com/mathworks/simscape-hev-series-parallel","last_synced_at":"2025-06-15T01:32:41.133Z","repository":{"id":92436576,"uuid":"219208430","full_name":"mathworks/Simscape-HEV-Series-Parallel","owner":"mathworks","description":"Model of a parallel-series hybrid-electric vehicle with system-level and detailed variants of electrical system.","archived":false,"fork":false,"pushed_at":"2025-03-22T18:44:01.000Z","size":23428,"stargazers_count":51,"open_issues_count":0,"forks_count":22,"subscribers_count":6,"default_branch":"master","last_synced_at":"2025-04-13T10:58:28.674Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"MATLAB","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/mathworks.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":"SECURITY.md","support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2019-11-02T20:14:34.000Z","updated_at":"2025-04-04T04:23:52.000Z","dependencies_parsed_at":"2023-12-06T22:28:50.396Z","dependency_job_id":"213e2e8e-b36e-4ea8-97c3-478e864e7660","html_url":"https://github.com/mathworks/Simscape-HEV-Series-Parallel","commit_stats":{"total_commits":26,"total_committers":1,"mean_commits":26.0,"dds":0.0,"last_synced_commit":"ad15ce05e267ae6a76e069ecc712b6d8a1d791a0"},"previous_names":[],"tags_count":25,"template":false,"template_full_name":null,"purl":"pkg:github/mathworks/Simscape-HEV-Series-Parallel","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mathworks%2FSimscape-HEV-Series-Parallel","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mathworks%2FSimscape-HEV-Series-Parallel/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mathworks%2FSimscape-HEV-Series-Parallel/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mathworks%2FSimscape-HEV-Series-Parallel/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mathworks","download_url":"https://codeload.github.com/mathworks/Simscape-HEV-Series-Parallel/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mathworks%2FSimscape-HEV-Series-Parallel/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":259908827,"owners_count":22930487,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-09T06:08:36.645Z","updated_at":"2025-06-15T01:32:41.080Z","avatar_url":"https://github.com/mathworks.png","language":"MATLAB","funding_links":[],"categories":[],"sub_categories":[],"readme":"# **Hybrid-Electric Vehicle Model in Simulink**\nCopyright 2011-20203 The MathWorks(TM), Inc.\n\nView on File Exchange: [![View Hybrid-Electric Vehicle Model in Simulink on File Exchange](https://www.mathworks.com/matlabcentral/images/matlab-file-exchange.svg)](https://www.mathworks.com/matlabcentral/fileexchange/28441-hybrid-electric-vehicle-model-in-simulink)  \nYou can also open in MATLAB Online: [![Open in MATLAB Online](https://www.mathworks.com/images/responsive/global/open-in-matlab-online.svg)](https://matlab.mathworks.com/open/github/v1?repo=mathworks/Simscape-HEV-Series-Parallel\u0026project=HEV_SeriesParallel.prj)\n\nTo start this demonstration, open project HEV_SeriesParallel.prj\nThis will bring you to the simplest configuration of the full vehicle.\nLook at the slides to see all of the available configurations.\n\nThere are a number of things to be aware of with this demonstration.\n1. Configurations\n2. Stateflow\n3. Power Quality\n\nDetails\n\n1. Configurations\n\n1.1 For the Mean Value and Detailed electrical variants, re-do the selection \nof the Electrical subsystem if you change the battery subsystem.\n\nWhen you change Electrical variants, the solver will change.  This is done \nautomatically via a script that is called in the Initialization mask of \nthe Electrical and Battery blocks (Configure_HEV_Simulation.m).  However, if \nyou change the Battery variant, the solver doesn't change until you re-select \nthe Electrical variant.\n\nYou probably will not simulate this interactively anyway, as Mean Value variants \ntake 30 minutes - 3 hours to run, and Detailed variants take 12 hours -- 36 hours \nto run.\n\n\n1.2 The \"Cells\" variant of the battery is only available for the System-Level \nelectrical variant.\n\n\n2. Stateflow\n\nThe Stateflow model produces three outputs that route to the Motor, Generator, \nand Engine control systems.  However, by default, those signal connections do \nnot affect the output of those control systems.  This is because the Mean Value \nvariant cannot run to completion for Drive Cycle 2 when the Stateflow diagram \nis connected.  All other variants run to completion.\n\nIf you want to connect the Stateflow to the rest of the model, each subsystem \nhas a manual switch in it that allows you to select a signal that uses the \nStateflow output to enable/disable the output of the PI controller.  \nHowever, if you do this, be aware the results will not match the Mean Level \nand Detailed variants (done in the Report Generation demo).  This represents\na case where we have made a design change and have automatically documented the \neffect it has on the overall results.\n\n3. Power Quality\n\n3.1 The power quality demonstration uses Signal Processing Toolbox.  Though \nit is possible to measure power quality using Simscape Power Systems alone, \nthere are two reasons why we did not use this.\n   \n   1. The FFT analysis in the PowerGUI only checks at a single point in time\n      We wanted to see a representation as time varies to identify the component\n      contributing to poor power quality\n\n   2. The Total Harmonic Distortion block in Simscape Power Systems is only \n      for AC networks. For an HEV, the DC network is the most interesting.\n      Spectrogram works for both AC and DC networks.\n\n3.2 DC Voltage for HEV_PQ_Test_B\n\nThe plot for HEV_PQ_Test_B shows very clearly that the generator is contributing \nto poor power quality.  However, the voltage on the DC bus for this test shows \nother larger problems -- the battery can't supply enough voltage for this \nsituation.  This situation was the best example we could find of the spectrogram \npointing directly to a component on the network, so we chose to include it.  \nFollow the script DC_Power_Quality_Analysis.m to see the test case\n\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmathworks%2Fsimscape-hev-series-parallel","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmathworks%2Fsimscape-hev-series-parallel","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmathworks%2Fsimscape-hev-series-parallel/lists"}