Stochiometric Combustion Calculator
General for hydrocarbons is given as follows
alkane = CnH2n+2.
alkene = CnH2n.
alkyne = CnH2n.
The standard balanced equation for combustion hydrocarbon is given as
CxHy+(x+y/4)O2→xCO2+(y/2)H2O
Therefore using above equation we calculate \"ar\" stochiometric ratio for alkane, alkene, alkyne.
ar_alkane = (3*n+1)/2
ar_alkene = (3*n)/2
ar_alkyne = (3*n-1)/2
Matlab program is as follows
close all
clear all
clc
%Stoichiometric Combustion Calculator for Alkane, Alkene and Alkyne fuels
%ar = stochiometric coefficient
%n = number of moles of C
n= [1:11];
% alkane = CnH2n+2.
% alkene = CnH2n.
% alkyne = CnH2n
% There ar for above compounds be as follows
ar_alkane = (3*n+1)/2;
ar_alkene = (3*n)/2;
ar_alkyne = (3*n-1)/2;
figure(1)
plot(n,ar_alkane)
hold on
plot (n,ar_alkene)
hold on
plot(n,ar_alkyne)
title(\'Comparison between Number of moles of carbon and Stochiometric coefficient of Alkane, Alkene, Alkyne\')
xlabel(\'Number of Moles of Carbon\')
ylabel(\'Stochiometric Coefficient of Carbon\')
legend(\'ar of alkane\',\'ar of alkene\', \'ar of alkyne\')
grid on
axis([ 0 18 0 18])
saveas(gca,\'Comparison plot.jpeg\')