Empty solution in event detection
1 次查看(过去 30 天)
显示 更早的评论
I am solving a DAE system and I am using an event function to restart the solving process at each discontinuity, which are triggered by the event function.
It does not seem to work right, as the event is only detected sometimes (Problem 1).
Moreover, it strangely still stops the solving process event when no Event is detected (Problem 2). I do not know how can this be. In this case, the event solutions are all sol.xe = sol.ie = sol.ye = [ ].
The events are supposed to be detected when u_k1-u_k2 = 0 and when Iak = 1. (I used directions to detect the events on a single direction).
Notice that the graphics shows with a red DOT where the event ocured. In the last point, it does not show the event. I did not continue the solving process in the example below in order to show you more clearly that the integration was actually stopped, but no event was detected (sol.xe,ie,ye = [ ]).
If somebody could explain me what could I be doing wrong or missunderstanding, I will be very gratefull.
Thanks, Nicolas
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!