필터 지우기
필터 지우기

system of non linear equations

조회 수: 2 (최근 30일)
sepideh
sepideh 2023년 10월 16일
댓글: sepideh 2023년 10월 24일
Hello
I am dealing with a system of two non-linear equations and I tried to solve it by 'fsolve', but the solver stopped and could not fine the answers.
Would you please help me?
I attached the files

채택된 답변

Torsten
Torsten 2023년 10월 16일
%solving stsyem of nonlinear equation 3.31 and 3.32 Woods paper with fsolve
% eta_l= x1 , eta_u= x2
r=2;
v=20;
F=13/9;
fun= @(x)rooted(x,r,v,F);
x0 = [0 0];
x = fsolve(fun,x0)
No solution found. fsolve stopped because the problem appears regular as measured by the gradient, but the vector of function values is not near zero as measured by the value of the function tolerance.
x = 1×2
0 0
function f = rooted (x,r,v,F)
%UNTITLED3 Summary of this function goes here
% Detailed explanation goes here
% F<Fd Fd= 2.6 I put F=1.5
f(1)= (r*v-1)/(v*(r-1)) * ((r*v*x(1)^2-x(2)^2)/(r*v-1))^(3/2) - ...
(v-1)/(v*(r-1)) * ((v*x(1)^2-x(2)^2)/(v-1))^(3/2) - 9 ;
f(2)= x(2)^3/(r*v) + (v-1)/(v*(r-1)) * ((v*x(1)^2-x(2)^2)/(v-1))^(3/2) - ...
(r*v-1)/(r*v*(r-1)) * ((r*v*x(1)^2-x(2)^2)/(r*v-1))^(3/2) - 9*F;
end
  댓글 수: 7
Torsten
Torsten 2023년 10월 24일
I don't know what the reason for non-convergence is. The equations seem to be correct - and concerning parameters r, v and F and initial values for x - I don't know if they make sense.
sepideh
sepideh 2023년 10월 24일
I chose r ,v and initial guess based on the paper and it should produces the graph I attached.
lower layer (red one) remained attached to the source, while upper layer (blue one) must over run and detached from the source.

댓글을 달려면 로그인하십시오.

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Systems of Nonlinear Equations에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by