How can I solve the error generated by a T-Junction when there is a Parallel Channels block in my simscape fluid model?

3 ビュー (過去 30 日間)
When I try to simulate this model, there is no problem:
But when I add a T-Junction block, it generates this error:
In the last picture you can see settings from T-Junction and Parallel Channels blocks. Areas and Diameters are all the same in the model.
  2 件のコメント
Yifeng Tang
Yifeng Tang 2023 年 6 月 30 日
The warning message suggests conflicting high-priority initial conditions. That may lead to unexpected initial conditions as Simscape TRIES to satify most of the specified initial conditions. You may use the variable viewer to see what exact values to which the model initialized to.
If you can share the model, it'll make it easier for the community to help diagnose.

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

回答 (1 件)

Yifeng Tang
Yifeng Tang 2023 年 7 月 7 日
Hi Miguel,
In the model you shared, the T-junction has the default initial flow target of 0 at all ports and "high" priority. This is in conflict with the mass flow rate source you connected to the A port, and the simulation failed to find a consistent set of initial conditions to start.
The solution is simple though. Make the priority "None" for these flows, so at t=0 the solver won't try to make the flow at each port zero. Instead they'll be determined by the ICs from other blocks, in this case the flow rate source. See below.
This makes the model run.

カテゴリ

Help Center および File ExchangeUpgrading Hydraulic Models to Use Isothermal Liquid Blocks についてさらに検索

製品


リリース

R2023a

Community Treasure Hunt

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

Start Hunting!

Translated by