algebraic loop and Simscape ?

조회 수: 3 (최근 30일)
aft
aft 2011년 9월 26일
Hi,
I am having a bad time dealing with algebraic loops in my inverted pendulum model. Leaving it to simulink to solve using its internal solvers takes a lot of time while adding an integer delay modifies my results in an undesirable way. On the following link of Mathworks,
on the work-flow chart they say in the last box that converting the model "Simscape" is also a solution. I am wondering HOW ? it looks to me all the same thing ?
anybody has an idea ?
thanx in advance
khawaja

채택된 답변

Guy Rouleau
Guy Rouleau 2011년 9월 26일
2D and 3D physical systems like a pendulum on cart are most easily represented by a Differential Algebraic Equations (DAE), and not only a set of Ordinary Differential Equations (ODE). In Simulink, a DAE causes an algebraic loop.
The Simscape (and SimMechanics) solver is designed to solve DAE better than the Simulink algebraic loop solver. In your case, for 2D or 3D, the solution would be SimMechanics:
To understand the differences between Simulink and SimMechanics, I recommend starting with this post Seth and I made some time ago:
Notice the sentence "if implemented as written above, you get algebraic loops". This means that many DAEs can be rewritten into a set of ODEs, but this can be a pretty complex math challenge and I am not going into details here.

추가 답변 (1개)

Zafb
Zafb 2011년 9월 28일
just the answer i was looking for :). thanx a lot

카테고리

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

Community Treasure Hunt

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

Start Hunting!

Translated by