MATLAB Answers

Where can I find the source code of 3-Zone Pipe (2P)?

조회 수: 3(최근 30일)
Takahiro Nagano
Takahiro Nagano 2020년 8월 28일
편집: Vasco Lenzi 2020년 9월 2일
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

채택된 답변

Vasco Lenzi
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
Vasco Lenzi
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개)

Community Treasure Hunt

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

Start Hunting!

Translated by