I'm trying to calculate the adiabatic flame temperature. I have this script, I'm trying to get a value of T out, how do I make it work? Or is there a better way of doing it?
HRxn=((4*-393.5)+(5*-241.83)-(-124.73))*1000; %dH reaction
C=(240.2*298)+(1.51*298^2)-(9.2e-5*298^3)+(1.25e-8*298^4);%298 evaluated
X=(240.2*T)+(1.51*T.^2)-(9.2e-5*T.^3)+(1.25e-8*T.^4);
S=solve(HRxn+(X-C)==0,T)
Thanks!
i think you should give more information of what you want to do,
first and second lines are const. i do not see a point of the equations.
So what you want to do is
F(T)=-2658420+(240.2*T)+(1.51*T.^2)-(9.2e-5*T.^3)+(1.25e-*T.^4)-.033375664162000e+05; %this is HRxn+(X-C) syms T; S=solve(F,T);
For me it does not make sense, you have just one variable "T". What do you want to do with solve.That is what you get.
Unless you are looking for the Roots of the equiation. Then you need the coeff. of F(T).
I hope this is what you need, i could have made mistakes with the numbers, but i think you get the idea.