How to solve this nonlinear equations ?

My input parameters, cp = 1200; hfF = 4*10^7; AF = 16; T_in = 298; P = 1; MW = 29; D = 80; r = D/2; R=8.314; YF_in = 1/18; YOX_in = 17/18; V = 4/3*pi*r^3;
Kg = 6.19*(10^9)*exp(-15098/x(4));
my four equations are as follows:
f1 = mdot*(YF_in-YF)-Kg*MW*V*(P/(R*T))^(1.75)*(YF)^(0.1)*(0.233*YOX)^(1.65) = 0
f2 = mdot*(YOX_in-YOX)-(AF)*Kg*MW*V*(P/(R*T))^(1.75)*(YF)^(0.1)*(0.233*(YOX)^(1.65) = 0
f3 = 1-YF-YOX-YPR = 0
f4 = (YF-YF_in)*(hfF)+cp*(T-T_in) = 0
the unkowns are YF, YOX, YPR and T. The variable parameter is 'mdot'. Initial value of mdot is zero. I need to get the unknowns for different values of mdot. And the code must be stopped when YF_in = YF; YOX_in = YOX.

Answers (1)

Torsten
Torsten on 12 Nov 2014
help fsolve
Best wishes
Torsten.

1 Comment

can u try that for me please, i dont knw much about matlab. please help me in this...
Thanks in advance.

Sign in to comment.

Categories

Find more on MATLAB in Help Center and File Exchange

Tags

Asked:

on 12 Nov 2014

Edited:

on 12 Nov 2014

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!