Simscape simulation using operating points

2 vues (au cours des 30 derniers jours)
Timo Dietz
Timo Dietz le 1 Mar 2023
Modifié(e) : Timo Dietz le 10 Mar 2023
Hello,
I'm trying to proceed a simulation starting at an operating point of another simulation run.
Due to convergence issues I have to reduce the simulation step size for the second sim run and it seems like that change inside the
"Solver Configuration" block actually changes the model. Thus, proceeding with the former operating point is not possible, anymore.
Is there a workaround or is it currently simply not possible to change the solver configuration while using stored operating points?
Thanks a lot!

Réponses (1)

Meet
Meet le 10 Mar 2023
When you change the solver configuration in Simulink, it can affect the behaviour of the simulation, including the results of a previously stored operating point. This is because the solver configuration affects how the simulation integrates the model equations, and changing the solver configuration can change the way the equations are integrated.
One possible workaround is to manually adjust the solver settings to try to match the settings used in the original simulation run as closely as possible. This might involve adjusting the step size, tolerance, or other settings in the solver configuration block. You can try using the "View/Edit Operating Point" feature in Simulink to adjust the stored operating point to match the new solver settings.
Another option is to use a fixed-step solver with a very small step size for both simulation runs. This can help to ensure that the simulation runs are consistent and that the operating point can be transferred between them.
Ultimately, it may not be possible to precisely reproduce the operating point from the first simulation run if the solver configuration is changed significantly. In this case, it may be necessary to re-run the first simulation with the new solver settings to generate a new operating point that is compatible with the second simulation run.
  1 commentaire
Timo Dietz
Timo Dietz le 10 Mar 2023
Modifié(e) : Timo Dietz le 10 Mar 2023
Thanks for the answer.
Actually, I'm using fixed step simulation and it's not even possible to e.g. change to step size to 1us, when the operating point has been done with 2us.
I assumed, that this way the simulation for sure is able to match the last point.
My impression is, that Simulink does not even try to re-calulcate the next point but just checks whether changes have been done or not. If so, the re-use of a former operating point is rejected. But maybe I'm wrong.
I will give your proposal a try :-)

Connectez-vous pour commenter.

Catégories

En savoir plus sur Variable Initialization dans Help Center et File Exchange

Produits


Version

R2022b

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by