CFD Online Discussion Forums

CFD Online Discussion Forums (http://www.cfd-online.com/Forums/)
-   OpenFOAM Running, Solving & CFD (http://www.cfd-online.com/Forums/openfoam-solving/)
-   -   Finding boundary cells (http://www.cfd-online.com/Forums/openfoam-solving/59941-finding-boundary-cells.html)

stephan November 5, 2006 09:08

Dear All, can anybody help
 
Dear All,

can anybody help me finding a list of cells, which have a boundary face?
any help would be appreciated
stephan

hjasak November 5, 2006 09:13

Go to all oundary patches and
 
Go to all oundary patches and ask for faceCells(). This will give you a cell index for each face on the boundary. If a face has got 2 or more boundary faces, it will show up in faceCells() for more than one patch.

For examples, have a look at how RANS wall functions fix the value of epsilon in near-wall cells.

Enjoy,

Hrv

mattijs November 6, 2006 05:14

There is also a utility called
 
There is also a utility called 'cellSet' which takes a cellSetDict dictionary.

Use 'boundaryToCell' as the source (you'll understand if you read the dictionary)

The cellset can be displayed with foamToVTK .. -cellSet xxx

stephan November 6, 2006 06:46

Dear All, thanx for the fas
 
Dear All,

thanx for the fast answer!
stephan

gironidegirona February 4, 2013 15:59

Hi you all,

I'm Sergi and I'm quite new with all C thing and openfoam :p, I'm interested on that. I've just realized how to export the centers of the cells (hard work.. can't imagine..).

Now I'm interested on getting the list of the boundary cells, you say "Go to all boundary patches and ask for faceCells()" my question.. is.. well.. how?

Sorry for this kind of basic questions..

Sergi


All times are GMT -4. The time now is 19:37.