Project 1
Simulink blocks:-
Simulink blocks of the engine and vehicle dynamics for the Simulink model
“Project1_VehicleModel.slx”
In the engine block, the input is the engine torque required and the output it gives is engine torque. The engine speed from the block is used whose signal is connected to two 1D lookup tables which have engine max torque and engine min torque as their table data. A saturation dynamic block is connected to both the signals of the lookup table and as an output, it gives engine torque.
Engine speed and engine torque are passed through a 2D lookup table and connected to a saturation block which then gives the engine fuel rate and after the signal passes through an integration block it gives engine fuel consumption.

Result -
In the engine block scope result, it can be seen that as the vehicle moves forward the fuel rate remain constant but the fuel consumption gradually increases.


Result
Below is the scope result for the vehicle dynamics block. Tractive force and acceleration have the same movement and the road load increases and decrease with the increase and decrease of the movement of tractive force and acceleration.

Project1_ProcessingFile.m
“Project1_ProcessingFile.m” is the Matlab script used to analyze this data and generate plots. This script needs to be executed after the Simulink model data has been loaded into the workspace. Here we rename the variables loaded from the model (if desired), do some basic post-process calculations, and generate results and plots.
The code has been modified as per the requirement. Plots for the engine outputs and vehicle dynamics have been added to the code using a Matlab code subplot.
Fuel economy (kmpl) for both UDDS and HWFET cycle is been calculated through the above code,
Drive Cycle UDDS
The EPA Urban Dynamometer Driving Schedule (UDDS) is commonly called the "LA4" or "the city test" and represents city driving conditions. It is used for light-duty vehicle testing. The UN/ECE Regulation 53 refers to the EPA UDDS as the "Test Equivalent to the Type 1 Test (verifying emissions after a cold start)."
Fuel economy is 14.2044 [kmpl]
Drive Cycle HWFET
The Highway Fuel Economy Driving Schedule (HWFET) represents highway driving conditions under 60 mph.
Fuel economy is 16.5010 [kmpl]
As per the fuel economy value for both cycles, the HWFET drive cycle has a higher economy than the UDDS drive cycle.
Plots:-
Drive Cycle UDDS
In the below plot, it can be seen that with an increase in gear, the accelerator pedal increases and there is no movement with the brake pedal. The speed increases with the moment of transmission input and output. Speed seems to be zero when there is movement in the brake pedal.
The vehicle reaches max gear only once in this cycle. The maximum time it is in 1st or 2nd gear.

Operating points seem to be close to the max curve. Has less torque and speed compared to the UDDS drive cycle.

In this plot with an increase in torque, power increases, and when the decrease in torque, power also decreases. Both have a negative value as well. Engine fuel rate and speed plot have almost the same movement as the other plots. Engine fuel consumption gradually increases.

Lots of Up and down movement can be seen in the vehicle's speed, it reaches the maximum at one point and comes to zero at the next. This is how vehicle speed fluctuates in the UDDS drive cycle. Distance traveled by the vehicle plot is also not straight as compared to the HWFET drive cycle, it has some disturbance or some movement.

Drive Cycle HWFET
The brake pedal seems to be steady in the overall ride. Mostly the vehicle is at maximum gear and there is less movement in the accelerator pedal, only when there is a slight movement in the brake pedal. Less fluctuation is seen in the speed part for this drive cycle.

There is more torque generated with more engine speed. Operating points are away from the mas curve.

More power is generated in this drive cycle with more torque. A drastic change in the movement of the torque can be seen. There is less fluctuation in engine speed. Engine fuel consumption increases with time.

In the HWFET drive cycle, the distance traveled by the vehicle plot shows a straight line with no disturbance compared to the UDDS drive cycle. Vehicle speed increases from zero at the start of the vehicle and comes to the minimum when the vehicle stops. Very less movement can be seen throughout the ride.
