Create 3D Geometry for PDE Toolbox

I am having trouble creating the geometry of the attached image for use in the PDE toolbox. I have tried several things: i) reworking the examples from the FileExchange code stlwrite by Sven Holcombe, ii) the use of the isosurface function, iii) the use of the alphashape function. All are failing. Any tips would be appreciated!

댓글 수: 5

darova
darova 2020년 3월 26일
What is the format of data? I suppose it should be meshed?
Paul Safier
Paul Safier 2020년 3월 26일
Yes, it should be meshed. It needs to be the input geometry to the PDE Toolbox. It could also be in the form of and STL file as there are lots of examples in the Matlab documentation that simply read in the geometry from an STL file.
I should also mention, that I have tinkered with the multicuboid command but that seems to have limitations to make this shape.
so you have to create only surface or inside elements?
here is simple part of it:
s = 1;
w = 1;
h = 2;
d = 1;
x = [0 s+w s+w s s 0];
y = [h+d d+h 0 0 h h];
patch(x,y,'r')
axis equal
Paul Safier
Paul Safier 2020년 3월 26일
Ah. I ran that and see the idea. Thanks. I will try and create the other faces to complete the 3D geometry. Do you know if this route, however, can lead to a meshable geometry to use in a PDE model?
Paul Safier
Paul Safier 2020년 3월 26일
I need inside elements too, to answer your previous question.

댓글을 달려면 로그인하십시오.

답변 (0개)

카테고리

제품

릴리스

R2019a

질문:

2020년 3월 25일

댓글:

2020년 3월 26일

Community Treasure Hunt

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

Start Hunting!

Translated by