I Simulink many components have the option to turn “zero crossing detection” on or off, which has a large influence on the simulation time, stability and accuracy.
How is this issue handled in ModelingToolkit?
I Simulink many components have the option to turn “zero crossing detection” on or off, which has a large influence on the simulation time, stability and accuracy.
How is this issue handled in ModelingToolkit?
For convenience of readers not familiar with Simulink, let me add that “zero-crossing detection” as used in Simulink is essentially implemented as ContinuousCallback in DifferentialEquations.jl. The question can boil down to the options of ContinuousCallback used within ModelingToolkit, can’t it?