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

11 views (last 30 days)
Takahiro Nagano on 28 Aug 2020
Edited: Vasco Lenzi on 2 Sep 2020
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 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.

Show 2 older comments
Takahiro Nagano on 1 Sep 2020
Hi Vasco.
Thank you for your quick response.
I would like to modify the heat transfer coefficient of the refrigerant, so, I will try to rewrite the source code.
Thank you very much.
Takahiro
Tech Logg Ding on 1 Sep 2020
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 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.

Community Treasure Hunt

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

Start Hunting!

Translated by