CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   OpenFOAM (https://www.cfd-online.com/Forums/openfoam/)
-   -   identify if a cell belongs to a cellSet ?? (https://www.cfd-online.com/Forums/openfoam/84421-identify-if-cell-belongs-cellset.html)

kdarc January 28, 2011 11:36

identify if a cell belongs to a cellSet ??
 
Ok, I have a domain that is split into sub-domains, as there are internal boundary conditions for some of the equations in my model.

In my code, I extract a cell number from a point on the interface, and seek to find its neighouring cell that belongs to the neighbouring cellSet.

with the code:

mesh.cellCells()[c_sep_left]

I can return a list of neighbour cells to the cell in question.

How can I check this list to see which cellSet each cell belongs to??

thanks.


All times are GMT -4. The time now is 10:07.