Stacked Cuboid for PDE Domain
显示 更早的评论
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!

采纳的回答
更多回答(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 个评论
Paul Safier
2024-2-8
编辑:Paul Safier
2024-2-8
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
2024-2-13
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")
类别
在 帮助中心 和 File Exchange 中查找有关 Geometry and Mesh 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!

