Effacer les filtres
Effacer les filtres

How to find Faces related to a Cell in pde ?

3 vues (au cours des 30 derniers jours)
Souvik Mukherjee
Souvik Mukherjee le 11 Juin 2018
Commenté : ADSW121365 le 27 Mar 2020
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 commentaire
Fernando Freire Ribeiro
Fernando Freire Ribeiro le 4 Avr 2019
Hello Souvik,
Did you get the solution for your problem? I am facing the same. Thanks.
Fernando

Connectez-vous pour commenter.

Réponses (1)

Siju Thomas
Siju Thomas le 10 Avr 2019
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 commentaires
ADSW121365
ADSW121365 le 27 Mar 2020
Is this a function which is likely to be removed in future releases given it is undocumented?

Connectez-vous pour commenter.

Community Treasure Hunt

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

Start Hunting!

Translated by