FMPy icon indicating copy to clipboard operation
FMPy copied to clipboard

Set maxsteps of the CVode solver

Open jonathanwvd opened this issue 2 years ago • 2 comments

I need to change the maxsteps parameter of the CVode solver. Is it possible to do it using FMPy?

jonathanwvd avatar May 22 '23 12:05 jonathanwvd

If you're comfortable hacking the source code you can set maxNumSteps in https://github.com/CATIA-Systems/FMPy/blob/main/fmpy/simulation.py#L997:

solver = CVodeSolver(..., maxNumSteps=1000)

t-sommer avatar May 23 '23 09:05 t-sommer

I will do this. Thank you very much. It would be helpful if we could set this input for the simulate_fmu function.

jonathanwvd avatar May 23 '23 16:05 jonathanwvd