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/)
-   -   Access (parallel) face number, owner and neighbour of a face? (https://www.cfd-online.com/Forums/openfoam-programming-development/141301-access-parallel-face-number-owner-neighbour-face.html)

saloo September 4, 2014 11:10

Access (parallel) face number, owner and neighbour of a face?
 
Hello,

I am working on a solver in parallel in OpenFoam 2.1.x. I want to access the global face number (the number given to the face, before actually doing domain decoposition) for all the local faces (of each processor). Later after obtaining the global face number, I also want to know global owner and neighbour (cell numbers) of the obtained global face number.

To help understand my question better, by 'global' I mean mesh data before domain decomposition and by 'local' I mean mesh data after domain decomposition for each processor.
Just for information about what I am trying to do is to make a lookup table (containing global face number and its global owner and neighbour cell number for all the faces in whole domain) on master processor at start of simulation. To achieve this, I will gather data (global face number and its global owner and neighbour) from all processors to the master processor (using GatherList() etc.).
Any help is highly appreciated.

Regards,
Salman Arshad


All times are GMT -4. The time now is 03:59.