FMU Cosimulation using imported variable-step solver
Mostrar comentarios más antiguos
I have a model in Dymola which runs properly (in terms of speed & accuracy) if I use a local variable-step solver.
I imported it in Simulink via FMU, together with related Dymola local solver settings, since I would like to run the model in Simulink in "Cosimulation mode".
However, I have the problem that I must specify the communication stepsize between the FMU and Simulink, which is not trivial since my original solver uses a variable stepsize.
I tried with several values of communication stepsize; but even with relatively high values, the simulation is definetely much slower than in the original Dymola framework. I suspect the problem is not the value itself, but the fact that the FMU solver has a variable stepsize, while the communication stepsize must be fixed.
Of course I could change the settings of the original Dymola solver and use a fixed step, but then I would lose all the advantages of the variable- step solver.
So my general question is: Is there a way to do FMU Cosimulation in Simulink importing an external variable-step solver, without degrading the performance because of the fixed communication stepsize?
If not, is there any best-practice advice that I could follow?
Respuesta aceptada
Más respuestas (0)
Categorías
Más información sobre FMU Importing en Centro de ayuda y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!