Good morning,
I am having a problem with matlab solver.
I have to build an ordinary differential equation system which solves all of them (there are 7 equations) simoultaneously in order to find out the desired results.
But when I launch the calculation this is what I have:
>> syms sp(t) vp(t) x(t) z(t) vt(t) pa(t) pb(t)
S = dsolve(diff(sp) == vp,
diff(vp)==0.006421*pb,
diff(x)==1.47*pa^0.8053,
diff(z)==diff(x)*((0.00191)*(2*0.000191-2*x)-(x*x-(0.000191-x)^2))/(0.000191^3) ,
diff(vt)==0.000056839*vp-0.0025*diff(z),
diff(pa)==(697505*0.00167*diff(z)-(0.24*2.47)*0.00167*vp*vp/6-(0.24*2.47)*(0.004+0.00167*z/3)*vp*diff(vp))/vt-(697505*0.00167*z-0.5*0.24*2.47*(0.004+0.00167*z/3)*vp*vp*diff(vt))/(vt*vt),
diff(pb)== diff(pa)*(1+0.5*0.24*vp*vp/(1.5*9.81*1.24*697505))^(-5.16)-pa*vp*diff(vp)*1/(1.5*9.81*697505*(1+0.5*0.24*vp*vp/(1.5*9.81*1.24*697505)))*(1+0.5*0.24*vp*vp/(1.5*9.81*1.24*697505))^(-5.16),
sp(0)==0, vp(0)==0, x(0)==0, z(0)==0, vt(0)==0.000000154, pa(0)==101325, pb(0)==101325 )
Warning: Explicit solution could not be found.
> In dsolve at 197
S =
[ empty sym ]
I need to find out the results solving by time values but as you can see, the only thing I get is an error message.
Can you please me show the steps I have to do in order to solve this problem?
Thank you all for you time and attention
Sincerely
Gerardo

답변 (1개)

Torsten
Torsten 2015년 8월 25일

0 개 추천

It's unlikely that you can find an analytical solution for such a complicated system of ODEs.
Use one of the numerical ODE-integrators (e.g.ODE45) instead of dsolve.
Best wishes
Torsten.

댓글 수: 2

Walter Roberson
Walter Roberson 2015년 8월 25일
The combination of the 3rd and 4th conditions together with the 6th and 7th conditions is intractable. Any 3 of those together provide so little enough information that analytic solvers would just quickly return with some generic integrals, but when you put the 4 together, solvers will run for hours and eat through more than 8 gigabytes of memory trying to solve the problem.
Gerardo Gabriele
Gerardo Gabriele 2015년 8월 25일
Thank you for your help.
Is there any possibility to fix this problem? Using an ode45 calculation maybe?Or trying to create a loop in order to find out the answers? The problem is that the answers must be find simultaneusly as the equations are strictly connected and the last one is based on the partial results of the previous ones.
If possible tell me what I have to do to fix this problem, I would appreciate it very much.
Thank again for your time.
Gerardo

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

카테고리

도움말 센터 및 File Exchange에서 Get Started with MATLAB에 대해 자세히 알아보기

질문:

2015년 8월 24일

댓글:

2015년 8월 25일

Community Treasure Hunt

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

Start Hunting!

Translated by