Clear Filters
Clear Filters

Simscape simulation using operating points

3 views (last 30 days)
Timo Dietz
Timo Dietz on 1 Mar 2023
Edited: Timo Dietz on 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!

Answers (1)

Meet
Meet on 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 Comment
Timo Dietz
Timo Dietz on 10 Mar 2023
Edited: Timo Dietz on 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 :-)

Sign in to comment.

Categories

Find more on Variable Initialization in Help Center and File Exchange

Products


Release

R2022b

Community Treasure Hunt

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

Start Hunting!