CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   OpenFOAM Running, Solving & CFD (https://www.cfd-online.com/Forums/openfoam-solving/)
-   -   Finding boundary cells (https://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,

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

 tjliang October 4, 2016 11:56

Quote:
 Originally Posted by hjasak (Post 204449) 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
Hello Hrvoje,

Could you please tell me how to get the maximal value of the boundary cells of a certain Field A? Is it simply max(A.boundaryField()[patchID].patchInternalField())? Thank you in advance!

Bests,

Peng

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