MATLAB Answers

How to model a channel with mesh

2 views (last 30 days)
Amanda Fawley
Amanda Fawley on 13 Jul 2021
Answered: Chunru on 13 Jul 2021
I am trying to model channel geometry (see red outline below) with mesh that is the shape of a half pipe (see pipe image below). I know what the x,y mesh coordinates are and have code that gives me the x,y location of the channel edges on this plane, but I am struggling to specify the z coordinate at these locations since I need to make it a half circle shape. This channel also has 90 and 180 degree bends in it and I am at a loss on how to calculate/specify the z coordinate for these elements.
I was thinking of trying to use my existing x,y coordinates to obtain reference points in the mesh where I could then use loops to calculate the z value, but my efforts have been fruitless so far.
Does anyone have any suggestions on how to approach this or if there are any functions/resources to help with this?
I'd really appreciate any help.
Channel overview: (note that the red lines indicate the x,y coordinates I can already determine with my existing code. The blue lines are for boundary references and don't contribute to the model otherwise.)
Trying to get this channel shape:

Accepted Answer

Chunru on 13 Jul 2021
Use some 3D software (such as blender) to create the 3d model and then export to a format matlab can read (eg. stl). Otherwise, you have to work out the math of the coordinates.

More Answers (0)

Community Treasure Hunt

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

Start Hunting!

Translated by