How to solve coupled differential equations using ode45
이전 댓글 표시
Hi all,
I have four couples ODE's to be solved the equations can be seen in the attachment with boundary conditions.
I am having diffuculties in solving them using ODE 45.
Do you have any idea about how I can solve these ODE's.
Thanks in advence
댓글 수: 2
darova
2019년 3월 10일
Can you please rewrite your equations like:
And describe what constants and variables are?
Star Strider
2019년 3월 10일
Do something like this to convert your system to an anonymous function:
syms delta rho_l h_lv phi w_fg v_lp_l delatPrime P_v Y
... CODE ...
[VF, Sbs] = odeToVectorField(ode1, ode2, ode3, ode4);
odesys = matlabFunction(VF, 'Vars',{t, Y, [delta, rho_l, h_lv, phi, w_fg, v_l, p_l, delatPrime, P_v]});
then use bvp4c to do the integration with your chosen boundary conditions.
See the documentation for bvp4c and the other functions I use here to understand how to use them with your system.
답변 (0개)
카테고리
도움말 센터 및 File Exchange에서 Ordinary Differential Equations에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!