Project 1
AIM:
- The development of a conventional vehicle's forward energy-based fuel consumption model using Matlab and Simulink.
- To compute the fuel economy numbers for the given desired vehicle model in kmpl on the two different drive cycle types are UDDS and HWFET.
- By understanding the vehicle operation points in terms of engine speed, torque, transmission speeds, Pedal Position, gear, and Distance traveled
- By Simulating the model using blocks
- To write the Scripts for a MATLAB for loading all the variables to perform the simulation
- Analyze the data and create a plot by using MATLAB.
Objective:
- Tabulate the fuel economy numbers (kmpl) for UDDS and HWFET cycles. This forms the baseline numbers for comparing with the future hybrid version.
- Plot the time trace for engine, transmission input, transmission output, and wheel speed on one plot.
- Using subplots, plot engine torque, power, fuel rate, and consumption.
- Using subplots, plot accelerator and brake pedal, gear command, vehicle desired and actual speed, and vehicle distance.
- Plot the engine operating points on the engine fuel map.
- Write down appropriate brief comments on each of these plots, describing the vehicle behavior throughout the drive cycle.
- Generate the plots for both drive cycles
Thesis:
Forward-Modelling of Vehicle Approach:
- This kind of approach is known as the cause-effect, engine-to-wheel or rear-to-front method, the direction of calculation is the same as the direct positive power flow method: power flow is from the engine to the wheel.
- This approach is based on the vehicle dynamics equation and the behavior of single powertrain components and their dynamic interaction between the wheels.
- A Driver Controller is required to control the vehicle to follow desired speed and to calculate.
- The Controller is implemented to model that the driver will either push the accelerator or the brake pedal to match the desired speed which enables to study the braking of the vehicle
- It also acts as a feedback loop for the vehicle which was used to determine the energy requirements to drive the vehicle.
Convectional Vehicle Modelling:
Basic architecture model of forwarding Vehicle Modeling:
The Simulation Process is been processed in 3 different stages:
- Pre-processing
- Simulation
- Post-processing
Stage 1:
Pre-Processing
In this Stage data which load as a program, it will take as an input program of the vehicles which is used for Post-processing of the Simulation by using the Simulink Model which is already built
Drive Cycle selection is also done from here by choosing the variable in it eg:1 is for UDDS, 2 is for HWFET, and 3 is for FTP.
Before running the Simulink model we have to induce inputs variables to the workspace to use by the Simulink model.
Inputs such as:
Mass of the vehicle (M) in kg
Coefficient of Rolling resistance (Cr)
Rolling Radius (Rw) in m
Drag Coefficient (Cd)
Frontal Area (Af) in m^2
Air density (rhoa) in kg/m^3
Wind Velocity (Vwind) in kmph
Gravitational Force (g) in m/s^2
Slope (theta) in deg
Here the Input Data of the Vehicle Dynamics is Consists of a typical 4-gear vehicle
Below I have attached the input program for the simulation:
Drive Cycle which was used in this program is US-based Vehicles Dynamics
By the Changing the variable input for selecting different Drive_cycle
1 UDDS
2 HWFET
3 FTP
4 US06
5 NEDC
6 WLTP
Simulink Modeling:
The Model of Simulink is for the convection model of the vehicle in which it has been divided into 3 main sub-blocks are:
- Driver
- Controller
- Powertrain
The Actual Vehicle speed is given as feedback to the driver block, and the driver block gives into the controller block in which the acceleration or brake output is connected.
While the controller provides a control signal for engine torque, gear shifting, and brake torque to the powertrain block.
Controller Unit:
The brain of the vehicle unit is the 'Controller' block, which represents the ECU, Transmission Unit, and Basic Control Unit
Based on the Driver Inputs, it generates desired engine Torque, desired transmission gear, and desired brake torque. These will be sent as feedback to the powertrain blocks as input which is represented the drivetrain of the vehicle.
Driver:
In this Driver Block, it is a basic PI controller model that is used to generate accelerator and brake pedal Outputs that are used to match the desired and actual vehicle speeds.
The PI controller controls the error between the required drive cycle and the actual vehicle speed is been provided by the acceleration and brake pedal output of the controller unit.
Controller:
Engine Control Unit:
In this Block, ECU is the main unit that used to run the vehicle
Inputs such as Engine Speed, Maximum Torque Curve, Minimum Torque Curve, Idle Speed Control and the output is Engine Torque.
Transmission Control Unit:
This Control unit has 2 inputs whereas Throttle, Vehicle Speed, and Gear Command as Output.
Has Increasing the Input Throttle speed, Changing of gear commands take place accordingly 1,2,3,4 and vice versa for speed dropping condition.
The Gear command is been created by using the Stateflow block for this simulation.
It is been controlled accordingly by Vehicle Speed and Throttle inputs.
The gear command is been passed to the transmission block to select the desired gear ratio.
Basic Control Unit:
It consists of the basic control unit which requires brake torque according to the brake pedal input and passes the brake torque into the wheel block in the transmission model.
The second Block of this Vehicle Model is 'Powertrain':
Powertrain:
To move up the vehicle we need a Body structure that is used to move the vehicle in forward and reverse directions as required.
It consists of all components that will convert the Fuel power of the engine for the motion to move the vehicle.
It consists of an Engine, Transmission, Wheels, Differential, Vehicle Dynamics
Transmission Control Unit:
This Control unit has 2 inputs whereas Throttle, Vehicle Speed, and Gear Command as Output.
Has Increasing the Input Throttle speed, Changing of gear commands take place accordingly 1,2,3,4 and vice versa for speed dropping condition.
The Gear command is been created by using the Stateflow block for this simulation.
It is been controlled accordingly by Vehicle Speed and Throttle inputs.
The gear command is been passed to the transmission block to select the desired gear ratio.
Basic Control Unit:
It consists of the basic control unit which requires brake torque according to the brake pedal input and passes the brake torque into the wheel block in the transmission model.
The second Block of this Vehicle Model is 'Powertrain':
Powertrain:
To move up the vehicle we need a Body structure that is used to move the vehicle in forward and reverse directions as required.
It consists of all components that will convert the Fuel power of the engine for the motion to move the vehicle.
It consists of an Engine, Transmission, Wheels, Differential, Vehicle Dynamics
Engine Model:
Based on the Engine Speed, the required torque from the controller is between Max torque and Min Torque curve and it will transfer the Engine Torque to the Transmission Block.
The 2D lookup table is used to calculate the fuel rate and is then integrated to find the fuel consumption rate of the engine, by using the engine speed and engine torque.
By using the 'To Workspace' block command the estimated fuel flow rate, fuel consumption, engine torque, and engine speed is been passed to the workspace of MATLAB.
Transmission Model:
The input of the block is coming from the Engine model named 'Engtrq'.
This input is connected to Torque Converter and this output is connected to a differential which is named 'TransOutTrq'.
Torque Converter:
A torque converter is a type of fluid coupling that transfers rotating power from a prime mover, like an internal combustion engine, to a rotating driven load. In a vehicle with an automatic transmission, the torque converter connects the power source to the load. It is usually located between the engine's flexplate and the transmission. The equivalent location in a manual transmission would be the mechanical clutch.
Differential:
The Transmission output torque is multiplied by the differential ratio and differential eff in these blocks and the torque is transmitted to the wheel as the axle torque.
Wheel Model:
This takes input from brake torque in the control model is been subtracted from the axle torque and divided from the rolling radius to determine the tractive force.
The wheel speed is calculated from the vehicle velocity and saved into the workspace.
Vehicle Dynamics:
This block consists of the longitudinal dynamics of the vehicle which consists of Aerodynamics force, Rolling Resistance Force, Grade Force etc..,
Formulas used:
where
Af - Frontal Area
Cd-Drag Coefficient
M - mass of a vehicle
g - Acceleration due to gravitational force
These variables have already been preloaded to the workspace using a MATLAB script
Conclusion:
Hence the forward energy-based fuel consumption model of a conventional vehicle has been successfully simulated using MATLAB and Simulink.
Analyses and understands vehicles operating points based on engine speed,Torque,Transmission inputs & output speed, Pedal Positions, gear, and Distance travelled by the vehicle.
Post-Porcessing is most efficiently used to calculate the performance and require graph and it is been successfully plotted above.
Successfully Calculated vehicle fuel efficiency numbers (kmpl) for the given cycles such as UDDS and HWFET.