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 ?
Afficher commentaires plus anciens
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 commentaire
Daniel Jovin
le 23 Fév 2018
Pujari, did you ever manage to solve this system? I am trying to solve a similar system myself.
Réponses (1)
Torsten
le 25 Oct 2016
Modifié(e) : Walter Roberson
le 26 Oct 2016
0 votes
Take a look at the section "Solve Robertson Problem As Semi-Explicit Differential Algebraic Equations (DAEs)" under
Best wishes
Torsten.
5 commentaires
PUJARI MURAGA
le 26 Oct 2016
Torsten
le 26 Oct 2016
Why ? The example exactly does what you are searching for: it handles two differential equations and one algebraic equation simultaneously.
Best wishes
Torsten.
PUJARI MURAGA
le 3 Nov 2016
Torsten
le 3 Nov 2016
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.
PUJARI MURAGA
le 3 Nov 2016
Catégories
En savoir plus sur Ordinary Differential Equations dans Centre d'aide et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!