All Courses
All Courses
Courses by Software
Courses by Semester
Courses by Domain
Tool-focused Courses
Machine learning
POPULAR COURSES
Success Stories
1.What is the difference between mapped and dynamic model of engine, motor and generator? How can you change model type? Difference between mapped and dynamic model of Engine: Type Implementation When to Use Mapped CiMappedEngine SiMappedEngine Model uses a set of steady-state lookup tables to characterize engine…
Praveen Kumar E S
updated on 16 Jan 2022
1.What is the difference between mapped and dynamic model of engine, motor and generator? How can you change model type?
Difference between mapped and dynamic model of Engine:
Type |
Implementation |
When to Use |
|
---|---|---|---|
Mapped |
|
Model uses a set of steady-state lookup tables to characterize engine performance. The tables provide overall engine characteristics, including actual torque, fuel flow rate, BSFC, and engine-out exhaust emissions. |
|
Dynamic |
|
Model decomposes the engine behavior into engine characteristics that are separated into lower-level components. By combining components in this way, the models capture the dynamic effects. |
|
Difference between mapped and dynamic model of Motor:
Type | Implementation |
Mapped motor | The Mapped Motor block implements a mapped motor and drive electronics operating in torque control mode.The output torque tracks the torque reference demand and includes a motor-response and drive-response time constant. Use the block for fast system-level simulations when you do not know detailed motor parameters, for example, For motor power and torque tradeoff studies.The block assumes that the speed fluctuations due to mechanical load do not affect the motor torque tracking. |
Dynamic motor |
|
Difference between mapped and dynamic model of Motor:
Type | Implementation |
Mapped Generator | This is also similar to mapped motor modeling where the input values for generator blocks are predefined or taken from the lookup tables here also simulation time is very less |
Dynamic Generator | This model also representts an actual generator working in a real-time enviroment, where the output values calculated continuously according to change in input values as the equation is implemeting. Simulation time is more compared to the mapped generator |
The below chart shows the difference between Mapped and Dynamic Models and also the Effects on Component or Parts for Simulation
How can you change model type:
After entering into passenger Block then we need to go into Electric plant then into motor there we find MotGenEvMapped and MotGenEvDynamic, MotGenEvMapped is by default selected as a model type for motor.
Here we are choosing EV as an example
Then after clicking on the modeling section and after that in design block, we will select the variant manager option. After the Variant manager window gets opened.
Then by clicking on the passenger car expand option there will electric plant option that will expand and that will get both battery and motor
We are taking motor as an example
Then after expanding the motor option we will get
So that default one in MotGenEvMapped that is changed into MotGenEvDynamic
2. How does the model calculate miles per gallon? Which factors are considered to model fuel flow?
Theory:
Miles per gallon gasoline equivalent is a measure of the average distance travelled per unit of energy consumed. MPG is used by the United states Environmental Protection Agency (EPA) to compare energy consumption of alternative fuel vehicle , plug in hybrid electric vehicle and other advanced technology vehicles with the energy consumption of conventional IC vehicles rated in miles per U.S.gallon
The unit of energy consumed is deemed to be 33.7 Kw without regard to the efficiency of conversion of heat energy into electrical energy, also measured in kilowatt hours. The equivalence of this unit to energy in a gallon of gasoline is true if and only if the heat engine, generating equipment, and power delivery to the car battery are 100% efficient. Actual heat engines differ vastly from this assumption.
The EPA gives each Vehicle three different MPG ratings, as all car leasing notes
MPG does not necessarily represent an equivalency in the operating costs between alternative fuel vehicles and the MPG rating of internal combustion engine vehicles due to the wide variation in costs for the fuel sources regionally since the EPA assumes prices that represents the national averages. Miles per gallon equivalent cost for alternate fuel can be calculated with a simple conversion to the conventional MPG. See conversion to MPG by cost below
Formula for the Miles per Galon
Model calculate miles per gallon:
To calculate the fuel flow, Vehicle speed and battery power are taken into consideration and in Hybrid Electric Vehicle model has Separate blocks to calculate the MPG that has Shown below.
Inside the Performance Calculation block.
Fuel Consumption Vs Fuel economy:
Fuel consumption and fuel economy are two phrases that are sometimes used interchangeably but have very different meanings. The core difference involves fuel consumption discussing how much fuel a car consumes to go a certain distance and fuel economy measures how much distance a car gets out of fuel. Therefore, they have an inverse relationship While the meanings are similar, there is a slight difference worth noting . Fuel Consumption measures the amount of fuel a car consumes to go a specific distance. It is expressed in litres—or in countries that use the imperial system, miles per 100 gallons. For example, a Volkswagen Golf TDI BlueMotion has one of the best fuel consumption ratings, requiring just 3.17 litres to go 100 Kilometers. Therefore, the smaller the value, the better the rating is.
Fuel economy is measured in miles per gallon (or in electric Vehicle, Miles per Galon equivalent(MPG), and refers to how far a car can go using a set amount of fuel. Since this is the inverse of fuel consumption, the larger the value, the better the rating. Sometimes, the term fuel efficiency is used. Its important to note that this is a colloquial term which is used in place of fuel economy. However, a true fuel efficiency should be expressed by a percent which measures how much of the fuel is used to power the movement of the car, vs the total amount of fuel that was injected.
factors are considered to model fuel flow:
3. Run the HEV ReferenceApplication with WOT drive cycle. Change the grade and wind velocity in the environment block. Comment on the results
Step1:
First, we need to open reference HEV application.Then hybrid electric vehicle reference application represents a full multimode hybrid electric vehicle (HEV) model with an internal combustion engine, transmission, battery, motor, generator, and associated powertrain control algorithms. Use the reference application for powertrain matching analysis and component selection, control and diagnostic algorithm design, and hardware-in-the-loop (HIL) testing. To create and open a working copy of the hybrid electric vehicle reference application project and enter into it.
By default, the HEV multimode reference application is configured with
Mapped motor and generator
1.5–L spark-ignition (SI) dynamic engine
This diagram shows the powertrain configuration.
Step2:
After Clicking on the HEV Reference Application file
autoblkHevStart
we directed to our Matlab window after reading the files inside that application we directed towards our HEV modeling section.
Step3:
Double -clicking on the drive cycle block then Block Parameter block open, then change drive cycle source into Wide open Throttle.
Also Change Speed, time, acceleration and Simulation time by changing the Drive cycle
Step4:
We are going to enter our simulation stop time program execution type on accelerator mode and then hit run to Simulate the results.
If the Grade and wind is zero then the Emission calculation is shown below
Step5:
Now we will change the grade Value and Wind in the X-direction in the environmental block to see a difference in results.
And keeping all other condition are same and running simulation for one more time.
We got these graph,
If the grade value is 5 and wind is 45 then the Emission Calculation is shown below
So we are going to write an observation about this graph.
Graph1: Trace Velocity Vs Actual Velocity
The Violet line indicates the trace velocity and the Orange line indicates the actual velocity by referring actual velocity line here we can see the vehicle requires from 2Sec to 20Sec time to achieve the maximum speed towards the targeted path by using battery power on after that Vehicle starts to deaccelerate.
Graph2: Engine motor Vs Generator Speed
As the battery is fully charged, at initial condition, only the motor speed is used which high at starting because of resistance due to slope and wind velocity, the engine speed is overlapped with generator speed indicating both running on the same RPM, initial there is no need for the engine and generator speed as the motor is fulfilling the requirement to achieve the maximum speed of the vehicle.Therefore they are at 0 Pm but when the battery will discharging or when the state of charge(SOC) becomes below 70% then the only engine will start to rotate to provide and maintain the speed of the vehicle and so far generator will also start to charge the battery at the same time hence their rpm are the same.
Graph 3: Engine torque, Motor Torque and generator torque.
As the battery is being used at the Start, So torque will also maximum for the motor in this case until case until the vehicle acquires its maximum speed. Once the Vehicle reached at constant speed the torque requirements will reduce.Here also when there is deacceleration, the torque value becomes constant once the battery goes into charging state cause now.Here engine torque is being used due to below 70% SOC. Also, generator torque will be negative indicating that electric motor is charging and in this period engine has to overcome the torque requirement of vehicle successfully.
Graph4: Battery Current
When a vehicle uses an electic motor then only it is used to generate the power of the motor, When the vehicle accelerates then there is no current is extracted to produce power for the motor.From the graph you also can see, the current requirement becomes stable when the battery charging mode is activated.
Graph 5:(State of Charge)
SOC is very important for battery-driven vehicles. From the graph it can be seen that the battery is used below 80% the state of charges goes down and the battery goes on charging mode through generator once the battery gets charged then its state of charge also increases and it won't fall down until battery is subjected to another operation.
Graph6:MPGE
The graph show miles per gallon equivalent to run the vehicle during the higher speed the fuel need is high as the vehicle deaccelerate the fuel requiremeent is less.
4.Keeping all other parameters same, compare the simulated results of hybrid and pure electric powertrains.
Hybrid Electric Vehicle Multimode Reference Application:
The hybrid electric vehicle reference application represents a full multimode hybrid electric vehicle (HEV) model with an internal combustion engine, transmission, battery, motor, generator, and associated powertrain control algorithms. Use the reference application for powertrain matching analysis and component selection, control and diagnostic algorithm design, and hardware-in-the-loop (HIL) testing. To create and open a working copy of the hybrid electric vehicle reference application project, enter
By default, the HEV multimode reference application is configured with:
Mapped motor and generator
1.5–L spark-ignition (SI) dynamic engine
This diagram shows the powertrain configuration.
This table describes the blocks and subsystems in the reference application, indicating which subsystems contain variants. To implement the model variants, the reference application uses variant subsystems.
Reference Application Element | Description | Variants |
---|---|---|
Analyze Power and Energy |
Double-click Analyze Power and Energy to open a live script. Run the script to evaluate and report power and energy consumption at the component- and system-level. |
NA |
Drive Cycle Source block — FTP75 (2474 seconds) |
Generates a standard or user-specified drive cycle velocity versus time profile. Block output is the selected or specified vehicle longitudinal speed. |
✓ |
|
Creates environment variables, including road grade, wind velocity, and atmospheric temperature and pressure. |
|
|
Uses the Longitudinal Driver or Open Loop variant to generate normalized acceleration and braking commands.
|
✓ |
|
Implements a powertrain control module (PCM) containing a hybrid control module (HCM) and an engine control module (ECM). |
✓ |
|
Implements a hybrid passenger car that contains engine, electric plant, and drivetrain subsystems. |
✓ |
|
Displays vehicle-level performance, battery state of charge (SOC), fuel economy, and emission results that are useful for powertrain matching and component selection analysis. |
Double-click Analyze Power and Energy to open a live script. Run the script to evaluate and report power and energy consumption at the component- and system-level.
The script provides:
An overall energy summary that you can export to an Excel spreadsheet.
Engine plant, electric plant, and drivetrain plant efficiencies, including an engine histogram of time spent at the different engine plant efficiencies.
Data logging so that you can use the Simulation Data Inspector to analyze the powertrain efficiency and energy transfer signals.
The Drive Cycle Source
block generates a target vehicle velocity for a selected or specified drive cycle. The reference application has these options.
Timing | Variant | Description |
---|---|---|
Output sample time |
|
Continuous operator commands |
|
Discrete operator commands |
The Longitudinal Driver
subsystem generates normalized acceleration and braking commands. The reference application has these variants.
Block Variants |
Description | ||
---|---|---|---|
Longitudinal Driver (default) |
Control |
|
PI control with tracking windup and feed-forward gains that are a function of vehicle velocity. |
|
Optimal single-point preview (look ahead) control. |
||
|
Proportional-integral (PI) control with tracking windup and feed-forward gains. |
||
Low-pass filter (LPF) |
|
Use an LPF on target velocity error for smoother driving. |
|
|
Do not use a filter on velocity error. |
||
Shift |
|
Stateflow® chart models reverse, neutral, and drive gear shift scheduling. |
|
|
Input gear, vehicle state, and velocity feedback generates acceleration and braking commands to track forward and reverse vehicle motion. |
||
|
No transmission. |
||
|
Stateflow chart models reverse, neutral, park, and N-speed gear shift scheduling. |
||
Open Loop |
Open-loop control subsystem. In the subsystem, you can configure the acceleration, deceleration, gear, and clutch commands with constant or signal-based inputs. |
To idle the engine at the beginning of a drive cycle and simulate catalyst light-off before moving the vehicle with a pedal command, use the Longitudinal Driver variant. The Longitudinal Driver subsystem includes an ignition switch signal profile, IgSw
. The engine controller uses the ignition switch signal to start both the engine and a catalyst light-off timer.
The catalyst light-off timer overrides the engine stop-start (ESS) stop function control while the catalyst light-off timer is counting up. During the simulation, after the IgSw
down-edge time reaches the catalyst light-off time CatLightOffTime
, normal ESS operation resumes. If there is no torque command before the simulation reaches the EngStopTime
, the ESS shuts down the engine.
To control ESS and catalyst light-off:
In the Longitudinal Driver Model subsystem, set the ignition switch profile IgSw
to 'on
'.
In the engine controller model workspace, set these calibration parameters:
EngStopStartEnable
— Enables ESS. To disable ESS, set the value to false.
CatLightOffTime
— Engine idle time from engine start to catalyst light-off.
EngStopTime
— ESS engine run time after driver model torque request cut-off.
The Controller
subsystem has a PCM with an HCM and an ECM.
The reference application has these variants for the ECM.
Controller | Variant | Description |
---|---|---|
ECM | SiEngineController (default) |
SI engine controller |
CiEngineController |
CI engine controller |
The HCM implements a dynamic embedded controller that directly determines the engine operating point that minimizes brake-specific fuel consumption (BSFC) while meeting or exceeding power required by the battery charging and vehicle propulsion subsystems.
To calculate the optimal engine operating point in speed and torque, the controller starts with a candidate set of discrete engine power levels. For each power level candidate, the block has a parameterized vector of torque and speed operating points that minimize BSFC.
The optimizer then removes power level candidates that are unacceptable for either of these reasons:
Too much power sent through the generator to the battery.
Too little power to meet charging and propulsion subsystem requirements.
Of the remaining power level candidates, the controller selects the one with the lowest BSFC. The controller then sends the associated torque / speed operating point command to the engine.
To implement a passenger car, the Passenger Car
subsystem contains drivetrain, electric plant, and engine subsystems. To create your own engine variants for the reference application, use the CI and SI engine project templates. The reference application has these subsystem variants.
Drivetrain Subsystem | Variant | Description | |
---|---|---|---|
Differential and Compliance |
All Wheel Drive |
Configure drivetrain for all wheel, front wheel, or rear wheel drive. For the all wheel drive variant, you can configure the type of coupling torque. |
|
Front Wheel Drive (default) |
|||
Rear Wheel Drive |
|||
Vehicle |
Vehicle Body 3 DOF Longitudinal |
Configured for 3 degrees of freedom |
|
Wheels and Brakes |
|
For the wheels, you can configure the type of:
For performance and clarity, to determine the longitudinal force of each wheel, the variants implement the Longitudinal Wheel block. To determine the total longitudinal force of all wheels acting on the axle, the variants use a scale factor to multiply the force of one wheel by the number of wheels on the axle. By using this approach to calculate the total force, the variants assume equal tire slip and loading at the front and rear axles, which is common for longitudinal powertrain studies. If this is not the case, for example when friction or loads differ on the left and right sides of the axles, use unique Longitudinal Wheel blocks to calculate independent forces. However, using unique blocks to model each wheel increases model complexity and computational cost. |
|
|
Electric Plant Subsystem | Variant | Description |
---|---|---|
Battery | BattHevMm (default) |
Configured with electric battery |
Generator | GenMapped (default) |
Mapped generator |
GenDynamic |
Interior permanent magnet synchronous motor (PMSM) with controller |
|
Motor | MotMapped (default) |
Mapped motor with implicit controller |
MotDynamic |
Interior permanent magnet synchronous motor (PMSM) with controller |
Engine Subsystem | Variant | Description | |
---|---|---|---|
Engine |
|
Dynamic SI Core Engine with turbocharger |
|
|
Dynamic naturally aspirated SI Core Engine |
||
|
Dynamic SI V Twin-Turbo Single-Intake Engine |
||
|
Dynamic SI V Engine |
||
|
Dynamic SI V Twin-Turbo Twin-Intake Engine |
||
|
Mapped SI Engine with implicit turbocharger |
||
|
Deep learning SI engine |
||
|
Dynamic CI Core Engine with turbocharger |
||
|
with implicit turbocharger |
After Clicking on the HEV Reference Application file
autoblkHevStart
we directed to our Matlab window after reading the files inside that application we directed towards our HEV modeling section.
If we run the simulation file 2474 sec under the drive cycle Source of FTP75.
From the above graph Trace Velocity is actual drive cycle source the Engine speed, Motor speed, generator speed actually it follow the drive cycle Velocity source if the drive cycle more speed is more likewise if drive cycle velocity is low speed is low and Motor torque perform based on the load.Battery current and Battery Soc Charges and discharge based on the load
Electric Vehicle Reference Application:
The electric vehicle reference application represents a full electric vehicle model with a motor-generator, battery, direct-drive transmission, and associated powertrain control algorithms. Use the electric vehicle reference application for powertrain matching analysis and component selection, control and diagnostic algorithm design, and hardware-in-the-loop (HIL) testing. To create and open a working copy of the conventional vehicle reference application project, enter
The electric vehicle reference application is configured with a mapped motor and battery. This diagram shows the powertrain configuration.
This table describes the blocks and subsystems in the reference application, indicating which subsystems contain variants. To implement the model variants, the reference application uses variant subsystems.
Reference Application Element | Description | Variants |
---|---|---|
Analyze Power and Energy |
Double-click Analyze Power and Energy to open a live script. Run the script to evaluate and report power and energy consumption at the component- and system-level. |
NA |
Drive Cycle Source block — FTP75 (2474 seconds) |
Generates a standard or user-specified drive cycle velocity versus time profile. Block output is the selected or specified vehicle longitudinal speed. |
✓ |
Environment subsystem |
Creates environment variables, including road grade, wind velocity, and atmospheric temperature and pressure. |
|
Longitudinal Driver subsystem |
Uses the Longitudinal Driver or Open Loop variant to generate normalized acceleration and braking commands.
|
✓ |
Controllers subsystem |
Implements a powertrain control module (PCM) with regenerative braking, motor torque arbitration and power management. |
✓ |
Passenger Car subsystem |
Implements a passenger car that contains an electric plant and drivetrain subsystems. |
✓ |
Visualization subsystem |
Displays vehicle-level performance, battery state of charge (SOC), and equivalent fuel economy results that are useful for powertrain matching and component selection analysis. |
Double-click Analyze Power and Energy to open a live script. Run the script to evaluate and report power and energy consumption at the component- and system-level.
The script provides:
An overall energy summary that you can export to an Excel® spreadsheet.
Electric plant and drivetrain plant efficiencies.
Data logging so that you can use the Simulation Data Inspector to analyze the powertrain efficiency and energy transfer signals.
The Drive Cycle Source
block generates a target vehicle velocity for a selected or specified drive cycle. The reference application has these options.
Timing | Variant | Description |
---|---|---|
Output sample time |
|
Continuous operator commands |
|
Discrete operator commands |
The Longitudinal Driver
subsystem generates normalized acceleration and braking commands. The reference application has these variants.
Block Variants |
Description | ||
---|---|---|---|
Longitudinal Driver (default) |
Control |
|
PI control with tracking windup and feed-forward gains that are a function of vehicle velocity. |
|
Optimal single-point preview (look ahead) control. |
||
|
Proportional-integral (PI) control with tracking windup and feed-forward gains. |
||
Low-pass filter (LPF) |
|
Use an LPF on target velocity error for smoother driving. |
|
|
Do not use a filter on velocity error. |
||
Shift |
|
Stateflow® chart models reverse, neutral, and drive gear shift scheduling. |
|
|
Input gear, vehicle state, and velocity feedback generates acceleration and braking commands to track forward and reverse vehicle motion. |
||
|
No transmission. |
||
|
Stateflow chart models reverse, neutral, park, and N-speed gear shift scheduling. |
||
Open Loop |
Open-loop control subsystem. In the subsystem, you can configure the acceleration, deceleration, gear, and clutch commands with constant or signal-based inputs. |
To determine the motor torque and brake pressure commands, the reference application implements a supervisory controller. Specifically, the controller subsystem includes a powertrain control module (PCM) with:
Regenerative braking control
Motor torque arbitration and power management
Converts the driver accelerator pedal signal to a torque request.
Converts the driver brake pedal signal to a brake pressure request. The algorithm multiplies the brake pedal signal by a maximum brake pressure.
Implements a regenerative braking algorithm for the traction motor to recover the maximum amount of kinetic energy from the vehicle.
Implements a virtual battery management system. The algorithm outputs the dynamic discharge and charge power limits as functions of battery state of charge (SOC).
Implements a power management algorithm that ensures the battery dynamic discharge and charge power limits are not exceeded.
Regen Braking Control has these variants.
Controller | Variant | Description |
---|---|---|
Regen Braking Control |
Series Regen Brake (default) |
Friction braking provides the torque not supplied by regenerative motor braking. |
Parallel Regen Braking |
Friction braking and regenerative motor braking independently provide the torque. |
Passenger Car
To implement a passenger car, the Passenger Car
subsystem contains a drivetrain and electric plant subsystem. The reference application has these variants.
Drivetrain Subsystem | Variant | Description | |
---|---|---|---|
Differential and Compliance |
All Wheel Drive |
Configure drivetrain for all wheel, front wheel, or rear wheel drive. For the all wheel drive variant, you can configure the type of coupling torque. |
|
Front Wheel Drive (default) |
|||
Rear Wheel Drive |
|||
Vehicle |
Vehicle Body 3 DOF Longitudinal |
Configured for 3 degrees of freedom |
|
Wheels and Brakes |
|
For the wheels, you can configure the type of:
For performance and clarity, to determine the longitudinal force of each wheel, the variants implement the Longitudinal Wheel block. To determine the total longitudinal force of all wheels acting on the axle, the variants use a scale factor to multiply the force of one wheel by the number of wheels on the axle. By using this approach to calculate the total force, the variants assume equal tire slip and loading at the front and rear axles, which is common for longitudinal powertrain studies. If this is not the case, for example when friction or loads differ on the left and right sides of the axles, use unique Longitudinal Wheel blocks to calculate independent forces. However, using unique blocks to model each wheel increases model complexity and computational cost. |
|
|
Electric Plant Subsystem | Variant | Description |
---|---|---|
Battery |
|
Configured with electric battery |
Motor |
|
Mapped motor with implicit controller |
|
Interior permanent magnet synchronous motor (PMSM) with controller |
After Clicking on the EV Reference Application file
autoblkEvStart
we directed to our Matlab window after reading the files inside that application we directed towards our EV modeling section.
If we run the simulation file 2474 sec under the drive cycle Source of FTP75.
Leave a comment
Thanks for choosing to leave a comment. Please keep in mind that all the comments are moderated as per our comment policy, and your email will not be published for privacy reasons. Please leave a personal & meaningful conversation.
Other comments...
Control Logic of Washing Machine and Gear Shift .
Aim: To Implement control logic of a 'Washing Machine' Using Stateflow as per given Sequence. Make a Simulink chart for the 'Gear Shift' logic as per given conditions. Objective: In Simulink, Implement the Control logic of a Washing Machine using StateFlow as per given input conditions.…
10 Feb 2022 11:26 AM IST
Week 2 Challenge
Question 1:Compare four different types of fuel cells and state their applications. An electrical current is produced via redox reactions occurring on the electrodes of the fuel cell. The most common fuel cell is the hydrogen fuel cell. On the anode, hydrogen molecules, which are fed to the anode from an external supply,…
06 Feb 2022 04:59 PM IST
Project-1: Modelling an electric Car with Li-ion battery
Aim: To Create a MATLAB model of an electric car in which we uses which uses lithium ion battery and suitable motor choosing a suitable blocks from the Powertrain block set and Implement the Vehicle Speed by using PI Controller and generate the accelerator and brake commands. Objectives: …
27 Jan 2022 06:44 AM IST
Final Project: Electric Rickshaw modelling
1.Create a detailed MATLAB model of an electric rickshaw (three wheel passenger vehicle) as per details below: Rear wheels driven by PM brushed type motor Assume efficiency points of motor controller and motor Make an excel sheet of all input and assumed data Results: For any three standard driving cycles show…
27 Jan 2022 05:01 AM IST
Related Courses
Skill-Lync offers industry relevant advanced engineering courses for engineering students by partnering with industry experts.
© 2025 Skill-Lync Inc. All Rights Reserved.