How to speed up simulink simulation including a simscape model ?

조회 수: 33 (최근 30일)
lady bird
lady bird 2018년 11월 6일
답변: Steve Miller 2019년 4월 1일
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
Nicolas Schmit
Nicolas Schmit 2018년 12월 12일
I would suggest you first use the solver profiler to look for potential causes of slow simulation.

댓글을 달려면 로그인하십시오.

답변 (1개)

Steve Miller
Steve Miller 2019년 4월 1일
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

카테고리

Help CenterFile Exchange에서 Assembly에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by