|
[Sponsors] |
July 12, 2016, 06:07 |
Boundary faces sharing a point
|
#1 |
Member
Join Date: May 2014
Posts: 40
Rep Power: 11 |
Hi all,
I'm trying to get all the faces sharing a point. For the internal faces the following works: Code:
labelList facesSharingPoint = mesh.pointFaces()[pointLabelI]; Code:
labelList boundaryFacesSharingPoint = mesh.boundaryMesh()[patchI]pointFaces()[pointLabelI]; Philip |
|
July 12, 2016, 10:48 |
|
#2 | |
Member
Jerry
Join Date: Oct 2013
Location: Salt Lake City, UT, USA
Posts: 52
Rep Power: 12 |
Hi,
Each of the fvPatch object maintains a polyPatch instance. There is a start() function defining in polyPatch which returns the start label of this patch in the polyMesh face list. This returned label is in the global level. The other thing about the patch label is that for each of the patch, its storage in the global polyMesh face list is continuous. Therefore, if you add the start label of that patch to the local labels you obtained, you will be able to get the global label. Quote:
I didn't test the above code. But the idea should work for you. I hope it will help you. |
||
July 13, 2016, 02:53 |
|
#3 |
Member
Join Date: May 2014
Posts: 40
Rep Power: 11 |
Hi Jerryfan,
thanks for your suggestion. Maybe I'm not fully understanding your idea, but the main issue here is the relation of global vertice labels to local patch vertice labels. Code:
mesh.pointFaces() Code:
mesh.boundaryMesh()[patchI]pointFaces() So the problem is, that I only know the global vertice label. Is there a function etc. to get the relation of global to local patch vertice labels? Philip |
|
July 13, 2016, 08:33 |
|
#4 |
Member
Join Date: May 2014
Posts: 40
Rep Power: 11 |
I found an much easier way to accomplish the original task, so finding all the faces sharing a point is no longer needed
|
|
July 13, 2016, 12:07 |
|
#5 |
Member
Jerry
Join Date: Oct 2013
Location: Salt Lake City, UT, USA
Posts: 52
Rep Power: 12 |
Would you mind sharing it?
|
|
July 14, 2016, 03:32 |
|
#6 |
Member
Join Date: May 2014
Posts: 40
Rep Power: 11 |
It has nothing to do with the original question, so I guess it's not worth sharing. I'm
avoiding any search for faces sharing a point and instead utilize Code:
mesh.pointPoints()[pI]; |
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
[snappyHexMesh] Add Mesh Layers doesnt work on the whole surface | Kryo | OpenFOAM Meshing & Mesh Conversion | 13 | February 17, 2022 07:34 |
[Other] Mesh Importing Problem | cuteapathy | ANSYS Meshing & Geometry | 2 | June 24, 2017 05:29 |
[mesh manipulation] Importing Multiple Meshes | thomasnwalshiii | OpenFOAM Meshing & Mesh Conversion | 18 | December 19, 2015 18:57 |
foam-extend_3.1 decompose and pyfoam warning | shipman | OpenFOAM | 3 | July 24, 2014 08:14 |
[snappyHexMesh] determining displacement for added points | CFDnewbie147 | OpenFOAM Meshing & Mesh Conversion | 1 | October 22, 2013 09:53 |