Archived OpenModelica forums. Posting is disabled.

Alternative forums include GitHub discussions or StackOverflow (make sure to read the Stack Overflow rules; you need to have well-formed questions)


Forgot password? | Forgot username? | Register

simulate() options

simulate() options

HI!,
Does someone know where I can find a more detailed description for the following parameters of the simulate() command?
        numberOfIntervals
        outputInterval
        method
        tolerance
        fixedStepSize.
I notice a difference only if I change the first one.
Thanks in advance,
Francesco

Re: simulate() 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.

Re: simulate() options

Thank you very much for reply.
I'm working in interactive mode..In this case numberOfIntervals, according to the Guide, sets the number of outputs ( and results given ? ) per second..Is that correct?

Thanks,
Francesco

There are 0 guests and 0 other users also viewing this topic