File Exchange

## Hybrid-Electric Vehicle Model in Simulink

version 2.3 (15.7 MB) by

Model of a hybrid-electric vehicle with system-level and detailed variants of electrical system.

4.73077
35 Ratings

Updated

Editor's Note: Popular File 2014

This file contains a hybrid-electric vehicle model built using Simscape, Simscape Electronics, Simscape Driveline, and Simscape Power Systems 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.

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

https://www.mathworks.com/physical-modeling/

You may reuse this content, with or without modification, in your work.
[1] Miller, Steve (2017), Hybrid-Electric Vehicle Model in Simulink (https://www.mathworks.com/matlabcentral/fileexchange/28441) MATLAB Central File Exchange. Retrieved on <date you downloaded submission>

Ozan Ozay

Mr. Zhu

### Mr. Zhu (view profile)

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)

Ankit Jain

Hi every body,
Thanks :-)

Asim Anwar

### Asim Anwar (view profile)

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 ?

krishna veer

### krishna veer (view profile)

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.

Meng Zhang

### Meng Zhang (view profile)

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

Lu Wang

### Lu Wang (view profile)

I sorted it out. I didn't have the driveline license previously that is why I cannot modify the engine block. Thanks.

Lu Wang

### Lu Wang (view profile)

Hello, I want to change the engine to an diesel engine. How can I do that? Thanks.

Faizrizwan Sabri

### Faizrizwan Sabri (view profile)

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.

Flavio Rocha

### Flavio Rocha (view profile)

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.

Hello Yosra Attia. How are you doing?
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.

Yosra Attia

### Yosra Attia (view profile)

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.

hemant sharma

### hemant sharma (view profile)

Why have you used stepper motor instead of synchronous motor

can anybody tell me how to open the file

Yosra Attia

### Yosra Attia (view profile)

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.

FNU Dhanraj

### FNU Dhanraj (view profile)

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.

BOUBAKER Mohamed

RENJITH R SHENOI

### RENJITH R SHENOI (view profile)

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.

RENJITH R SHENOI

### RENJITH R SHENOI (view profile)

why we are not able to connect any other simulink components to model.

RENJITH R SHENOI

### RENJITH R SHENOI (view profile)

While executing the model , getting the following erroe.

['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.

RENJITH R SHENOI

### RENJITH R SHENOI (view profile)

hello steve,
while running the 2014 file I am getting error "Error in startup_HEV_Model (line 14)
HEV_Model_PARAM"

Talal Riaz

### Talal Riaz (view profile)

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.

Jianghui Xu

### Jianghui Xu (view profile)

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)
cordially.

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.
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.
cordially.

iqra rabia

### iqra rabia (view profile)

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

Abhay Kela

### Abhay Kela (view profile)

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".

Jose Ugarte

### Jose Ugarte (view profile)

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

Jose Ugarte

### Jose Ugarte (view profile)

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

Kartik Khanna

### Kartik Khanna (view profile)

does the vehicle dynamics account for the rollimg frictional force acting on the wheels

mclau152

### mclau152 (view profile)

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

Steve Miller

### Steve Miller (view profile)

@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.

Steve Miller

### Steve Miller (view profile)

@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. :)

chandresh trivedi

### chandresh trivedi (view profile)

Hello,is there any model for HEV two wheeler?

mclau152

### mclau152 (view profile)

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)
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.

Steve Miller

### Steve Miller (view profile)

@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.

Andy Ang

### Andy Ang (view profile)

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.

Meera V

### Meera V (view profile)

Thanks steve..the model is a real eye opener for me.

Moustafa Abouelkheir

### Moustafa Abouelkheir (view profile)

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?

Steve Miller

### Steve Miller (view profile)

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.

Meera V

### Meera V (view profile)

Failed to load library 'HEV_Electrical_Lib' referenced by ''. What should i do to make the model run? I have MATLAB VERSION 2015a.

Faizrizwan Sabri

### Faizrizwan Sabri (view profile)

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?

Kartik Khanna

### Kartik Khanna (view profile)

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?

Reynaldo Hartanto

### Reynaldo Hartanto (view profile)

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

omar mouline

### omar mouline (view profile)

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..

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
In general\private\openmdl at 13
In general\private\openslx at 9
In open at 159
In uiopen at 196

Hi steve,
got the following errors (bunch of errors) while running the simulink model..

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
In general\private\openmdl at 13
In general\private\openslx at 9
In open at 159
In uiopen at 196

