Using Simulink to create generator that accepts feedback.

55 次查看(过去 30 天)
Hello,
I am trying to create a generator that will accept feedback in order to raise and lower its voltage and frequency. I got a version of this to work using the old black outlined simscape generator model but cant seem to make progress with the blue outlined block. I found an example generator model that has a governor and excitor, I am feeding them a Vref and Wref from my own logic but I keep getting an error regarding my blocks being in an algebric loop. All help is appreciated.
  2 个评论
Shivam Gothi
Shivam Gothi 2024-11-11,9:18
Hello @Yazeed,
can you please share the simulink model ? It will be helpful in debugging and suggesting a good workaround
Yazeed
Yazeed 2024-11-11,14:12
Hello Shivam,
Thank you for your response. I have attached the model here. It is one of the example models that I edited to accept an external Vref and Wref signal so we can control voltage and frequency.

请先登录,再进行评论。

回答(1 个)

Abhishek Kumar Singh
Abhishek Kumar Singh 2024-11-8,16:25
An algebraic loop occurs when a loop in your model is made up entirely of blocks that directly use their input to compute their output within the same time step. This creates a circular dependency, where both output and input values rely on each other simultaneously.
To resolve these issues, you can refer to the following resources:
  1. Understanding Algebraic Loops and General Solutions: https://www.mathworks.com/matlabcentral/answers/95310-what-are-algebraic-loops-in-simulink-and-how-do-i-solve-them
  2. Diagnosing Algebraic Loops: https://www.mathworks.com/matlabcentral/answers/97687-how-can-i-resolve-algebraic-loops-in-my-simulink-model?s_tid=answers_rcts
  3. Why Not to Break Algebraic Loops with Memory Blocks: https://blogs.mathworks.com/simulink/2015/07/18/why-you-should-never-break-an-algebraic-loop-with-with-a-memory-block/
  1 个评论
Yazeed
Yazeed 2024-11-8,16:51
Hi Abhishek,
Thank you for your response! The issue I am running into is my exciter and governor are not solely dependent on feedback. They also require the external Vref and Wref. This same model works perfectly with the black simscape generator model but seems to have issues with the newer block.

请先登录,再进行评论。

类别

Help CenterFile Exchange 中查找有关 Electrical Sensors 的更多信息

产品


版本

R2023a

Community Treasure Hunt

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

Start Hunting!

Translated by