I need to make an event to force the solver to stop at each time step that it takes to run an algorithm.
Making events (discontinuity) can be done using a clock but the clock is periodic. For example, it makes an event every 100 ms which forces the solver to reduce the time step to meet the events at each 100 ms. I was wondering if there is a way to devise a clock that acts in a variable way. If so, how can I make it act at each solver time step without meddeling the time steps taken by the solver. In other words, I want the solver operate normally and take variable time steps but an event also be imposed at each time step providing the opportunity for running an algorithm.
Mehran Jafari is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.