How to create multiple "Void" cuboids in Partial DE model geometry
Afficher commentaires plus anciens
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 commentaire
Richard Saumarez
le 2 Avr 2023
Réponse acceptée
Plus de réponses (0)
Catégories
En savoir plus sur Geometry and Mesh dans Centre d'aide et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!