Solving an ODE system with dsolve function

조회 수: 7 (최근 30일)
Alessio Pricci
Alessio Pricci 2022년 10월 15일
편집: Jan 2022년 10월 15일
Hi everyone,
I am trying to solve the following system of ODEs with the dsolve command:
syms h11(r) T11(r) f11(r)
R=1e-3;
Tw=500;
ode1=3508*exp(7463/2000 - T11(r)/100)*diff(f11(r), r)^(6/5) - (9*(r*diff(T11(r), r, r) + diff(T11(r), r)))/(50*r) == 0;
ode2=- (9*(r*diff(h11(r), r, r) + diff(h11(r), r)))/(50*r) - (877*exp(7463/2000 - T11(r)/100)*h11(r)*diff(f11(r), r)^(6/5))/25 == 0;
odes=[ode1;ode2];
cond1=f11(R)==0;
cond2=T11(R)==Tw;
cond3=h11(0)==0;
cond4=h11(R)==0;
cond5=subs(diff(h11,r),r,0)==0;
conds = [cond1; cond2; cond3; cond4; cond5];
dsolve(odes,conds);
I would like to find the unknowun function f11, T11 and h11 based on the previous ODE system, but the following error appears:
Expecting an ODE in the specified variable.
I would appreciate Your help in finding a solution for this problem.
Best regards,
AP
  댓글 수: 3
Alessio Pricci
Alessio Pricci 2022년 10월 15일
Thanks for your reply, Torsten.
I considered also this way, but I managed to solve only problems where there is a single ODE with its boundary conditions.
How to perform this for a system, as in this case?
Torsten
Torsten 2022년 10월 15일
편집: Torsten 2022년 10월 15일
There are many examples in the documentation for systems.
Both examples under
are systems of two equations.
In your case, there would be 4 equations (T11, T11r, T11rr, f11)

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

답변 (0개)

카테고리

Help CenterFile Exchange에서 Equation Solving에 대해 자세히 알아보기

제품


릴리스

R2021b

Community Treasure Hunt

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

Start Hunting!

Translated by