ode15s DAE problem with the algebraic equation

1 visualización (últimos 30 días)
Iasonas Ioannou
Iasonas Ioannou el 22 de Sept. de 2016
Hello every one. My name is Iasonas.
I currently trying to solve a DAE problem. I have to solve 4*n differential equations and one algebraic equation. The simulation will compared with some experimental results and because the algebraic equation is for a specific variable of an experiment at first I used a polynomial from my experimental results in order to be sure that everything else is correct before i continue.
And all was great. When i use the theoretical equation instead of the fitted results the simulation continue until the half time of the period in question and then i get an error unable to meet integration tolerance. I would like to mention that the result are correct until the error.
When i tried to find any bug I saw that the residual equation had oscillations on the time that the ode solver stops and with the adaptive smaller step of the solver the oscillations are greater ( + - oscillations). I tried a bigger time step, and i debugged all of my code..
I am trying to understand how i could correct it. I was thinking just not to use the ode15s and make my own function using crank- nicolson method so i will eliminate the oscillations. The problem is transient and the boundary conditions and variables of change, and I think that is the reason of making my system stiff after many iterations of the solver. If I said something that is incorrect or if anyone could help I will be thankful
Regards Iasonas.

Respuestas (0)

Categorías

Más información sobre Ordinary Differential Equations en Help Center y File Exchange.

Productos

Community Treasure Hunt

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

Start Hunting!

Translated by