Boundary faces sharing a point
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 |
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. |
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 |
I found an much easier way to accomplish the original task, so finding all the faces sharing a point is no longer needed :D
|
Would you mind sharing it?
|
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]; |
All times are GMT -4. The time now is 18:11. |