Non linear boundary value problem with infinity.How to solve?

dx/dphi= ((b*cos(phi))/((c*((z/b)-L))-(b*(sin(phi)/x))));
dz/dphi= ((b*sin(phi))/((c*((z/b)-L))-(b*(sin(phi)/x))));
Boundary conditions:
dz/dx=tan(124.119) at (xc,zc) xc=0.39047; zc=0.26333;
z=L=0.144017750497892 at x=infinity

답변 (1개)

Torsten
Torsten 2018년 5월 23일

1 개 추천

Use dz/dx = dz/dt / dx/dt and the initial condition z(0.39047)=0.26333 to solve your system from above. The condition at x=infinity will either be satisfied or not - you cannot prescribe it.
Best wishes
Torsten.

댓글 수: 12

Are you suggesting the use of ode45? If so, I have already used z(0.39047)=0.26333 but I do not understand where will I be able to apply the dz/dx.
Thanks
You can't apply this condition.
If by chance,
(((b*sin(phi))/((c*((z/b)-L))-(b*(sin(phi)/x)))))/((b*cos(phi))/((c*((z/b)-L))-(b*(sin(phi)/x)))) = tan(124.119)
for (x,z)=(0.39047;0.26333), you are in luck.
Best wishes
Torsten.
Purush otham
Purush otham 2018년 5월 23일
편집: Purush otham 2018년 5월 23일
Hi attached image for original problem, I need to solve it. What method should I use?
regards
phic=124.119 at xc=0.39047; zc=0.26333;
dx/dphi= ((b*cos(phi))/((c*((z/b)-L))-(b*(sin(phi)/x))));
dz/dphi= ((b*sin(phi))/((c*((z/b)-L))-(b*(sin(phi)/x))));
Please state the complete problem without your own modifications.
Hi Torsten, I apologize for the inconvenience but as far as I see all the above data is all that is present and needed to solve and definitely accurate.
What are b,c,R,rho1,rho2 ?
Purush otham
Purush otham 2018년 5월 23일
편집: Purush otham 2018년 5월 23일
Hi,
b,R and c are constants.
I have edited the original comment. I need to integrate dx/dphi and dz/dphi which is actually obtained from a single non linear 2nd ode.
Does
((b*sin(phi))/((c*((z/b)-L))-(b*(sin(phi)/x))))/((b*cos(phi))/((c*((z/b)-L))-(b*(sin(phi)/x))))
at xc,zc,phic equal tan(phic) ?
yes it actually does.
ok, so the 1st boundary condition is satisfied (dz/dx=tan(phic) at (x,z)=(xc,zc)).
And what do you get if you use ODE45 to integrate the two first order ODEs for x and z ? Does x-> Inf ? Does z-> L simultaneously ?
When I integrate the above the obtained result does not satisfy the conditions. I did not understand exactly what you mean by the 1st boundary condition satisfied. If by satisfied you mean by substitution, then yes.If by ode45 or bvp, then no. Wait I have attached the code:
format long
xini=0.39047;
zini=0.26333;
phiini=124.119;
stepsize=1e-4;
R=((xini/sin(deg2rad(phiini))))
for beta=45
for b=1
c=(beta/(b^2));
L=((2/c)*((2/R)-(1/b)))
for phifin=180;
%code begins
phi1=deg2rad(phiini);
phi2=deg2rad(phifin);
f=@(phi,x)[((b*cos(phi))/((c*((x(2)/b)-L))-(b*(sin(phi)/x(1)))));((b*sin(phi))/((c*((x(2)/b)-L))-(b*(sin(phi)/x(1)))))];
[phi,xa]=ode45(f,[phi1:stepsize:phi2],[xini zini]);
X=xa(:,1);
Z=xa(:,2);
plot(X,Z,'or') %xa(:,1)=xvalues & xa(:,2)=zvalues
ylabel('z axis')
xlabel('x axis')
title('tails')
end
end
end
When I integrate the above the obtained result does not satisfy the conditions. I did not understand exactly what you mean by the 1st boundary condition satisfied. If by satisfied you mean by substitution, then yes.If by ode45 or bvp, then no.
But you said that
(b*sind(phiini)/(c*(zini/b-L)-b*sind(phiini)/xini))/(b*cosd(phiini)/(c*(zini/b-L)-b*sind(phiini)/xini))-tand(phiini)=0
so dz/dx = tan(phic) at (xc,zc) holds.
I don't understand what you mean by "the obtained result does not satisfy the conditions".
But the condition z=L at x=Inf is irritating. There must be a second-order ODE that you did not yet mention for which two boundary conditions have to be imposed.
Best wishes
Torsten.

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

카테고리

도움말 센터File Exchange에서 Loops and Conditional Statements에 대해 자세히 알아보기

질문:

2018년 5월 23일

댓글:

2018년 5월 23일

Community Treasure Hunt

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

Start Hunting!

Translated by