You are on page 1of 2

1) Mass burn fraction

function []=BurnFractionAndRateofHeatRelease()
clear();
a = 5; % Weibe efficiency factor
n = 3; % Weibe form factor
thetas = -20; % start of combustion
thetad = 60; % duration of combustion
Qin = 525; % Heat release by the fuel per cycle in J.

theta = -180:1:180;
aa = ones(1,361);
i = 1 ;
while i < 362
if theta(:,i)< thetas
xb = 0;
else
xb = 1. - exp(-a*((theta(:,i)-thetas)/thetad).^n);
end
aa(:,i) = xb;
i = i + 1;
end

bb = ones(1,361);
i = 1 ;
while i < 362
if theta(:,i)< thetas
hr = 0;
else
hr = Qin*n*a*(1-aa(:,i)).*((theta(:,i)-thetas)/thetad).^(n-1)/thetad;
end
bb(:,i) = hr;
i = i + 1;
end

%plot results
plot(theta,aa,'b','linewidth',2);
set(gca, 'fontsize', 18,'linewidth',2);
grid
xlabel('Crank Angle (deg)','fontsize', 18);
ylabel('Burn Fraction','fontsize', 18);

figure();
plot(theta,bb,'r','linewidth',2);
set(gca, 'fontsize', 18,'linewidth',2);
grid
xlabel('Crank Angle (deg)','fontsize', 18);
ylabel('Rate of Heat Release J','fontsize', 18);
end

2) Heat Input
function [] = HeatInput( )
% Engine data
Vt = 150e-6; %Total engine cylinder volume
rc = 10; %Compression ratio
Vc = Vt/rc;
Vd = Vt - Vc;
% Air-Fuel mixture data
P = 1.01325*10^5;
rho = 1.2; %Density in kg/m^3
phi = 1; %Equivalence ratio
HHV = 47300000; %Higher heat value of fuel in J/kg (Gasoline)
AFstoi = 14.6;
AFact = phi * AFstoi;
maact = rho * Vd;
mfact = maact / AFact;
Qin = HHV * mfact;
disp(Qin);
q = Qin/(P*Vd); %Dimensionless total heat release
end

You might also like