How to find Faces related to a Cell in pde ?
조회 수: 3 (최근 30일)
이전 댓글 표시
Hi I am trying to see if there is FindFace command or something that allows me to see the Faces linked to a cell in the pde toolbox. I want to get away from having to assign the boundary conditions to the appropriate Faces everytime I change a parameter by plotting the geometry. Thanks, Best regards, Souvik
댓글 수: 1
Fernando Freire Ribeiro
2019년 4월 4일
Hello Souvik,
Did you get the solution for your problem? I am facing the same. Thanks.
Fernando
답변 (1개)
Siju Thomas
2019년 4월 10일
Hi,
There is an undocumented function, findFaces within the PDE Toolbox that can list the IDs of the faces associated with a cell. Below is an example of its usage:
% create a PDEModel object
pdem = createpde();
% create geometry
pdem.Geometry = multicuboid(1,1,1);
% find faces associated with the Cell
pdem.Geometry.findFaces('region','Cell',1)
Please note that the findFaces function is only an internal function and does not have a fully developed API for it.
Siju
댓글 수: 4
Matias Bulacio
2019년 9월 13일
Hi Siju, you can find more details in this post I made https://la.mathworks.com/matlabcentral/answers/480160-for-the-pde-toolbox-how-to-get-the-edges-faces-ids-of-a-geometry-without-plotting-them?s_tid=prof_contriblnk.
Thanks!
ADSW121365
2020년 3월 27일
Is this a function which is likely to be removed in future releases given it is undocumented?
참고 항목
카테고리
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!