State events and fixed-step solvers #2949
-
|
Hello all, Should the simulator search for the events and temporarily ignore the fixed step restriction, or is the fixed step condition leading and should the event thus be shifted to the next sample on the grid? Best regards, |
Beta Was this translation helpful? Give feedback.
Replies: 5 comments 6 replies
-
|
The specification doesn't state anything specific about how integrators work, including fixed step solvers. Note that the Dymola's handling is more advanced than described above. See SAE 2004-01-076 "Realtime Simulation of Detailed Vehicle and Powertrain Dynamics" by Hilding Elmqvist, Sven Erik Mattsson, Hans Olsson, Johan Andreasson, Martin Otter, Christian Schweiger, Dag Brück - https://elib.dlr.de/12173/1/otter2004-sae-realtime.pdf |
Beta Was this translation helpful? Give feedback.
-
Beta Was this translation helpful? Give feedback.
-
|
Without testing, just a quick idea: Wouldn't "Store variables at events" make a difference? |
Beta Was this translation helpful? Give feedback.
-
|
I agree that this is going too much into details of specific tools. I'm happy to take this up with the tool manufacturer, once I work out what the standard says and implies. What I'm trying to work out is the following: is root-finding in state event handling mandatory or optional according to the specification? My conclusion is that the implication is that root finding is mandatory, irrespective of integration method, but I would like confirmation from people who understand the jargon better. |
Beta Was this translation helpful? Give feedback.
-
|
I guess that the bottom line is that the standard only defines the language, which is completely independent of any implementation. |
Beta Was this translation helpful? Give feedback.




The specification doesn't state anything specific about how integrators work, including fixed step solvers.
The goal is that the numerical solution should be as close as possible to the ideal hybrid solution.
Note that the Dymola's handling is more advanced than described above.
It does handle the event at approximately the correct time-point (not only at grid-points), but also adjusts the time to have it on the predefined grid to make it usable in external environments that only handle values at the time grid.
See SAE 2004-01-076 "Realtime Simulation of Detailed Vehicle and Powertrain Dynamics" by Hilding Elmqvist, Sven Erik Mattsson, Hans Olsson, Johan Andreasson, Martin Otter, Christia…