How to speed up simulink simulation including a simscape model ?

35 Ansichten (letzte 30 Tage)
lady bird
lady bird am 6 Nov. 2018
Beantwortet: Steve Miller am 1 Apr. 2019
Hello all;
How to change simulation frequency in a simulink model that includes a simscape multibody structure ?
Currently, i'm using variable-step solver ; with ODE 45. Relative tolerance 1e-3 time tolerance 10*128*eps algorithm adaptive
Because two slow i cannot see the motion in the mechanics explorer
Thank you Sincerely yours
  1 Kommentar
Nicolas Schmit
Nicolas Schmit am 12 Dez. 2018
I would suggest you first use the solver profiler to look for potential causes of slow simulation.

Melden Sie sich an, um zu kommentieren.

Antworten (1)

Steve Miller
Steve Miller am 1 Apr. 2019
The solver profiler is a good option. It is very difficult to give general guidance as all models are different and have their own needs. Look at this video:
Settings you can try:
  1. Try solver ode23t
  2. Set your Zero-Crossing Algorithm back to non-adaptive and pay close attention to the diagnostics. If you need Adaptive for a Simscape Multibody model, you likely have some redundant zero-crossings that are making the step size quite small.
--Steve

Kategorien

Mehr zu Simulation Setup finden Sie in Help Center und File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by