edge numbering in matrix dl and pde model

조회 수: 6 (최근 30일)
Jorge Garcia Garcia
Jorge Garcia Garcia 2023년 3월 24일
댓글: Jorge Garcia Garcia 2023년 9월 19일
Hello, I have a question.
I obtain the matrix dl with the function decsg
[dl,bt] = decsg(gdm);
In dl the index column correspond to the different edges
so far so good.
I then need to divide the plate into different sections and build up the pde model :
geometryFromMesh(modelTwoDomain,msh.Nodes,msh.Elements,ElementIdToRegionId);
if i plot
pdegplot(dl,"Edgelabels","on","Facelabels","on","FaceAlpha",0.5)
pdegplot(modelTwoDomain,"Edgelabels","on","Facelabels","on","FaceAlpha",0.5)
I can see that the numbering of the edges in dl is different than the numbering of edges in modeltwodomain.
How can I find what is the numbering of edges in modeltwodomain?

채택된 답변

Maneet Kaur Bagga
Maneet Kaur Bagga 2023년 9월 18일
Hi Jorge,
As per my understanding to find the numbering of edges in the "modelTwoDomain" graph, "findEdge" function can be, it returns the numeric edge indices, "idxOut" for the edges specified by the source and the target node pairs s and t.
idxOut = findEdges(modelTwoDomain,s,t);
% Display the edge numbers
disp(idxOut);
Please refer to the following documentation for further information of the "findEdge" function.
Hope this helps!
Thank You
Maneet Bagga
  댓글 수: 3
Maneet Kaur Bagga
Maneet Kaur Bagga 2023년 9월 18일
The "dl" matrix primarily contains information about the edges, vertices, and regions of the domain.
To obtain the coordinates of the faces, you may use the "pdegeom" function instead of "decsg" to create the geometry object and then use the "geometryFromEdges" function to generate the PDE model. The resulting model will have access to the face coordinates.
Documentation link:
Jorge Garcia Garcia
Jorge Garcia Garcia 2023년 9월 19일
thanks again! will check!

댓글을 달려면 로그인하십시오.

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Geometry and Mesh에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by