Algebraic loop in Simscape?

29 visualizaciones (últimos 30 días)
Tony Castillo
Tony Castillo el 2 de Nov. de 2016
Comentada: Walter Roberson el 8 de Nov. de 2016
Hi everybody, I have a model that work very slow, but until i now it give me logical (i mean into the desired values) outputs, but somebody that saw my model told me, that i should no use neigther unit delay nor memory blocks, because the Simscape negates the use of these blocks, because according him:
"Memory or delay blocks are used to break algebraic loops in regular Simulink models, but Simscape negates the need to do this as it models the differential algebraic equations directly. Actually, in Simscape it is harmful to use delay blocks as it makes it very, very hard for the solver to find an equilibrium"
But that person does not give me other alternatives for sustitute those blocks that i use for break an algebraic loop that is need in my model because i have to make it in real time the measure such as tension and current.
Can someone give me ideas based in your knowledge because it could help me to increase speed and accuracy in my model?

Respuesta aceptada

Kushagr Gupta
Kushagr Gupta el 7 de Nov. de 2016
I understand the question is regarding how to avoid algebraic loops in a simscape model. As the model is not provided, I am going to assume the following scenario:
There is a simulink model and a simscape network exists within it, then the Simscape physical network should not exist within a Simulink algebraic loop. This means that you should not directly connect an output of a PS-Simulink Converter block to an input of a Simulink-PS Converter block of the same physical network.
The following link discusses this scenario in detail and how the situation of an algebraic loop can be avoided:
Moreover, if there is just a simscape physical network, one does not need to worry about algebraic loops within the network as everything happens simultaneously and there is no dependency unless the output is taken to simulink and fed back in, which has been discussed in the link provided above.
Hope this helps!

Más respuestas (2)

Walter Roberson
Walter Roberson el 7 de Nov. de 2016

Tony Castillo
Tony Castillo el 8 de Nov. de 2016
Here you can see the model where i use a Unit Delay to break the feedback.
  1 comentario
Walter Roberson
Walter Roberson el 8 de Nov. de 2016
That is unreadable. You should attach the model itself.

Iniciar sesión para comentar.

Categorías

Más información sobre Physical Units en Help Center y File Exchange.

Productos

Community Treasure Hunt

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

Start Hunting!

Translated by