Editor's Note: Popular File 2014
This file contains a hybrid-electric vehicle model built using Simscape, Simscape Electrical, and Simscape Driveline that can be configured for system-level tests or power quality analyses. Model variants for the electrical, battery, and vehicle dynamics systems can be selected using variant subsystems. A battery model created with the Simscape language is incorporated into the model. Supervisory logic is implemented with Stateflow. This model can be configured for hardware-in-the-loop testing.
Please read the README.txt file to get started.
Use the "Download from GitHub" button above to access files compatible with the current release of MATLAB.
Use the links below to access files compatible with earlier releases of MATLAB.
For R2020a: https://github.com/mathworks/Simscape-HEV-Series-Parallel/archive/20.1.4.1.zip
For R2019b: https://github.com/mathworks/Simscape-HEV-Series-Parallel/archive/19.2.4.0.zip
For R2019a: https://github.com/mathworks/Simscape-HEV-Series-Parallel/archive/19.1.3.0.zip
For R2018b: https://github.com/mathworks/Simscape-HEV-Series-Parallel/archive/18.2.2.5.zip
For R2018a: https://github.com/mathworks/Simscape-HEV-Series-Parallel/archive/18.1.2.4.zip
For R2017b: https://github.com/mathworks/Simscape-HEV-Series-Parallel/archive/17.2.2.3.zip
For R2017a: https://github.com/mathworks/Simscape-HEV-Series-Parallel/archive/17.1.2.2.zip
For R2016b: https://github.com/mathworks/Simscape-HEV-Series-Parallel/archive/16.2.2.1.zip
For R2016a: https://github.com/mathworks/Simscape-HEV-Series-Parallel/archive/16.1.2.0.zip
For R2015b: https://github.com/mathworks/Simscape-HEV-Series-Parallel/archive/15.2.1.14.zip
For R2015a: https://github.com/mathworks/Simscape-HEV-Series-Parallel/archive/15.1.1.13.zip
For R2014b: https://github.com/mathworks/Simscape-HEV-Series-Parallel/archive/14.2.1.12.zip
For R2014a: https://github.com/mathworks/Simscape-HEV-Series-Parallel/archive/14.1.1.11.zip
For R2013b: https://github.com/mathworks/Simscape-HEV-Series-Parallel/archive/13.2.1.10.zip
For R2013a: https://github.com/mathworks/Simscape-HEV-Series-Parallel/archive/13.1.1.9.zip
Learn about vehicle powertrain modeling with Simscape:
https://www.mathworks.com/videos/vehicle-powertrain-simulation-with-simscape-driveline-119545.html
Find other Simscape examples by searching posts for the keyword "physical modeling"
https://www.mathworks.com/matlabcentral/fileexchange/?term=%22physical+modeling%22
Learn more about MathWorks Simscape Products:
https://www.mathworks.com/physical-modeling/
Steve Miller (2021). Hybrid-Electric Vehicle Model in Simulink (https://github.com/mathworks/Simscape-HEV-Series-Parallel/releases/tag/20.2.4.2), GitHub. Retrieved .
Inspired: QSS_TB_2019b (1)
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!Create scripts with code, output, and formatted text in a single executable document.
Excellent model, thanks for your work~~~
Hey Sir, Thanks for the model. I juts have a question.
How can I add my own drive cycle in this program.?
There are default 5 cycles. but i need to add more and how can i do that?
Thanks for your help.
Hy sir.
Your work is awesome.. Did you implemented any research paper on it.
Hi,
First thank you for your great work on this model. However, I have a small question about the control logic. In the stateflow chart, the Mot_Enable is always 1. In my opinion, it should be 0 in cruise mode, for the engine can hold the cruise mode. Can you explain why you set the Mot_Enable to 1 in cruise mode?
Thanks.
Hi,
Thanks for your responses.I have a question about low pass filter that used in speed vehicle path.Can you describe about it? It relates to solver that used?
Hi,
First of all, I am very appreciated your work on HEV model and this model helped me a lot. I want to analysis this HEV model. Could you briefly explain this HEV model ,about designing idea or each module? Thank you so much Steve.
Can i convert this model to EV from HEV ?
Hi,
Thank you so much for the model. I would appreciate if you help me about getting your paper on this model.
Thanks
Hi, Did you design/tune PI controllers on an average model of this system and then verify it on this model? Thanks
Hi, I am implementing a battery electric vehicle without the internal combustion engine. How can I take the input from the control if it does not have any from he ICE.
Hi,
First of all, I am very appreciated your work on HEV model and this model helped me a lot. I am now trying to understand the parameters and I want to know which car model you selected as your sources of parameters? Moreover, I want to investigate parallel HEV using your model. Could you briefly explain if I need to modify the model that suitable for parallel HEV? Am I need to add or delete any blocks or adjust any parameters in the model? Thank you so much Steve.
@Usama - comment out (or delete) the block 'HEV_SeriesParallel/SLRT Scope/' and the model will no longer check for the Simulink Real-Time license.
@DEEPA - I'm not sure what is causing the "Dot indexing..." error. Make sure you run the startup script and that you are in the right release.
@Emmanuel - when you download the zip file here, it includes the R18b version of the model.
Hello Steve ...is there a version of the simulation for r2018b?... we use a r2018b licensed academic version of MATLAB Simulink in our university...can you please help..?
HI,
After opening the model im getting a run time error "Error using PmSli.RunTimeModule/compareBlockToSnapshot
Dot indexing is not supported for variables of this type." can anyone help me to get through this please.
Hi,
Thank you for sharing the model. But unfortunately, I can't run it. Every time I run the model I get the following error
''"Failed to load library 'slrtlib' referenced by 'HEV_SeriesParallel/SLRT Scope/Scope (SLRT) " . If anyone knows how to solve this issue, please let me know.
Thank you.
Hi,
Thank you so much for the model, its great! I sadly cannot get it to run as it can't find simulink real time, and I have found out that I cannot download this on Mac, is this correct, and is there someway of getting past this problem apart from using another computer?
Many thanks for any help
@asal - you can contact me via my profile page on MATLAB Central File Exchange.
Mr. Miller,
I am running the simulation in 2018b and I am trying to figure out how to switch drive cycles and how to modify a drive cycle to have my own time and speed values. I have edited the drive cycle variable and saved it, but it does not have an effect on the system when I run it. Any help on how to make my own custom drive cycles would be greatly appreciated.
Thank you,
-Brandon
For Latest Simulation Projects,Please Contact http://asokatechnologies.in/
Hi
I tried so many times but didn't work. If anyone removes the "logic_mode" error. Please share the details.
Thanks
Dear Steve, Thanks for the great effort. It's really amazing! Do you have any presentation or documents with more details and explanations about this model?
Cheers!!
How to remove the logic-mode error. I tried so many times but not working.
Please help me out
Dear Steve
Please share email address.
The purpose of this e-mail is to ask some questions about "Hybrid-Electric Vehicle Model in Simulink 2016a" that you developed.
I couldn't find the engine efficiency map from the contents of the HEV_ParallelSeries_R16a file.
Does the engine efficiency map exist in Model 2016a?
If it exists, would you mind sending me the data on the map?
If it doesn't exist, can I draw the contour for the efficiency map of the engine?
How do I draw it?
Also, I would like to control the engine by utilizing the engine torque.
How do I control the engine by utilizing the engine torque instead of the engine speed?
I look forward to hearing from you.
Thank you.
Could you please make a video on how to tune PI controller in system like your HEV model.
There are many videos on PIDs tuning but none covers a system as complex as HEV.
Thank you
Sajad
what is the workflow to tune Kp and Ki values for vehicle model built in simscape? How did you to tune Kp and Ki for several PIs in this model?
Your colleagues in MATLAB Answers referred me to some pages in Matlab help documentation. I used those methods for my simscape-based HEV model and they don't work. Kindly,do not do the same.
The PIs in your model work perfect. Can you please tell us how did you do that? and what's the workflow?
Thank you.
Sajad
Hi Kelsey (and others) - if the release your are looking for is not in the zip file you download, please email me directly with your email address and I can send you the exact version you need. Due to the 20 MB limit on the submission file size, I cannot include all releases here. There is a big difference between the R2014a and R2016a releases, one where it is best if I give you my version. --Steve
Hi Steve,
I am running MATLAB_R2016b. I have loaded the 2014a version and have run the startup-file. However, there appears to be two library's missing from the folders and I get an error when the model tries to run the error comes from 'sdl_lib' where it appears that 'HEV_SeriesParallel/Engine/Generic Engine' and 'HEV_SeriesParallel/Power Split Device /Planetary Gear' are missing. Do you have these?
Thanks - Kelsey
Hi Aymen - can you tell me which version of my submission you used, and which version of MATLAB you opened it in? Then I can fix the submission for everyone. The units 'C' need to be changed to 'degC'. --Steve
Thank you for this impressive work, but i have this problem can you help me please.
Error compiling Simscape network for model HEV_SeriesParallel.
Caused by:
['HEV_SeriesParallel/Electrical/System Level/DC-DC Converter/Thermal Model/Thermal Mass']: Type mismatch for equation. The left hand side of the equation is {[1x1 double], 'C'} and the right hand side of the equation is {[1x1 double], 'K'}.
T = {[1x1 double], 'C'}
M.T = {[1x1 double], 'K'}
In foundation.thermal.elements.mass (line 44)
HOW CAN I GET YOUR PUBLISHED JOURNAL PAPERS ON HYBRID ELECTRIC VEHICLE?
下载好了,也打开模型了,界面挺好看的,唯一的问题是看不明白....
Error in 'HEV_SeriesParallel/Control/Battery Charge Controller/Engine Model': Initialization commands cannot be evaluated.
Caused by:
Undefined function or variable 'drive_preinitmask'.
please help
An Error occured. As followed, using the 014a version, hope you can modify it
Error compiling Simscape network for model HEV_SeriesParallel.
Caused by:
['HEV_SeriesParallel/Electrical/System Level/DC-DC Converter/Thermal Model/Thermal Mass']: Type mismatch for equation. The left hand side of the equation is {[1x1 double], 'C'} and the right hand side of the equation is {[1x1 double], 'K'}.
T = {[1x1 double], 'C'}
M.T = {[1x1 double], 'K'}
In foundation.thermal.elements.mass (line 44)
Hi every body,
i am not able to see this model in Simulink environment after downloading the zip file, Please help me to convert/check in Simulink environment as block diagram.
Thanks :-)
Hi There !!
I downloaded the Hybrid-Electric Vehicle Model proposed by Steve Miller , the block of drive cycle is not in the model.I have two questions
1) How can I add the drive cycle block in the model ? I think changes in the model is not possible
2) Is this the correct drive cycle file ?
https://au.mathworks.com/matlabcentral/fileexchange/46777-driving-cycle--simulink-block-
Hello Miller. I am working on HEV , I want to do some modification in electrical system level and in battery block . In fact, I want to modify the block, however, the block shows locked. Is it possible that I can unlock the block and can modify as per my condition.
it's really amazing...do you maybe also have a model of a battery electric vehicle? thx : )
i have downloaded hybrid electric vehicle model and extracted it...now what should i do to load it into matlab
I sorted it out. I didn't have the driveline license previously that is why I cannot modify the engine block. Thanks.
Hello, I want to change the engine to an diesel engine. How can I do that? Thanks.
Thank you for the citation link, Steve.
I have been meddling with this model for over a year now. I have been able to modify it into a different HEV configuration and now have been able to make it work with my own controller. however, when it comes to optimizations, there are still things that are rather unclear. most notably is the SoC of the battery. I tried all 3 variants and no matter what value I put as the initial SOC, it will always start at 99%+ SOC and randomly regenerates to over 100% even when the Generator is only set to run at 30% and stop at 99% in the original state-flow. why is that? SOC is a huge part in HEV power-flow control design and if anybody is able to help, it is highly appreciated.
Hello FLAVIO ROCHA, I have some knowledge about this model, just a little, so if you have specific questions about it do not hesitate.
cordially. SAID BELHADJ.
Hello,
Do you have any presentation or documents with more details and explanations about this model? I already watched the vídeo and is pretty awesome, but i'm looking for something with more details about Management System and Mode logic.
Thanks in advance
Hello Yosra Attia. How are you doing?
sorry for my late answer.
Here you work with which version of matlab (year).
You open your file in question. And then you open the star_up file and execute it. And then you send me the error message. Said Belhadj.
Hello said belhadj
Thanks for your reply. Unfortunately, I tried this before and it didnèt work. do you have another suggestionÉ
hello FNU Dhanraj, You receive an error while running the model because you have an undefined variable "UrbanCycle4" or class "UrbanCycle4.time". "
You have to execute the files containing this variable, for that you will go in the folder Scripts_Data you select the files UrbanCycle1.mat, UrbanCycle2.mat, UrbanCycle3.mat, UrbanCycle4.mat, UrbanCycle5.mat.
Normally it will work, if not you send me a message.
%%%%%%%%%%%%%%%%%%%
Hi Yosra Attia,
You receive an error while running the template that is "Unable to load library 'slrtlib' referenced by 'HEV_SeriesParallel / SLRT Scope / SLcope (SLRT)'
You click on the file startup_HEV_Model.m it will define the library used.
Normally it will work.
%%%%%%%%%%%%%%%%
Hi, Aditya Tiwari To open the file you click on the matlab file, startup_HEV_Model.m
And also you execute the data containing in the folder Scripts_Data normally it will work otherwise contact me.
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
Hi hemant sharma,
Why did you use the stepper motor instead of the synchronous motor, this is a question for Mr. Miller, otherwise if you want to use the synchronous motor there is in the library.
Why have you used stepper motor instead of synchronous motor
can anybody tell me how to open the file
Thanks Steve for the great effort. It's really amazing!
I do get an error while running the model and I appreciate your help. The error is "Failed to load library 'slrtlib' referenced by 'HEV_SeriesParallel/SLRT Scope/Scope (SLRT) "
Hope to hear from you soon.
I am getting an error while running the model " Invalid setting in 'HEV_SeriesParallel/Kph Demand/FTP75' for parameter 'VariableName'.
Caused by:
Error evaluating parameter 'VariableName' in 'HEV_SeriesParallel/Kph Demand/FTP75'
Undefined variable "UrbanCycle4" or class "UrbanCycle4.time"."
Please assist in rectifying this error. I am running in matlab 2016 A
steve greetings and thank you for this very interesting work.
here I have a question if possible I want a help from you regarding the replacement of the battery with a fuel cell, I'm stuck at the management level of energy supply.
cordially.
getting error on thermal mass while executing the model.
['HEV_SeriesParallel/Electrical/System Level/DC-DC Converter/Thermal Model/Thermal Mass']: Parameter check for block 'HEV_SeriesParallel/Electrical/System Level/DC-DC Converter/Thermal Model/Thermal Mass' failed.
Caused by:
Error: File: C:\Program Files\MATLAB\R2016a\toolbox\physmod\simscape\library\m\+foundation\+thermal\+elements\mass.ssc Line: 14 Column: 12 Unexpected MATLAB expression.
Please suggest
why we are not able to connect any other simulink components to model.
Please suggest
While executing the model , getting the following erroe.
Please help me out .
['HEV_SeriesParallel/Electrical/System Level/DC-DC Converter/Thermal Model/Thermal Mass']: Parameter check for block 'HEV_SeriesParallel/Electrical/System Level/DC-DC Converter/Thermal Model/Thermal Mass' failed.
Caused by:
Error: File: C:\Program Files\MATLAB\R2016a\toolbox\physmod\simscape\library\m\+foundation\+thermal\+elements\mass.ssc Line: 14 Column: 12 Unexpected MATLAB expression.
hello steve,
while running the 2014 file I am getting error "Error in startup_HEV_Model (line 14)
HEV_Model_PARAM"
could you please suggest
Hi Steve, I am working on series-parallel model using MPC controller to keep track of State of Charge.
Can you help me about how to adjust mpc block in the controller section of your model?
Hello Mr. Miller, here I have questions about the design of the hybrid electric vehicle of the model in Simulink for matlab 2015
in the "HEV_ParallelSeries_R14a" "Libraries" "Electrical" "HEV_Electrical_Lib" the block named "Detailed" "Synchrounous Motor and Drive" "vect controller" you used any type of vector control? that is to sliding mode? what type? the parameter "Teb" it represents what? and how to recover its value in the model?
cordially.
Said Belhadj.
Mr. Miller greetings, here I simulated the startup file and then the HEV Model HEV_SeriesParallel model and displays the following error:
""Failed to find library 'elec_lib' referenced by 'HEV_SeriesParallel/Electrical/System Level/Battery/Generic/Generic Battery'. This library must be on your MATLAB path.""
I inform you that I work with the matlab version 7.6.0 (R2008a)
Thank you for your help.
cordially.
Said Belhadj.
Mr. Miller greetings and thank you for your labor hybrid vehicle model.
here I would like to apply control of my system trying to follow your model.
I start with the electrical part.
here is for the file named: HEV_SeriesParallel we find the block: Electrical System Level, so I would complete my block with the data on the basis of your block.
my question is in the file named: HEV_Electrical_Lib,
we find the block named: System Level, I am interested in the block named: Synchronous Motor & Drive, which Mot_TReq entry that represents what?
and three outputs: Mot_Sh ??? and just before the exit speed sensor1 ???
the other two outputs is feeding via the chopper? no?
also when i click in this block Synchronous Motor & Drive and was named the block: elec_lib / Actuators & Drivers / Rotational Actuators / Servomotor, is what plays the role of an electric motor like the one I used ? a synchronous motor with permanent magnets.
I am waiting for your answer .
cordially.
Said Belhadj.
hi steeve,, this is a great effort by u but when I run this model get this error ,can u please help me
Unable to locate a C-compiler required by Stateflow and MATLAB Function blocks.
Use 'mex -setup' to select a supported C-compiler.
thanks
Hello Steve;
Thank you for sharing the model. It is really amazing with all the possible detail required to start work with.
I am trying to get start with the simulink model, but it is showing me error, "Failed to load library 'elec_lib' referenced by 'HEV_SeriesParallel/Electrical/System Level/Synchronous Motor & Drive/Servomotor".
Please suggest
Hello Steve, basically what I would like to do is incorporate the steering system here, but I am not sure I hope not to bother you but could I ask your recommendation on how might it be incorportated? Thanks again great day
Greetings Steve,
First of all I would like to congratulate you on your effort it is really an amazing job. I have a strong interest in trying to simulate an autonomous path, I was wondering if you could give me advise to which variables would be the best to work with in the model.
m
does the vehicle dynamics account for the rollimg frictional force acting on the wheels
Hello Steve,
I would like to change most of this program to fit only a series hybrid configuration. As of now I believe disabling the power split device and enabling the electric motor at all times to charge the generator will achieve this effect to some extent. I am curious what other parameters perhaps in control systems I may need to change to achieve a fully series hybrid configuration?
Thank you
@mclau152 - also note that there is a Simulink preference setting you can disable that will let you open the R2016a model in R2015b. I haven't tried this R16a->R15b, but in my experience with other releases you'll get a lot of warnings and then the model will just run.
@nadia -- what do you mean by a linear engine speed model?
@Steve Miller-Hi, I am a Phd student, I thank you for the development of this model is realized well. I need the linear engine speed model, can you give it to me please?, I will be very grateful, thanks.
@Steve Miller-Hi, I am a student at the university, I thank you for the development of this model is realized well. I need the linear engine model, can you give it to me please?, I will be very grateful, thanks.
@mclau152 - the zip file you downloaded also has versions prior to R2015b. Try using one of those (for example, the folder HEV_ParallelSeries_R14a).
@chandresh - I don't have an HEV two wheeler yet. Would like to find the time to build one, though. :)
Hello,is there any model for HEV two wheeler?
Hello, I am currently using Matlab r2015b with all necessary addons. I cannot run the latest update r2016 as I get the following incompatibility error:
Error using startup_HEV_Model (line 27)
Model 'HEV_SeriesParallel' was created with a newer version (R2016a) of Simulink
To disable this error message, use Simulink preferences.
To create a model that is compatible with this version of Simulink, load the model in
Simulink R2016a and select File > Export Model to > Previous Version.
Is there someone with r2016a who can do a file export to r2015b so I can use the latest update? Or is this method incompatible with the latest version.
Thank you.
@Andy Ang - the Servomotor is a block in Simscape Electronics. You need to have that product installed to run the example.
@Moustafa -- you can connect different transmissions to the components in this model. The control system will also need to be modified if you change the transmission.
Dear Steve,
Thanks for making this model. But when running the model on the system level I get the following error:
Failed to load library 'elec_lib' referenced by 'HEV_SeriesParallel/Electrical/System Level/Synchronous Generator & Drive/Servomotor'
I have looked into the electric library, but could not find the Servomotor.
Thanks steve..the model is a real eye opener for me.
Thanks, Steve, for all this great work. Can I ask you if it's possible to connect a dual clutch transmission to this model and if I can connect an automatic transmission to it in another case?
Meera V - enter subfolder HEV_ParallelSeries_R14a, run startup_HEV_Model, and press run button. I just tested this and it worked fine. Your warning indicates you did not run the startup_HEV_Model file.
Failed to load library 'HEV_Electrical_Lib' referenced by ''. What should i do to make the model run? I have MATLAB VERSION 2015a.
Thanks for this, Steve. I have been keeping my eyes on this model and would like to use it in my research. May somebody please provide me with any reference using this particular model so I can put this in my reference?
and is it possible to modify the model into TtR HEV?
i get this error while running the model
Making simulation target "HEV_SeriesParallel_sfun", ...
C:\Users\Kartik\Documents\MATLAB\HEV_ParallelSeries\slprj\_sfprj\HEV_SeriesParallel\_self\sfun\src>"C:\Program Files\MATLAB\R2014a\sys\lcc64\lcc64\bin\lccmake.exe" -f HEV_SeriesParallel_sfun.lmk
"C:\Program Files\MATLAB\R2014a\sys\lcc64\lcc64\bin\lcc64.exe" -dll -noregistrylookup -c -Zp8 -DLCC_WIN64 -DMATLAB_MEX_FILE -DMX_COMPAT_32 -nodeclspec -I"C:\Program Files\MATLAB\R2014a\sys\lcc64\lcc64\include64" -I"C:\Program Files\MATLAB\R2014a\extern\include" -I"C:\Program Files\MATLAB\R2014a\simulink\include" -I"C:\Program Files\MATLAB\R2014a\stateflow\c\mex\include" -I"C:\Program Files\MATLAB\R2014a\rtw\c\src" -I"C:\Users\Kartik\Documents\MATLAB\HEV_ParallelSeries\slprj\_sfprj\HEV_SeriesParallel\_self\sfun\src" "HEV_SeriesParallel_sfun.c"
C:\Program Files\MATLAB\R2014a\sys\lcc64\lcc64\bin\lccmake.exe: Error code -1073741819
It also says that icc64.exe has stopped working when i start simulation of this model. Earlier it used to run fine on my computer. But now , the model is giving this error. Can you please help?
Hi, thank you for providing this great HEV model.
Does it possible to improve the controller with PID+Fuzzy logic controller for better performance and efficiency?
Thank you very much
Hi
I am using a 2015b and it doesn t have simdriveline.
i keep getting this: error Failed to load library 'driveline' referenced by 'power_HEV_powertrain/Electrical Subsystem/SIm//SDL'. how to fix that error?
Hi steve,
got the following errors (bunch of errors) while running the simulink model..
Warning: Loading model 'HEV_SeriesParallel' generated with a newer version (R2014a)
of Simulink
In general\private\openmdl at 13
In general\private\openslx at 9
In open at 159
In uiopen at 196
Warning: HEV_SeriesParallel (blockdiagram.xml, line 27): Error evaluating
'PreLoadFcn' callback of block_diagram 'HEV_SeriesParallel'.
In general\private\openmdl at 13
In general\private\openslx at 9
In open at 159
In uiopen at 196
etc etc.. please help me with these errors. thanks in advance
Hi steve,
got the following errors (bunch of errors) while running the simulink model..
Warning: Loading model 'HEV_SeriesParallel' generated with a newer version (R2014a)
of Simulink
In general\private\openmdl at 13
In general\private\openslx at 9
In open at 159
In uiopen at 196
Warning: HEV_SeriesParallel (blockdiagram.xml, line 27): Error evaluating
'PreLoadFcn' callback of block_diagram 'HEV_SeriesParallel'.
In general\private\openmdl at 13
In general\private\openslx at 9
In open at 159
In uiopen at 196
etc etc.. please help me with these errors. thanks in advance
Perfect!!!
Can you give me a file for MATLAB 2011 ?
using i m using R2014a
following error
Unable to load block diagram 'HEV_Electrical_Lib'
help me out reply soon
it fails to load library plz help me out with this problem.
Hi, thank you for providing this excellent model. I'm a student in university. I want to design a controller for the power split ratio(as you did by the state flow), but in my way I need to know the transfer function of the system especially the engine, so I wonder how can I get these transfer function.
Thank you very much
Hi, I am a student at the university, I thank you for the development of this model is realized well. I need the transfer function for this engine model, can there anybody give me the transfer function?, I will be very grateful. thanks
Hi,
Can you please tell me how to use Model Predictive control for this model.
This model uses PID controller, I want to use MPC instead. Please guide me how to do it.
Thanks
Why there is no R13b version? Can you post one?
Thank you!
Hi Steve!
I have a Problem with the Model, i tried to use a port of it and now it says:
Initial conditions solve failed to converge.
...Equations of one or more components may be dependent or inconsistent. This can cause problems in transient initialization. Here is the set of components involved:
'SystemSimulation/Subsystem1/Ideal Rotational Motion Sensor'
Equation location is:
'C:/Program Files/MATLAB/R2013b/toolbox/physmod/simscape/library/m/+foundation/+mechanical/+sensors/angular_velocity.ssc' (line 45)
'SystemSimulation/Subsystem1/Ideal Torque Source'
Equation location is:
'C:/Program Files/MATLAB/R2013b/toolbox/physmod/simscape/library/m/+foundation/+mechanical/+sources/torque.ssc' (line 35)
Any hints?
Thanks!
Hi Steve ,
Great Job !
When I run startup_HEV_Model.m it is showing an error
"
Undefined function or variable 'HEV_Model_PARAM'.
Error in startup_HEV_Model (line 14)
HEV_Model_PARAM
"
Pls help me ASAP.
How to connect BLDC motor controller(AC7) to tires(magic formula) in simulink,It seems parameters are not matching.please help.....
Nice Steve Sir, I want to connect PHEV car with PV array for charging purpose...Can u help me in this regarding..and which version is suitable for that
electric vehicles
i could not get the file
I would like to modify this model for public transportation which means that I need to change the vehicle dynamics. When I do that (meaning that I increase the vehicle mass and change CG) the programs crashes. Do you have a possible solution for this problem? Best regards...
I would like create model for public transportation which means that I need to change the vehicle dynamics. When I do that (meaning that I increase the vehicle mass and CG) the programs crashes. Do you have a possible solution for this problem? Best regards...
I can't open the file :(
Dear Steve, Thank you very much for the great model.
I wonder if the files and codes for connecting the model to the optimization algorithm would also be available?
I have a model of PHEV power-train which I want to integrate with an optimization algorithm, and I would like to examine what requirements I should care about in making such connections.
I will be grateful if such part is available and possible to be exchanged.
Thanks again.
Hello Steve,
I have been able to run this simulation but I have little experience with MATLAB, therefore I did not understand some of the information. What I will like to do though is connect a Solar Panel Model to this Model and see what the level in the state of charge (SOC) of the battery will be after couple of hours. Thanks in advance
@MD Rashidul -- did you run the startup_HEV_Model.m? It is looking for a library file that needs to be on your path.
Hi,
while running 'HEV_ParallelSeries_10b / HEV_SeriesParallel', I got the following error. Would you please suggest something?
Thanks.
Error:
Failed to load library 'HEV_Electrical_Lib' referenced by 'HEV_SeriesParallel/Electrical'
Caused by:
Unable to load block diagram 'HEV_Electrical_Lib'
I think the value of Motor_en in cruise mode(in the control stateflow, on the innermost level)should be '0', right?
Dear Steve, i'm using R2011b.
And i found many errors. How i can open the model?
Thanks
would you please tell me that how i can obtain C code, if i succeed to run simulation.
regards.
Hello Steve,
i'm trying to run your system in parallel mode with different stateflow method.since i can't make change in electric subsystem, i put zero for generator required torque. by doing so i disabled Gen.however, when i want to run the simulation, vehicle is always in electric alone mode and doesn't switch to other modes.in other word, motor is the only working power source and engine speed becomes negative. but when i return Gen to the system, everything works nice. another issue is that do i need to change sun ring arrangement of the planetary gear to be operated in parallel HEV. please help me in these issues.
steve i am using R2009b.can i run this file in that??? i'm facing lots of error in that.. please make me clear.
Thanks for your comments, Abhishek.
The Vehicle Dynamics Full subsystem has aerodynamic drag included in it. The "Vehicle Body" block includes aerodynamic drag. The parameters for Drag Coefficient and Frontal Area are included in that calculation. See the documentation for that block: http://www.mathworks.com/help/toolbox/physmod/sdl/ref/vehiclebody.html. --Steve
Hi Steve,
First of all I should congratulate you for your wonderful work.
While I was browsing through the "vehicle dnamics full" subsystem I found that you have not included the aerodynamic drag that you included in "Vehicle Dynamic Simple" subsystem.
I am curious to know tha answer.
Anticipating a soon reply.
Hello Steve, I must conglaturate you because of the model. I'd like to ask you, where did you find documentation to create vectorial controller?
Thanks.
Good time. Can you send me the model code in C language?
Dear Steve,when I use this model to simulate a HEV system in matlab 2010b,it suggests that :Unable to load block diagram 'sdl_lib'.Can you tell me the reasons please?
Dear Steve,when I use this model to simulate a pure EV system in matlab 2010b,it suggests that :Unable to load block diagram 'sdl_lib'.Can you tell me the reasons please?
Basil -- try the R2010b version that is included in the submission. It may work with R2010a with some warnings.
BearCat -- you can delete the gauges blocks. Road height can be added, but the model currently assumes flat roads.
Lucas -- I haven't parameterized the other battery types. I suggest pulling the battery model directly from the Simulink browser and entering the values there.
can i run this model with 2010a.
Hi,
I am also interested in what BearCat asks. I need to be able to compare EVs to HEVs to conventional cars (internal combustion only).
Any tips on how to configure these types of vehicle?
Also, when I change the battery type from Ni-Hydride to anything but Li-Ion the simulation fails. I would be interested in comparing the different battery chemistries.
Thanks
It cannot find gaugeslibv2.mdl when I start the simulation!
Does the simulation by any chance also consider fuel consumption depending on road topography?
These might be noob questions. But I hope you will answer anyway :-)
Dear Steve, if I want to use this model to simulate a pure EV system, how should I configure the model? I will highly apprecialte your help.
Thanks a lot. The above trouble has been removed. While, if I want to use this model to simulate a pure EV system, how should I configure the model?
curryxt -- are you running release 2010a? Do you have all required products? The missing files you mention are part of the Simscape and SimElectronics installation.
Sorry, when running, three models -elec_lib.mdl, fl_lib.mdl and 'nesl_utility.mdl cannot be founded ,also some blocks cannot get right parameter values.