Initial condition from output of another Integrator block?

4 ビュー (過去 30 日間)
Raúl Rivera
Raúl Rivera 2025 年 1 月 23 日
コメント済み: Sam Chak 2025 年 1 月 24 日
Hello, I want to know how can I get the end state from an integrator block and put it in as initial condition from another integrator block.
Both get the same initial condition , i want to get the end of the output value from the first integrator block as input for the second integrator block instead. I want to apply this for a in series-reactor set,so the output values from the first reactor are the input from the second.Thanks in advance
  1 件のコメント
Sam Chak
Sam Chak 2025 年 1 月 24 日

Please show the 2nd-order differential equation and supply the initial condition of the states, so that we can advise you how to properly construct the graphical model in Simulink.

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

回答 (1 件)

Walter Roberson
Walter Roberson 2025 年 1 月 23 日
Your use of a 1/s block instead of a 1/z block shows that you are using Continuous time. As such, all of the blocks theoretically run at the same time (unless you have delay-related blocks, which you do not have.) The algebraic solver tries to calculate ODE solutions that makes the blocks simultaneously consistent.
You therefor cannot have the output of the first block become the initial input for the second block: the two blocks are run at the same time.
It would be different if you had a delay-related block between the two. There are several delay-related blocks, but often the easiest to use is the Transfer Function https://www.mathworks.com/help/simulink/slref/transferfcn.html such as s/(s + 1e-8)

カテゴリ

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

タグ

製品


リリース

R2024a

Community Treasure Hunt

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

Start Hunting!

Translated by