How to create multiple "Void" cuboids in Partial DE model geometry
Show older comments
I want to create a geometry with muliple cuboids of different sizes which are VOID. It is easy to greate a geometry with non void cuboids but creating the geomety with "holes" (i,e,: void cuboids) defeats me.
g1 = multicuboid(30,30,8,"Zoffset",0);
for i=1:11
% Make a cuboid with dimensions dependent on loop index
g2=multicuboid(0.5,i*2,4-i/5); % HOW DOES ONE MAKE THIS VOID??
% Move it to its position in the main region
g3=translate(g2,[(i-6)*2 0 1+i/4]);
% Add it
g1=addCell(g1,g3);
end
pdegplot(g1,"FaceLabels","on","FaceAlpha",0.5)
1 Comment
Richard Saumarez
on 2 Apr 2023
Accepted Answer
More Answers (0)
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!