How to model a channel with mesh
3 ビュー (過去 30 日間)
古いコメントを表示
Hello.
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:
0 件のコメント
採用された回答
Chunru
2021 年 7 月 13 日
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.
0 件のコメント
その他の回答 (0 件)
参考
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!