필터 지우기
필터 지우기

SimScape MultiBody Solver Step Time - Simulation running longer

조회 수: 24 (최근 30일)
Panagiotis
Panagiotis 2024년 7월 8일 14:41
댓글: Panagiotis 2024년 7월 10일 9:00
Hello,
I am currently working on a multibody model in simscape. I have the following issue:
My simulation time last too much. I set a stop time of 10sec but it lasts around 45sec.
I try to fix that through Configuration parameters -> Solver -> Solver selection fixed-step of 0.0002. But again it lasts 45sec and for bigger fixed-step size (0.002) then an error apears for degenerate mass distribution on different joints.
Could you please give me few ideas or directions to solve this?

채택된 답변

Oliver Jaehrig
Oliver Jaehrig 2024년 7월 9일 14:10
You can try to investigate this issue by using the Solver Profiler:
It can better help you to understand why your model maybe needs more time and maybe you can find some potential ways to optimize your model in terms of speed.
Also it would be good to provide more information what your goal is, it sounds like you neeed a model running in real-time? Do you know if you want to run the model on a HIL (hardware in the loop)-system?
If yes, also consider checking this Simscape documentation:
  댓글 수: 1
Panagiotis
Panagiotis 2024년 7월 10일 9:00
Thank you Oliver,
That was really helpful. Solver Profiler helped to detect the issue and fix it.

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

추가 답변 (0개)

카테고리

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

제품


릴리스

R2023a

Community Treasure Hunt

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

Start Hunting!

Translated by