Project 1
In traditional cars, the wheels are propelled by an internal combustion engine that is either powered by gasoline or diesel. The heat engine in question works on the premise of heat release through combustion of a fuel with an oxidizer in a combustion chamber to create expanding gases that push against a piston to produce force and torque.
The 4 stroke reciprocating engine is the most common type of engine utilized in this system. Otto and Diesel cycles are two examples of ideal thermodynamic cycles that can be used to simulate an engine in a cycler. A spark initiated SI engine's cycle mechanism is described by the Otto cycle, an ideal cycle. And the Diesel cycle is the best cycle for describing the operation of a CI engine with compression ignition.
Engine power and other parameters:
Powertrain must immediately meet the wheel's desired power demand. In other words, the power from the powertrain determines the power needed at the wheels for performance factors like acceleration, speed, etc.
The power comes from the engine through the gearbox because this vehicle's powertrain comprises of an engine that is connected to the wheels through a transmission.
The engine produces power by transforming chemical energy stored into mechanical energy through the combustion process. The energy input for this energy conversion process comes from the consumption of fuel, and it is also efficient.
Each systems has are two generalised variables-
1] Efforts:- It is generalised force variable. ex- torque, force, voltage, heating value.
2] Flow:- It is the generalised flow/velocity variable. ex:- velocity, current, mass flow rate.
3] Power:- It is the product of the effort and flow variable. It is interchangeable between energy domains.
- Instantaneous fuel consumption is given as
<!--[endif]-->
Where,
mf = mass flow rate in [kg]
pe = Power of engine
pt = power of transmission
nt = efficiency of transmission
ne = efficiency of engine
QLHV = it is the calorific value/ lower heating value of fuel.
Model & Types
There are essentially two different methods for modeling an element's internal physical properties and losses.
1] Map-based models: Maps that depict the relationship between input and output, output and losses, etc. are used to simulate various elements.
2] Analytical models: The internal dynamics of elements are represented using physical equations. These are the two extremes, and the majority of models combine the two, with some dynamics models being analytical and others being based on maps.
Here forward model is used to build the simulink model.
Forward model:

<!--[endif]-->
MATLAB scripts to load the parameters as per given file
<![endif]-->
<![endif]-->
<![endif]-->
<![endif]-->
<![endif]-->
<![endif]-->
<![endif]-->
<![endif]-->
<![endif]-->
<![endif]-->
<![endif]-->
















In this takes tractive force and road load. It is dictates vehicle speed based on tractive force and road load.
the dynamic equation for calculating road load is
where,
p = air density [kg/m^3]
A = Frontal area [m^2]
Cd = drag Coefficiend
Vveh = velocity of vehicle [m/s^2]
Vwind = velocity of wind [m/s^2]
Cr = rolling resistance coefficient
M = mass in [Kg]
g = gravity.
Then we calculate and integrate then we meet acceleration of vehicle and velocity of vehicle it mean vehicle distance and vehicle speed.
Scope:

Road load scope:

MATLAB codes for plots
<![endif]-->
<![endif]-->
<![endif]-->
<![endif]-->
<![endif]-->
<![endif]-->
<![endif]-->
<![endif]-->
<![endif]-->
<![endif]-->
<![endif]-->
<![endif]-->
<![endif]-->
<![endif]-->
<![endif]-->
<![endif]-->
<![endif]-->
1] Plotting vehicle characteristics time trace transmission IN/OUT and Wheel Speed:-
For UDDS,

For HWFET,

In this graph we see the transmission input and transmission out fluctuates up and down as increasing speed and time.
2] Plotting vehicle characteristics time trace to Engine speed, Engine Torque, Engine Power, And Engine fuel rate, Engine fuel consumption
For UDDS,

For HWFET,

Engine torque, Engine power, engine fuel rate and engine fuel consumption is increase increasing wrt time.
3] Plotting fuel economy Vs Engine Fuel consumption:-
For UDDS,

For HWFET,

Engine fuel consumption is suddenly increase as increasing fuel economy but if fuel economy is constant then the fuel consumption is also constant.
4] Potting Accelerator pedal, Brake pedal and gear command with respect to time:-
For UDDS,

For HWFET,

As comparing brake of vehicle the accelaration of vehicle is more so the brake torque is min required. and the gear shifting is also required wrt time.
5] Plotting gear command vehicle desired with actual speed:-
For UDDS,

For HWFET,

Gear shifting is required as increase vehicle speed. as shifting order is gear1, then gear2, then gear3, and then gear4.
6] Plotting engine operating points on engine fuel map:-
For UDDS,

For HWFET,

In this as torque decrease, speed increase.