Project

Speed Programming in Matlab Octave for non computer science engineers.

Speed Programming in Matlab Octave for non computer science engineers.

Given equation:

CnH(2n+2) + ar (O2 + 3.76N2) →
→aCO2 +bH2O + cN2

Here

n = Number of moles of C

ar = Stoichiometric co-efficient

a = Number of moles of Carbon-di-oxide

b = Number of moles of water

c = Number of moles of Nitrogen

ALKANE -

Combustion reaction- CnH(2n+2) + ar (O2 + 3.76N2) →→aCO2 +bH2O + cN2

Any member of the homologous series of saturated hydrocarbons having a single covalent bond and the general formula CnH2n+2.

Balancing the equation, we get; ar = 3n+1/2.

ALKENE -

Combustion reaction- CnH(2n+2) + ar (O2 + 3.76N2) →→aCO2 +bH2O + cN2

Any member of the homologous series of unsaturated hydrocarbons having at least one double bond and the general formula CnH2n.

Balancing the equation, we get; ar = 3n/2.

ALKYNE -

Combustion reaction- CnH(2n+2) + ar (O2 + 3.76N2) →→aCO2 +bH2O + cN2

Any member of the homologous series of unsaturated hydrocarbons having at least one triple bond and the general formula CnH2n-2.

Balancing the equation, we get; ar = 3n-1/2.

Programme:-

clear all
close all
clc

% stoichiometric co-efficient (ar)
 
 ar = zeros(1,10);
 x = linspace(1,10,10);
 
 for i = 1:length(x)
     alkane(i) = (3/2)*x(i)+1/2;
     alkene(i) = (3/2)*x(i);
     alkyne(i) = (3/2)*x(i)-1/2;
 end
 
 % plotting the results
 grid on
 hold on
 
 plot(x,alkane,'color','r');
 plot(x,alkene,'color','g');
 plot(x,alkyne,'color','y');
 
 title('EFFECT OF NUMBER OF ATOMS OF CARBON ON THE STOICHIOMETRIC CO-EFFICIENT.')
 xlabel('No of atoms of carbon')
 ylabel('Stoichiometric coefficient')
 legend('alkane','alkene','alkyne')   
 

OUTPUT:-

RESULT:- Hence the plot is generated to compare the effect of number of atoms of carbon on the stoichiometric co-efficient 'ar' for alkane, alkene,alkyne.

Your portfolio, next

Ship work like this
in your own course.

Talk to a career counsellor

Free 20-minute call. We'll map the right course to where you want to work.

By submitting you agree to our Terms and Privacy Policy.

Talk to a career counsellor

Free 20-minute call. We'll map the right course to where you want to work.

By submitting you agree to our Terms and Privacy Policy.