|
[Sponsors] | |||||
|
|
|
#1 |
|
Senior Member
Stephan Gerber
Join Date: Mar 2009
Location: Germany
Posts: 118
Rep Power: 6 ![]() |
Dear All,
can anybody help me finding a list of cells, which have a boundary face? any help would be appreciated stephan |
|
|
|
|
|
|
|
|
#2 |
|
Senior Member
Hrvoje Jasak
Join Date: Mar 2009
Location: London, England
Posts: 1,695
Rep Power: 17 ![]() |
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
__________________
Hrvoje Jasak |
|
|
|
|
|
|
|
|
#3 |
|
Super Moderator
Mattijs Janssens
Join Date: Mar 2009
Posts: 1,416
Rep Power: 13 ![]() |
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 |
|
|
|
|
|
|
|
|
#4 |
|
Senior Member
Stephan Gerber
Join Date: Mar 2009
Location: Germany
Posts: 118
Rep Power: 6 ![]() |
Dear All,
thanx for the fast answer! stephan |
|
|
|
|
|
|
|
|
#5 |
|
New Member
---
Join Date: Jan 2013
Posts: 8
Rep Power: 2 ![]() |
Hi you all,
I'm Sergi and I'm quite new with all C thing and openfoam , 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 |
|
|
|
|
|
![]() |
| Thread Tools | |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Finding neighbouring cells when looping over faces in faceSet | olwi | OpenFOAM Running, Solving & CFD | 2 | December 13, 2007 08:03 |
| Finding adjacent cells by UDFs | Ertan Taskin | FLUENT | 0 | May 5, 2005 12:02 |
| Boundary cells | hemph | OpenFOAM Running, Solving & CFD | 0 | April 21, 2005 05:22 |
| Finding out boundary cells in a domain | Abbas | FLUENT | 4 | October 13, 2003 04:56 |
| finding BEM(Boundary Element Method) disscusion groups.. | C. H. Han. | Main CFD Forum | 0 | September 25, 1998 02:26 |