To getting start, I wonder who to build custom pipeline block (especially the "Segmented Pipeline" block ) using simscape language like the blocks in SimHydraulics.
Does anyone have any advice or any example code ?
If you have any experience, please do not hesitate to inform me,thank you very much!
Hi,
The segmented pipeline block is built using Simscape blocks, see
http://www.mathworks.com/access/helpdesk/help/toolbox/physmod/hydro/ref/segmentedpipeline.html.
The number of segments used is variable and depends on the user input. You
would need to first build two-phase flow models of the various components
used for the segmented pipeline block and then construct the segmented
pipeline. Before you can even build models of the components, you would need
to define a new domain with the appropriate through and across variables,
corresponding sensor blocks and a reference block. Unfortunately, I don't
have any code for this, but have a look at the electro-chemical demo, which
goes through that same process for a different domain:
http://www.mathworks.com/access/helpdesk/help/toolbox/physmod/simscape/lang/brswhgv-1.html
Hope this helps,
Arnaud