Shiwei Xu

Perfect!!!

Harith Mohanan

Jalashwa

### Jalashwa (view profile)

Can you give me a file for MATLAB 2011 ?

John Knight

Nitish sharma

### Nitish sharma (view profile)

using i m using R2014a
following error
Unable to load block diagram 'HEV_Electrical_Lib'

Nitish sharma

### Nitish sharma (view profile)

it fails to load library plz help me out with this problem.

Chung

### Chung (view profile)

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

### Hemanth kumar Varada Reddy (view profile)

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

Ramoz

Qifei Hang

### Qifei Hang (view profile)

Why there is no R13b version? Can you post one?

Qifei Hang

Thank you!

Qifei Hang

Julian

### Julian (view profile)

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!

shailesh

### shailesh (view profile)

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.

girish s

Roopesh Mishra

### Roopesh Mishra (view profile)

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

Yu Junquan

abdussalam omar

### abdussalam omar (view profile)

electric vehicles

abdussalam omar

### abdussalam omar (view profile)

i could not get the file

Ahmet Unsal

### Ahmet Unsal (view profile)

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...

Ahmet Unsal

### Ahmet Unsal (view profile)

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 :(

Zhila

### Zhila (view profile)

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.

Hakeem Akorede Shittu

### Hakeem Akorede Shittu (view profile)

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

Steve Miller

### Steve Miller (view profile)

@MD Rashidul -- did you run the startup_HEV_Model.m? It is looking for a library file that needs to be on your path.

MD Rashidul

### MD Rashidul (view profile)

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'

Loukia

lll

### lll (view profile)

I think the value of Motor_en in cruise mode(in the control stateflow, on the innermost level)should be '0', right?

indra setiawan

### indra setiawan (view profile)

Dear Steve, i'm using R2011b.
And i found many errors. How i can open the model?
Thanks

Deepak AGARWAL

### Deepak AGARWAL (view profile)

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.

KARTHIKEYAN

### KARTHIKEYAN (view profile)

steve i am using R2009b.can i run this file in that??? i'm facing lots of error in that.. please make me clear.

Steve Miller

### Steve Miller (view profile)

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

Abhishek Rai

### Abhishek Rai (view profile)

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.

Andres RM

### Andres RM (view profile)

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.

Max

### Max (view profile)

Good time. Can you send me the model code in C language?

Wencong

lee

### lee (view profile)

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?

lee

### lee (view profile)

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?

Steve Miller

### Steve Miller (view profile)

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.

Basil Aljorani

### Basil Aljorani (view profile)

can i run this model with 2010a.

Lucas Fuentes

### Lucas Fuentes (view profile)

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

BearCat

### BearCat (view profile)

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 :-)

curryxt ??

### curryxt ?? (view profile)

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.

curryxt ??

### curryxt ?? (view profile)

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?

Steve Miller

### Steve Miller (view profile)

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.

curryxt ??

### curryxt ?? (view profile)

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.

 12 Oct 2017 2.3 Added R2017b version. 15 Mar 2017 2.2 Added R2017a version and text for citing submission in other works. Made startup file compatible with Mac. 15 Sep 2016 2.1 Added R2016b version 1 Sep 2016 2.0.0.1 Updated license 7 Mar 2016 2.0 Added R2016a version that shows Simscape runtime parameters 17 Apr 2014 1.13 Fixed link to webinar. 9 Apr 2014 1.12 Minor update to R2014a image. 18 Mar 2013 1.9 Zip now contains R2013a version. Also includes versions for R2011b, R2011a, and R2010b. 29 Jul 2011 1.7 Updated HEV_Model_PCT.mdl, removing link to old content. 21 Apr 2011 1.6 Updated for R2011a release. Uses new Simscape-based SimDriveline library, and includes fuel economy calculation via imported data fitted to a surface using Curve Fitting Toolbox. R2010b version using original SimDriveline library still included. 15 Apr 2011 1.5 Updated for R2011a. 1. Uses new Simscape-based SimDriveline library (includes gear loss models). 2. Added calculation of fuel economy using Curve Fitting Toolbox. Zip file includes both R2010b and R2011a versions. 22 Mar 2011 1.3 Updated release (R2010b) and required products (Simulink) 15 Mar 2011 1.2 Update to fix simulation issue in R2010b. Update for R2011a coming soon... 13 Dec 2010 1.1 Fix typo in description.
##### MATLAB Release
MATLAB 9.3 (R2017b)

Play today