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.
darova
darova 2020 年 3 月 26 日
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