How to model a channel with mesh

조회 수: 3 (최근 30일)
Amanda F
Amanda F 2021년 7월 13일
답변: Chunru 2021년 7월 13일
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:

채택된 답변

Chunru
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개)

카테고리

Help CenterFile Exchange에서 2-D and 3-D Plots에 대해 자세히 알아보기

제품


릴리스

R2021a

Community Treasure Hunt

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

Start Hunting!

Translated by