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 commentaires

darova
darova le 26 Mar 2020
What is the format of data? I suppose it should be meshed?
Paul Safier
Paul Safier le 26 Mar 2020
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 le 26 Mar 2020
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 le 26 Mar 2020
I need inside elements too, to answer your previous question.

Connectez-vous pour commenter.

Réponses (0)

Produits

Version

R2019a

Commenté :

le 26 Mar 2020

Community Treasure Hunt

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

Start Hunting!

Translated by