OpenModelica / OMSimulator

The OpenModelica FMI & SSP-based co-simulation environment.
Other
71 stars 50 forks source link

Implement proper state event detection in OMSimulator #1271

Open casella opened 11 months ago

casella commented 11 months ago

Currently, OMSimulator only checks for event-triggering conditions (e.g. zero-crossing functions changing their sign) at each time step, but doesn't try to figure out the exact time when the zero-crossing function changed sign. This results in delays of up to one time step in the triggering of events.

In many cases this is no big deal, but in some cases this may seriously change or disrupt the simulation results.

We should eventually implement a proper state event detection mechanism in OMSimulator.