ode15s DAE problem with the algebraic equation
1 次查看(过去 30 天)
显示 更早的评论
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.
0 个评论
回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Ordinary Differential Equations 的更多信息
产品
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!