How to solve this nonlinear equations ?
Show older comments
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)
Categories
Find more on MATLAB in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!