OpenModelica simulate() options

Modelica is a nice language, unfortunately, the documentation is still lacking a lot of details. For example, there is not much description on the options in the simulate() command.  We can find the following options:

  • numberOfIntervals
  • outputInterval
  • method
  • tolerance
  • fixedStepSize.

I found one reply to this from the forum describing the options:

  • outputInterval and fixedStepSize do not exist in OpenModelica
  • numberOfIntervals changes the step size (why it’s not called stepSize, I do not know). anyway, step size ~ (stopTime-startTime)/numberOfIntervals
  • tolerance is used in dassl (it knows how large an error there is from integrating a derivative); I’m unsure if it’s used when solving non-linear systems or the like
  • method = “euler” “rungekutta” “dassl” “dassl2” “inline-euler” or “inline-rungekutta” (default dassl). Newer omc versions give an error if it finds that you select an unsupported solver.
Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: