Breaking an algebraic loop

8 visualizaciones (últimos 30 días)
Mathis Sterling Allen
Mathis Sterling Allen el 9 de Dic. de 2020
Editada: Jon el 9 de Dic. de 2020
My model has an seemingly unsolvable algebraic loop in it. It is continous-time, so I put in a quick filter in the loop to try to break it. All that did was make it run for less than a microsecond simulation time with many small steps ( < 1 ns). The total simulation time I trying to do is 0.25 s. Below is a picture of my model. The places in red are the places where I have tried to put the filters in and the blue is just to highlight where they are now. The S-function block seems to work as a lookup table. My controllers have worked when the plant I was working on was just a set of EOM's.
  4 comentarios
Walter Roberson
Walter Roberson el 9 de Dic. de 2020
I notice that the signal [iq] also goes into the block F Calculator, but that you did not attempt a filter there whereas you put a filter btween the signal [iq] and the input iq to Fq SMC . I wonder if that is a problem?
Can you ask MATLAB to highlight the algebraic loop, and post an image of the highlighted version ?
Mathis Sterling Allen
Mathis Sterling Allen el 9 de Dic. de 2020
With the filters removed, the loop is highlighted below.

Iniciar sesión para comentar.

Respuestas (1)

Jon
Jon el 9 de Dic. de 2020
I usually put in a delay block with a relatively small value set for the one sample delay to break algebraic loops. If you use a filter, of course you should be sure that the numerator polynomial is lower order than the denominator so that there is no direct feedthrough.
  2 comentarios
Mathis Sterling Allen
Mathis Sterling Allen el 9 de Dic. de 2020
Delay blocks do not seem to help. The transfer function circled in blue is the formula I am using for all the filters. I have tried 1e-6, 1e-3, and 1 for time constants and all have had small time steps then throw an error before a microsecond has passed in a 0.25 s simulation time run.
Jon
Jon el 9 de Dic. de 2020
Editada: Jon el 9 de Dic. de 2020
Your model is too complicated for me to see what the specific problem is just by looking at a screen shot. So I can only give you generic suggestions as follows. Algebraic loops come from a cyclic sequence of blocks that all have direct feedthrough. Direct feedthrough implies that the bandwidth of the element is also infinite. There will be no high frequency rolloff. Any actual system will eventually roll off, so you can look to see if your elements are overly idealized/simplified resulting in direct feeedthrough. Also are the SMC blocks sliding mode controllers? I have never tried simulating them, but from my understanding sliding mode controllers are based upon chattering phenomena, so you have to be very careful that your plant has enough low pass characteristics to not have the chattering frequency get infinititely high.

Iniciar sesión para comentar.

Productos


Versión

R2020a

Community Treasure Hunt

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

Start Hunting!

Translated by