Where can I find the source code of 3-Zone Pipe (2P)?
3 views (last 30 days)
Show older comments
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 Comments
Accepted Answer
Vasco Lenzi
on 31 Aug 2020
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 Comments
Vasco Lenzi
on 2 Sep 2020
Edited: Vasco Lenzi
on 2 Sep 2020
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.
More Answers (0)
See Also
Categories
Find more on Two-Phase Fluid Library in Help Center and File Exchange
Products
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!