Empty solution in event detection

1 回表示 (過去 30 日間)
Nicolas Mira Gebauer
Nicolas Mira Gebauer 2020 年 10 月 28 日
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 件)

カテゴリ

Help Center および File ExchangeOrdinary Differential Equations についてさらに検索

製品


リリース

R2017a

Community Treasure Hunt

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

Start Hunting!

Translated by