[Simulink] "virtual" algebraic loop vectorizing a block

조회 수: 2 (최근 30일)
fabien grand perret
fabien grand perret 2017년 4월 6일
편집: fabien grand perret 2017년 4월 7일
Hello
for a while I use this trick (vectorize a block) to implement n block
which is the same than this :
but simulink see an algebraic loop (which doesn't really exist) :
if fact my model is more complex (Saint Venant equations)
Until then there was an error, and an integrator bloc was breaking the "loop"
but now I correct this error and the loop come back beacause the integrator had disappear from the "looped signal" (example) :
I can't break the loop using usual solutions (delay, filter ...) because it would make false my differentials equations
the only solution I see is to write the developped form (fig 2) using "addBlock" fonction from mask
my question is :
- do you see a solution to "break the loop"
- do you know another way to "vectorize" a block
thanks (and sorry for my English)
Fabien

답변 (1개)

User_in_Gim
User_in_Gim 2017년 4월 7일
Hi Fabien,
You are using the previous value to find your current value so yes, there is an algebric loop.
The most efficient way to "break" the loop is to place your integrator loop on your feedback signal.
With this implementation, you will not have an algebric loop.
  댓글 수: 1
fabien grand perret
fabien grand perret 2017년 4월 7일
편집: fabien grand perret 2017년 4월 7일
thans but i can't use this solution
this solution is OK when you loop for control command (PID ...) but here my model is a system of partial differential equations where I use this tricks to discretize on x and I keep "d/dt part" so a delay introduce an error on "d/dt part"
and i am not using the previous value to fing the current value !! see fig 2

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

카테고리

Help CenterFile Exchange에서 Classical Control Design에 대해 자세히 알아보기

제품

Community Treasure Hunt

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

Start Hunting!

Translated by