Академический Документы
Профессиональный Документы
Культура Документы
t = city_data(:,1);
vmph = city_data(:,2);
velo = vmph*(1609.34/3600);
accel = zeros(1370,1);
for n=2:1370
accel(n) = (velo(n)-velo(n-1))./(t(n)-t(n-1));
end
plot(t,velo)
xlabel('Time')
ylabel('Velocity')
title('Velocity Graph')
figure
plot(t,accel)
xlabel('Time')
ylabel('Acceleration')
title('Acceleration Graph')
1
2
Distance Traveled
dist_vec = zeros(1370,1);
dist = 0;
for n=2:1370
dist = dist + ((velo(n)+velo(n-1))/(2))*((t(n)-t(n-1))/1000);
dist_vec(n) = dist;
end
plot(t,dist_vec)
xlabel('Time')
ylabel('Distance Traveled')
title('Distance Graph')
3
Fr = Cr*m*g;
for i = 1:1370
if velo(i) > 0
Fr_vec(i) = Fr;
else
Fr_vec(i) = 0;
end
end
for j = 1:1370
if Fnet(j) > 0
Fm(j) = Fnet(j);
else
Fm(j) = 0;
end
end
Fm1 = (Fm)'; % Motive Force
for ii = 1:1370
if Fnet(ii) < 0
Fb(ii) = -Fnet(ii);
else
Fb(ii) = 0;
end
end
Power Required
P = (Fm1.*velo)/(1000); % Power
plot(t,P)
xlabel('Time')
ylabel('Power')
title('Power Graph')
figure
plot(t,Fm1)
xlabel('Time')
ylabel('Motive Forcce')
title('Motive Force Graph')
4
5
Work Required
%Braking Work
Wb_vec = zeros(1370,1);
Wb = 0;
for jj = 2:1370
Wb = Wb + ((Fb1(jj)+Fb1(jj-1))/(2))*((dist_vec(jj)-
dist_vec(jj-1)));
Wb_vec(jj) = Wb;
end
xlabel('Time')
ylabel('Motive Work')
title('Motive Work Graph')
6
ratio = [Wipd Wdpd Wrpd Wbpd]/Wmpd;
mileage = ((dist_vec(1370))/(Wm_vec(1370)))*(125000);
mileage_with_regen_brak = ((125000)/(Wmpd-Wbpd));
mileage_mpg = mileage/(1.60934)
mileage_mpg_with_regen_brak = mileage_with_regen_brak/(1.60934)
mileage_mpg =
163.9325
mileage_mpg_with_regen_brak =
266.8388
7
g = 9.81;
Fr_suv = Cr*msuv*g;
for i = 1:1370
if velo(i) > 0
Fr_vec_suv(i) = Fr_suv;
else
Fr_vec_suv(i) = 0;
end
end
for j = 1:1370
if Fnet_suv(j) > 0
Fm_suv(j) = Fnet_suv(j);
else
Fm_suv(j) = 0;
end
end
Fm1_suv = (Fm_suv)'; % Motive Force
for ii = 1:1370
if Fnet_suv(ii) < 0
Fb_suv(ii) = -Fnet_suv(ii);
else
Fb_suv(ii) = 0;
end
end
plot(t,P_suv)
xlabel('Time')
ylabel('Power')
title('SUV Power Graph')
figure
plot(t,Fm1_suv)
xlabel('Time')
ylabel('Motive Forcce')
title('SUV Motive Force Graph')
8
9
Work Required of SUV
%Braking Work
Wb_vec_suv = zeros(1370,1);
Wb_suv = 0;
for jj = 2:1370
Wb_suv = Wb_suv + ((Fb1_suv(jj)+Fb1_suv(jj-1))/
(2))*((dist_vec(jj)-dist_vec(jj-1)));
Wb_vec_suv(jj) = Wb_suv;
end
10
Wmpd_suv = Wipd_suv + Wdpd_suv + Wrpd_suv;
ratio_suv = [Wipd_suv Wdpd_suv Wrpd_suv Wbpd_suv]/Wmpd_suv;
mileage_suv = ((dist_vec(1370))/(Wm_vec_suv(1370)))*(125000);
mileage_with_regen_brak_suv = ((125000)/(Wmpd_suv-Wbpd_suv));
mileage_suv_mpg = mileage_suv/(1.60934)
mileage_mpg_with_regen_brak_suv = mileage_with_regen_brak_suv/
(1.60934)
mileage_suv_mpg =
100.6264
mileage_mpg_with_regen_brak_suv =
162.7617
11
ENGR-120 Drive Cycle Project Gerry George
As part of the Corporate Average Fuel Economy, the government regulations require to
increase the fuel economy for new cars. According to the US Environment Protection Agency,
the fuel economy of vehicles is measured using drive cycle. The given drive cycle data of the
vehicle has the velocity of the vehicle driving in the city with the corresponding time. With this
drive cycle data, the ideal mileage of the car can be calculated. Furthermore, the potential
increase in mileage can also be calculated with the addition of regenerative braking. Along with
the velocity, the distance and acceleration is also necessary to make these calculations. The
( )
() = ( ) +
4 1000
() ( )
() =
ENGR-120 Drive Cycle Project Gerry George
The following plots represent the acceleration, velocity and distance of the given drive cycle:
Figure 1: The acceleration of the vehicle driving in the city. The acceleration and deceleration represents the vehicle constantly
stopping and starting up again.
Figure 2: The velocity of the vehicle driving in the city. The velocity constantly coming to zero implies that the vehicle always
stop.
Figure 3: The distance of the vehicle driving in the city. Since the graph is not linear it means that the distance did not increase
proportion with time.
ENGR-120 Drive Cycle Project Gerry George
The following is the plot for motive force, power and work:
Figure 4: The motive force is the force required to push the vehicle when acceleration is positive.
Figure 5: Power is the dot product of force and velocity and it represents a force that moves an object at a certain velocity.
Figure 6: The motive work is the total work when the vehicle is accelerating.
ENGR-120 Drive Cycle Project Gerry George
To calculate the maximum possible mileage for the drive cycle, divide the distance
travelled by the total motive work. MATLAB integrates the motive force to get motive work.
The motive force is the net force when the car acceleration is positive. MATLAB calculates the
net force by adding the drag force with inertia and forces of rolling resistance. MATLAB
1
=
2
where is the drag coefficient, is the air density, is the frontal area and is velocity.
MATLAB computes the inertia by multiplying the mass with the acceleration. And MATLAB
computes the forces of rolling resistance by using the following formula, when the results are
positive:
where is the resistance coefficient, is the mass and is the gravity. Finally, MATLAB
calculates the maximum possible mileage for the drive cycle as approximately 164 MPG.
However, it is impossible to get 164 MPG for any vehicle in real life, because a lot of energy in a
Motive work is how much energy the vehicle gives. And while the vehicle is moving, it
also has to overcome the inertia and the external forces of drag and rolling resistance. The work
to overcome inertia represents how much work is put into accelerating the vehicle. Subtracting
the work to overcome drag and the work to overcome rolling resistance form the motive work
gives the work to overcome inertia. Drag is the force from the air which slows the vehicle down.
ENGR-120 Drive Cycle Project Gerry George
The drag depends on how the vehicle is shaped, how fast the vehicle is going, and the air density.
Integrating the drag force gives the work to overcome drag. And rolling resistance is friction
from the tires when the tires roll on the road. Integrating the forces of rolling resistance gives the
Power is the dot product of force and velocity and it represents a force that moves an
object at a certain velocity. Figure 5 is the power graph and it shows that the maximum power is
36 KW at time 196 seconds. This means the highest rate of doing work was at 196 seconds.
When the vehicle brakes some energy is lost, this loss of energy can be recovered with
regenerative braking. MATLAB calculates the energy lost from braking for the vehicle as 183
KJ/KM. With regenerative braking, the kinetic energy coverts into a form that can be used to
push the vehicle. Subtract the 183 KJ/KM from the motive work and divide the total distance by
( )
=
( )
MATLAB calculates this new mileage to be 267 MPG, so with regenerative braking the mileage
will increase
ENGR-120 Drive Cycle Project Gerry George
The tables show that the work requirement for the SUV is much higher than the other
vehicle. The high work requirement of the SUV is because it is much bigger and heavier.
Therefore, it takes much more work to push the vehicle, overcome the inertia, and overcome all
the external resistances. Because all the work increases for the SUV, the power also increases
and the mileage decreases. Even though the work increases, the distribution of the work terms
almost stays the same because both vehicles ran the same distance and have the same velocity
and acceleration.