combining geometries in pde toolbox, multicylinders
4 次查看(过去 30 天)
显示 更早的评论
Hi, I am trying to combine 2 cylinders together but encountered the following error:
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/1243462/image.png)
Here are the 2 shapes I am trying to combine:
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/1243467/image.png)
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/1243472/image.png)
and here is my codes:
electrode = multicylinder([1,4,4.5], 0.1, "Void",[0,1,0]);
skin = multicylinder(width, [hSC hLE hDE hAT], "Zoffset", [-hSC -hSC-hLE -hSC-hLE-hDE -hSC-hLE-hDE-hAT]);
skinmodel = addCell(electrode, skin);
model = createpde("electromagnetic", "electrostatic");
model.Geometry = skin;
pdegplot(model,"CellLabels","on")
the error occered at the skinmodel line.
May I know how to fix it? Or is there another way to do it? I am trying to combine the shapes and use it in PDE toolbox.
Thanks!
0 个评论
采纳的回答
Hans Ruder
2023-1-9
Hi,
try to draw your structure with "extrude"-command. First draw in 2D the different circles, then extrude in z-direction. You will get more cells than needed, but you can assign them identical properties.
Hope this helps.
0 个评论
更多回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Geometry and Mesh 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!