Dahmani Merzaka
Dahmani Merzaka

Reputation: 163

the impact of time step size on the results in OpenModelica

Hello stack overflow community

am curious to know how the time step size value can impact the OpenModelica simulation results .

and how to optimize the sumilation periode so that we can accelerate the simulation to have results in a shorter time and also what does impact the simulation time , like the computer performance and the complexity of the code !!!

Upvotes: 1

Views: 461

Answers (2)

Knot83
Knot83

Reputation: 63

Just to clarify the nomenclatures. When you say in this post 'Step size' are you referring to the Interval parameter?

Moreover I've a couple of questions:

  1. What's the scope of 'Initial time step' and 'Maximum time step'. How are they correlated with Interval and Tolerance?

  2. What's the scope of 'Equidistant time grid' and 'Store variables at events' in the Output tab

Thanks

Upvotes: 0

sjoelund.se
sjoelund.se

Reputation: 3523

If you use an explicit (fixed-step) solver such as Euler, the step size will have a major impact on the stability of the results. If you use an implicit (usually multi-step) solver such as Dassl, the step size will not really impact any performance or results except the values printed to the result-file are interpolated to these points by the solver. If you want to make it run faster and be less accurate, you increase the tolerance of the solver.

https://www.openmodelica.org/doc/OpenModelicaUsersGuide/1.16/solving.html#integration-methods

Upvotes: 2

Related Questions