Stoichiometric Combustion Calculator for Alkane, Alkene and Alkyne fuels
Given Combustion Process for Alkane fuels is,
`C_nH_(2n+2)+ar(O_2+3.76 N_2)=aCO_2+bH_2O+cN_2`
Now here `n=a` , `2n+2=2bimpliesb=n+1` and `ar=a+b/2=n+(n+1)/2=(3timesn+1)/2`
Again Combustion Process for Alkene fuels will be,
`C_nH_(2n)+ar(O_2+3.76 N_2)=aCO_2+bH_2O+cN_2`
Here `n=a` , `2n=2bimpliesb=n` and `ar=a+b/2=n+n/2=(3timesn)/2`
And Combustion Process for Alkyne fuels will be,
`C_nH_(2n-2)+ar(O_2+3.76 N_2)=aCO_2+bH_2O+cN_2`
In this case `n=a` , `2n-2=2bimpliesb=n-1` and `ar=a+b/2=n+(n-1)/2=(3timesn-1)/2`
The Program is,
close all
clear all
clc
% Taking No. of moles of C as input %
n=1:10;
% Calculating Stoichiometric Coeff %
for ct=1:3;
if ct==1
ar_alkane=n+((n+1)/2);
elseif ct==2
ar_alkene=n+(n/2);
else
ar_alkyne=n+((n-1)/2);
end
end
% Plotting %
plot(n,ar_alkane,'color','m')
hold on
plot(n,ar_alkene,'color','g')
plot(n,ar_alkyne,'color','r')
xlabel('No. of Moles of Carbon')
ylabel('Stoichiometric Coeff')
axis([0 11 0 16])
legend('Alkane','Alkene','Alkyne')
title('Stoichiometric Coeff VS No. of moles of Carbon')
PLOT obtained: