Solve simultaneously 2 ODE & one Non linear algebraic equation. And all are dependent to each other. Is it possible to solve them in a single Function file in MATLAB ?

조회 수: 2 (최근 30일)
Example : dy/dt=z*x-2*y^2; dx/dt=x*z^2-sinh(y); z=x^2*y*asinh(z);
I need to solve it simultaneously and need plots between y vs. t & x vs.t & z vs.t

답변 (1개)

Torsten
Torsten 2016년 10월 25일
편집: Walter Roberson 2016년 10월 26일
Take a look at the section "Solve Robertson Problem As Semi-Explicit Differential Algebraic Equations (DAEs)" under
Best wishes
Torsten.
  댓글 수: 5
Torsten
Torsten 2016년 11월 3일
Suitable solvers in MATLAB for DAE-systems are ode15s or ode15i. Usually, it is very important that your initial conditions for the solution variables are consistent, i.e. that the algebraic equations are satisfied when the initial values are inserted.
This is the only advice I can give because I don't know your specific DAE-system.
Best wishes
Torsten.

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

카테고리

Help CenterFile Exchange에서 Ordinary Differential Equations에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by