Matlab Programs For Ignition Delay
Matlab Programs For Ignition Delay
R = 8.314;
%------Calculation of mean piston speed--------
Sp = 2*L*(N/60);
figure(1);
plot(CN,t);
xlabel('cetane number');
ylabel('ignition delay');
3) Variation of cetane number with volume fraction of
ethanol –
ne = 0:0.05:0.4;
plot(ne,CNbd);
xlabel('Volume fraction of ethanol');
ylabel('Cetane Number');
title('Variation of cetane number with blend % of
ethanol');
hold on; grid on;
ne = 0:0.05:0.4;
plot(ne,CNbd,'m');
xlabel('Volume fraction of ethanol');
ylabel('Cetane Number');
title('Variation of cetane number with blend % of
ethanol');
%-----Volume Fraction of Biodiesel = 20%-----
nbd2 = 0.2;
ne = 0:0.05:0.4;
plot(ne,CNbd,'k');
xlabel('Volume fraction of ethanol');
ylabel('Cetane Number');
legend('Biodiesel = 5%','Biodiesel = 10%','Biodiesel =
20%');
title('Variation of cetane number with blend % of
ethanol');
4) Variation of cetane number with volume fraction of
biodiesel –
function CNet = linearet(CNd)
nbd = 0:0.05:0.4;
plot(nbd,CNet);
xlabel('Volume fraction of biodiesel');
ylabel('Cetane Number');
title('Variation of cetane number with blend % of
biodiesel');
hold on;
nbd = 0:0.05:0.4;
plot(nbd,CNet,'k');
xlabel('Volume fraction of biodiesel');
ylabel('Cetane Number');
title('Variation of cetane number with blend % of
biodiesel');
hold on; grid on;
plot(nbd,CNet,'m');
xlabel('Volume fraction of biodiesel');
ylabel('Cetane Number');
legend('Ethanol = 5%','Ethanol = 10%','Ethanol = 20%');
title('Variation of cetane number with blend % of
biodiesel');