Control the pressure AND the mass flow rate of a pipeflow in Simscape

21 ビュー (過去 30 日間)
David Reimert
David Reimert 2021 年 3 月 9 日
コメント済み: David Reimert 2021 年 4 月 27 日
Hello everyone,
I'm new in the forum and I hope you can help me with my problem in Simulink.
In order to calculate the pressure loss for a pipe at a specific pressure and mass flow rate I'm trying to build a system that provide the desired pressure and mass flow rate in the pipe. In the attachement you can find a simulation model that seems to be a solution. Between two reservoirs I placed a constant mass flow rate source and adjust the pressure by changing the KV-value of the orifice. After trying a few values I get the desired pressure.
My Question: Are there other/better ways to build a system that fulfill the requirements?
I did a lot of research on the internet, but couldn't really find a satisfying answer to my problem.
I hope you can help me.
David
  1 件のコメント
Yifeng Tang
Yifeng Tang 2021 年 4 月 27 日
Looks like your intuition has done a good job help you achieve what you want! Just a simple adjustment would make it a test harness easier to work with. I'll put the details in the answer section.

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

採用された回答

Yifeng Tang
Yifeng Tang 2021 年 4 月 27 日
Looks like you were trying to set the outlet pressure of the pipe by adjusting the orifice parameters. It's definitely reasonable, but as you noted, it can take some trial and error to get the right parameters.
A simpler way would be use the reservoir to set the pressure boundary condition directly. Remove the orifice, then in the outlet reservoir, change the specification to "specified pressure" and set the pressure to what you want the outlet pressure to be. And you are done!
The outlet pressure of the pipe will now be set at the reservoir pressure. The inlet pressure will be provided by the flow rate source, which will provide whatever pressure at its outlet to overcome the pressure drop from the pipe. The pressure of the upstream reservoir also doesn't really matter here, because the source will provide the pressure rise (or drop) needed to push the flow.
This two-reservoir-one-source configuration is very common as a test harness to parametrize components (pipes, pump, valves, etc.)
Hope this makes sense.
  1 件のコメント
David Reimert
David Reimert 2021 年 4 月 27 日
Thank you @Yifeng Tang!
Yes it makes a lot of sense and also it makes things much easier.

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

その他の回答 (0 件)

カテゴリ

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