ssc function vs 2 phase liquid pipe

4 ビュー (過去 30 日間)
Mirsad Hyder Shah
Mirsad Hyder Shah 2022 年 1 月 24 日
回答済み: Yifeng Tang 2022 年 7 月 1 日
Hello everyone,
I noticed something unusual in my simulation. I am modelling a heating system for a building, when I use the normal 2 phase liquid: Pipe(TL) the simulation halts at some point e.g 5004.210 seconds and after 20 minutes it slowly increases to 5005.572 seconds and then gives me an error saying 'Solver failed to converge at 5005.572 seconds'. However, when I use the same simulation with the source code of the Pipe(TL) and use it with a ssc function, the simulation runs smoothly. Is it some sort of a solver issue and if so, what could be causing this?

回答 (1 件)

Yifeng Tang
Yifeng Tang 2022 年 7 月 1 日
What is "normal 2 phase liquid: Pipe(TL)"?
One tool that may be helpful in such cases is the Solver Profiler. It help you examine solver and model behavior to identify issues that can contribute to slow or failing simulation.
https://www.mathworks.com/help/simulink/slref/solverprofiler.html

カテゴリ

Help Center および File ExchangeGas Models についてさらに検索

製品


リリース

R2020b

Community Treasure Hunt

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

Start Hunting!

Translated by