Where can I find the source code of 3-Zone Pipe (2P)?
7 ビュー (過去 30 日間)
古いコメントを表示
I would like to know where the source code (.ssc file) of 3-Zone Pipe (2P) (Simscape/Fluids/Two-Phase Fluid/Pipes & Fittings) is available.
For example, about Pipe (2P), I confirmed that it is available below.
C:\Program Files\MATLAB\R2020a\toolbox\physmod\simscape\library\m\+foundation\+two_phase_fluid\+elements
0 件のコメント
採用された回答
Vasco Lenzi
2020 年 8 月 31 日
Hi Takahiro
unfortunately most of the components in the Simscape Fluids library are not open. Only Simscape Foundation library is fully open, where you found the simple Pipe (2P).
Why are you looking for the source code? To understand better how it was implemented, or to modify it?
We try to provide all the equations/explanations in the documentation for the block. Pelase let us know if somethings were not clear enough.
5 件のコメント
Tech Logg Ding
2020 年 9 月 1 日
Hi Vasco and Takahiro,
I am also interested in the source code as I would like to understand how the zone lengths are implemented. I am also interested in changing the heat transfer coefficients to simulate a heat exchanger better. On a side note, in order to use the suggested method, different properties of the fluid is still required (fluid heat capacity etc.) to calculate the heat transfer coefficients. Therefore, that method will be quite difficult to implement correctly.
The 2P pipe model does not account for dynamic phase change and I think you need to connect multiple blocks together to mimic the effects of a Finite Volume (FV) model.
Besides that, for the 3 Zone pipe model, how can I tune the dynamic response? Can it only be achieved through the phase change time constant?
Thank you very much for your time.
Regards,
Ding
Vasco Lenzi
2020 年 9 月 2 日
編集済み: Vasco Lenzi
2020 年 9 月 2 日
Hi Ding
if you are looking for heat exchanger based on 2 phase domain, you could check out the prerelease for 20b if you can. We have a new heat exchanger Thermal Liquid - 2Phase coming up. Do remember that 20b is a beta release and is not supposed to be used for production work, but to check out new feature. Take a look at the block and see if it could fit your needs before modeling something new.
The 2P pipe model does not account for dynamic phase change and I think you need to connect multiple blocks together to mimic the effects of a Finite Volume (FV) model.
That's correct, see example:
Besides that, for the 3 Zone pipe model, how can I tune the dynamic response? Can it only be achieved through the phase change time constant?
If I understand your question correctly, yes only through that.
その他の回答 (0 件)
参考
カテゴリ
Help Center および File Exchange で Two-Phase Fluid Library についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!