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

Solver option

Solver option


Hi,

I made my model in Dymola to compare the model with Matlab.

In Dymola I used Dassl solver, it works fine but the results are not exactly same with Matlab. The I used Rkfix2 with fixed time step (.001) (Because Matlab use Trapezoidal method, so it is more important to compare with same kind of solver) and I get almost similar result.

Now I am trying to run the same model in OpenModelica. In OpenModelica the Dassl works fine, but RungeKutta solver is not working.

My query is, is there any way I can change the fixed time step in OpenModelica to check if RungeKutta solvers works or not? My final goal is to proof the OpenModelica Model, not the Dymola Model.

Thank you.

Ahsan
KTH

Re: Solver option

You can change the step dize of the rungekutta method by chnaging the numberOfIntervals.

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