Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Build custom pipeline block using simscape like SimHydraulics

122 views
Skip to first unread message

li min

unread,
Feb 22, 2009, 7:49:01 AM2/22/09
to
Hi All,
I am trying to modeling pipeline with two-phase flow using simscape language.
So far as I know, source code of blocks in SimHydraulics is concealed from users (At least I can't see the source code). So I can't know the modeling procedure.

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!

Arnaud Miege

unread,
Feb 23, 2009, 4:24:57 AM2/23/09
to

"li min" <limi...@gmail.com> wrote in message
news:gnrhjt$oj8$1...@fred.mathworks.com...

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


li min

unread,
Feb 26, 2009, 1:10:02 AM2/26/09
to
Thank you !
"Arnaud Miege" <arnaud...@nospam.mathworks.co.uk> wrote in message <gntq1a$msq$1...@fred.mathworks.com>...
0 new messages