hi, this might be a little involved, but i'd appreciate any help.
i'm working on a project involving the combustion of propane, resulting in soot. I'm having trouble balancing the equation. Here is the equation, as assigned by my professor:
C3H8 + 0.0.476O2 --> aCO + bCO2 + cH2 + dH2O + eC9H
The equations I'm using are as follows:
C/H: 3/8 = (a + 2b + 9e)/(2c+2d+e)
C/O: 3/.9524 = (a+b+9e)/(a+2b+d)
H/O: 8/.9524 = (2c+2d+e)/(a+2b+d)
a+b+c+d+e = 1
.228 = (ad)/(bc) (equilibrium for water-gas shift)
those are my equation. I wrote a Matlab program to solve the nonlinear system, giving:
a = 0.1879, b=0.000021110, c=0.76714, d=0.0000196, e=0.0449
Are these values reasonable? They don't seem to balance when balancing the equation using mole fractions.
If anyone can help, that'd be great. I'm at school, and the security settings on these stupid computers won't let me post the Matlab code into this post. So i will post it when I get home.
For anyone with Matlab that would like to check my code, here it is:
clc
clear all;
x1 = .2; x2 = .2; x3 = .2; x4 = .2; x5 = .2;
d = 1;
while norm(d)>1e-12
f1 = -8*(x1)-8*(x2)+6*(x3)+6*(x4)-69*(x5);
f2 = 2.048*(x1)+5.048*(x2)+3*(x4)-8.57*(x5);
f3 = -8*(x1)-16*(x2)+1.904*(x3)+6.096*(x4)+.952*(x5);
f4 = (x1)+(x2)+(x3)+(x4)+(x5)-1;
f5 = .228*(x2)*(x3)-(x1)*(x4);
A = [-8 -8 6 6 -69;
2.048 5.048 0 3 -8.57;
-8 -16 1.904 6.096 .952;
1 1 1 1 1;
-(x1) .228*(x3) .228*(x2) -(x1) 0;];
b=[-f1 -f2 -f3 -f4 -f5]';
d=inv(A)*b;
x1=x1+d(1,1);
x2=x2+d(2,1);
x3=x3+d(3,1);
x4=x4+d(4,1);
x5=x5+d(5,1);
end
fprintf(1, 'x1 = %9.9f x2 = %9.9f x3 = %9.9f x4 = %9.9f x5= %9.9f', x1, x2, x3, x4, x5)