CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   OpenFOAM Programming & Development (https://www.cfd-online.com/Forums/openfoam-programming-development/)
-   -   Get cell ids from interior face (https://www.cfd-online.com/Forums/openfoam-programming-development/159152-get-cell-ids-interior-face.html)

Rutger September 9, 2015 18:45

Get cell ids from interior face
 
Hi,

I would like to get all cell ids from a face that is in the interior of my mesh.
This is my structure for the sequence of events:
- pass the desired faces via the fvSolution file to the solver:
Code:

myfaces ((0 3 7 8) (2 3 6 9));
- import them in the solver
- loop over the faces in the solver and get their global cell id, like I would do with a list of patches
Code:

label patchI = mesh.boundaryMesh().findPatchID(mypatches());
I couldn't find a way to do this, because I don't know which data type to use, labellistlist ?
I can't use patches for that, because they require a boundary condition, which my considered cells don't have.


All times are GMT -4. The time now is 12:47.