Stacked Cuboid for PDE Domain
Show older comments
Can the following domain be created for use in the PDE Toolbox? It does not seem that ordinary operations with the multicuboid function can stack cuboids with different width and heights, but is there another way?
Thanks!

Accepted Answer
More Answers (2)
Usually in such cases the domain is divided into subcubes that share common faces.
E.g. the upper cube could be divided into 9 obvious subcubes: 3 in the left part, 3 in the middle and 3 in the right part.
2 Comments
Paul Safier
on 8 Feb 2024
Edited: Paul Safier
on 8 Feb 2024
I don't know about the capabilities of the geometry builder of the PDE Toolbox.
Is it not possible to create two cuboids that share a common face and unite them ?
But looking at the examples, it seems best to create the geometry in an external CAD program and then import it in MATLAB.
Ravi Kumar
on 13 Feb 2024
Our geometry expert provided a much compact version to create this geometry:
g=fegeometry(multicuboid([1 2],[1 2],2))
g2=extrude(g,2,1)
g3=mergeCells(g2,[1 2])
pdegplot(g3,FaceAlpha=0.8,CellLabels="on")
1 Comment
Paul Safier
on 13 Feb 2024
Categories
Find more on Geometry and Mesh in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!
