Adding multiple cylinders into the same model PDE Toolbox

Hi, I am trying to construct a 3D model for electrical analysis later. I have 3 cylinders and 1 hollow cylinders.
When I am trying to make all of them into one model, I encountered the following error:
which correspond to this line:
May I know how to add all my shapes into the same model?
Thank you!!
Here is my code:
Building the base Stratum Corneum and Variable Skin
SC3d = multicylinder(basesize,hSC) %create SC
VS3d = multicylinder(basesize,hVS, "Zoffset",-hVS) %create VS
Sense3d = multicylinder(R1, hEL, "Zoffset",hSC) %create sensor
Inject3d = multicylinder([R1+R2 R3], hEL, "Zoffset", hSC) %create inject
model = createpde
model.Geometry = SC3d + VS3d
pdegplot(model,"CellLabels","on","FaceAlpha",0.5)

 采纳的回答

model.Geometry = [SC3d VS3d]

4 个评论

Thanks! Now it did solve my question - however I encountered some problem with the inject3d.
I want it to be a hollow cylinder with some offset z, may I know if this is doable?
This error shows up:
with this line of code:
Inject3d = multicylinder([R1+R2 R3], hEL, "Void", [true false], "Zoffset", hSC) %create inject
Thanks!
Hi, also, this error showed up when using the concatenation operator:
model.Geometry = [SC3d VS3d Sense3d]
is there another way for me to use this?
please advise on this question. it occurs also on my PDE Modeler.

请先登录,再进行评论。

更多回答(0 个)

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by