Calculating stoichiometric co-efficient for different fuels
Aim : To to calculate the stoichiometric co-efficient (ar) for each fuel.
Equations:
1. generic alkane fuel the combustion process equation:
`C_(2n+2) + a_r(O_2 + 3.76N_2) = aCO_2 + bH_2O + cN_2`
2. generic alkane fuel the combustion process equation:
`C_nH_(2n) + a_r(O_2 + 3.76N_2) = aCO_2 + bH_2O + CN_2`
3. generic alkane fuel the combustion process equation:
`C_nH_(2n) + a_r(O_2 + 3.76N_2) = aCO_2 + bH_2O + cN_2`
Relation between stichometric co-efficient and the number of carbon atoms:
1. Alkane :
`a_r = frac{3*n+1}{2}`
2. Alkene :
`a_r = frac{3*n}{2}`
3. Alkyne :
`a_r = frac{3*n-2}{2}`
Code Snippet :
%% clearing the data on the interface
close all
clear all
clc
% No.of carbons per mole.
n = 1:10;
% Defined function to get stichometric co-efficients for various number of
% atoms
[a1,a2,a3] = alkane_alkene_alkyne(n);
%% plots
plot(n,a1)
hold on
plot(n,a2)
plot(n,a3)
legend('alkane','alkene','alkyne','Location','northwest')
xlabel('no.of carbon atoms (n)')
ylabel('stichometric co-efficient (a_r)')
title('n vs a_r')
step-wise Explanation of code :
1. At first used , clearing commands
2. clc - clear the command window.
3. clear all - clear the workspace.
4. close all - clear all the figure in the present interface.
5. Declared a variable n for number of carbons , using split rule.
6. Defined a function , get sticometric co-efficients for different fuels with varing number of atoms.
7. plots the data using plot command.
8. hold on command used , not to clear the data of existing plot.
9. legend command used to define the curves.
9. used xlabel , ylabel for to label the x and y-axis.
10. title command for the title of the figure.
Function code snippet:
function [ar_alkane,ar_alkene,ar_alkyne] = alkane_alkene_alkyne(n)
ar_alkane = (3*n+1)/2;
ar_alkene = (3*n)/2;
ar_alkyne = (3*n-1)/(2);
end
Step-wise explanation of code snippet :
1. Defined stichometric co-efficients variables for alkanes , alkenes , alkynes.
2. stored the data in the respective output variables.
Results :


Conclusion :
1. Plotted the data for stichometric co-efficients for number of atoms.