Why do Transfer Blocks sometimes generate noise ?

2 ビュー (過去 30 日間)
Matthias Menge
Matthias Menge 2022 年 3 月 2 日
編集済み: Pratik 2024 年 2 月 1 日
Hello,
I often use transfer functions or transport delays to break up algebraic loops in my models. I pay attention to choose time constants and delays which are are multiple of the fastest rate in my simulation.
But sometimes those blocks add peaks to the signals as shown below.
The green signal is the output and the black signal the input of the block depicted on the right side.
Does anybody know why those peaks occur or are there better ways to break up the loops instead of transport delay and transfer functions ?
EDIT:
As requested I added an Example Model. Unfortunatly I only had an example at hand which also uses Simscape electrical Blocks.
I hope this helps never the less.
  4 件のコメント
Matthias Menge
Matthias Menge 2022 年 3 月 3 日
Hello Mathieu and Benjamin,
than you very much for your quick answers. I added an Example. As mentioned in the Edit it unfortunately uses Simscape Electrical Blocks.
I use the standard solver configuration, but will gladly look into using fixed step solver.
Mathieu NOE
Mathieu NOE 2022 年 3 月 3 日
hello
sorry but I am not a simscape user... I will not be able to do anything on your model

サインインしてコメントする。

採用された回答

Pratik
Pratik 2024 年 2 月 1 日
編集済み: Pratik 2024 年 2 月 1 日
Hi Matthias,
As per my understanding, you want to break up algebraic loops in your Simulink model and for that you are using a Transfer function block. However, this block seems to be creating noise in the signal.
If you're observing spikes in the simulation after introducing a transfer function to break an algebraic loop, it's possible that the dynamics introduced by the transfer function are not negligible.
As a workaround, “Transport Delay” block can be used with a very small delay time. For the example model provided a “Transport Delay” block with time delay of 1e-4 works fine.
Please refer to the documentation of “Transport Delay” Block for more information:
Please refer to this MATLAB Answers post for more information about algebraic loops and how to solve them:
I Hope this helps!

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeGeneral Applications についてさらに検索

製品


リリース

R2021b

Community Treasure Hunt

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

Start Hunting!

Translated by