Adjusting Z of multicylinders, in PDE toolbox
조회 수: 2 (최근 30일)
이전 댓글 표시
Hi, I am trying to build a shape that consists of several cylinders:
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/1217757/image.png)
Since I will be running electrical simulations for it, I have used PDE toolbox for it.
Here is my code for the first cylinder layer:
SC = multicylinder(width, hSC);
May I know how do I add another layer below this layer?
Thank you!
댓글 수: 0
답변 (1개)
Ayush
2023년 9월 1일
Hi Miles,
I understand that you want to create a shape that consists of several cylinders stacked on top of each other using the “multicylinder” function.
A similar example for your use case has already been provided in the MATLAB documentation of the “multicylinder” function. You can run the following command in MATLAB to know more about this example:
openExample('pde/StackedCylindersExample')
Specific to your question, you need to make vectors for each argument (radiusVec, heightVec) of the “multicylinder” function and add the “ZOffset” vector to stack all the cylinders accordingly.
Hope it helps,
Regards,
Ayush Misra
댓글 수: 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!