Stoichiometric Combustion Calculator for Alkane Alkene and Alkyne fuels
In the above challenge, comparison of the change in stoichiometric co-efficient \"ar\" with number of carbon molecules \"n\" is being seen
For the following program, I went through wikipedia for the general combustion equation of the alkanes, alkenes and alkynes.
With comparison from the given equation to the general equation, (depicted in the written notes attached). A generalised ar_(for each type of hydrocarbon was found).
With these formulae of balance combustion equation for the stoichiometric co-efficient, a graph in is created.
Code for the challenge
%Program to generate stochiometric combustion charateristics
clear all
close all
clc
% Taking a range of carbon mole = n
n = 2:8;
% Generic Alkane Fuel combustion equation
% CnH2n+2 + ar(O2 + 3.76N2) = aCO2 + bH2O + cN2
% ar for alkanes = (3n +1)/2, using n as alkanes as it starts from 1 (CH4)
ar_alkane = (3.*n + 1)/2;
% ar for alkenes = (3/2)n
ar_alkenes = (3/2).*(n);
% ar for alkynes = (3n - 5)/2
ar_alkynes = (3.*n - 1)/(2);
% Plotting of the datas
figure(1)
plot(n,ar_alkane,\'-rd\',\'markerfacecolor\',\'y\',\'linewidth\',2)
hold on
plot(n,ar_alkenes,\'-bs\',\'markerfacecolor\',\'m\',\'linewidth\',2)
plot(n,ar_alkynes,\'-ko\',\'markerfacecolor\',\'g\',\'linewidth\',2)
legend(\'ar of Alkane\',\'ar of Alkenes\',\'ar of Alkynes\',\'location\',\'northwest\');
title(\'Study of the effect in change on stochiometric co-efficient by variation in carbon molecules\')
xlabel(\'Number of moles\')
ylabel(\'Stochiometric co-efficient\')
grid minor
axis([ 0 10 0 16])
% Saving the plot
saveas(gca,\'Comparison_plot.png\')
The resulting graph of comparison is :
Result : With the plot, there is a understanding of the raise in stoichiometric co-efficient with raise in number of moles in a straight line for all the 3 types of hydrocarbon. The difference between the lines is found in the equation and formulae given which is by 0.5 of alkene from alkane, 1 of alkyne from alkane.