|
[Sponsors] |
November 5, 2006, 09:08 |
Dear All,
can anybody help
|
#1 |
Senior Member
Stephan Gerber
Join Date: Mar 2009
Location: Germany
Posts: 118
Rep Power: 17 |
Dear All,
can anybody help me finding a list of cells, which have a boundary face? any help would be appreciated stephan |
|
November 5, 2006, 09:13 |
Go to all oundary patches and
|
#2 |
Senior Member
Hrvoje Jasak
Join Date: Mar 2009
Location: London, England
Posts: 1,907
Rep Power: 33 |
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 Providing commercial FOAM/OpenFOAM and CFD Consulting: http://wikki.co.uk |
|
November 6, 2006, 05:14 |
There is also a utility called
|
#3 |
Senior Member
Mattijs Janssens
Join Date: Mar 2009
Posts: 1,419
Rep Power: 26 |
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 |
|
November 6, 2006, 06:46 |
Dear All,
thanx for the fas
|
#4 |
Senior Member
Stephan Gerber
Join Date: Mar 2009
Location: Germany
Posts: 118
Rep Power: 17 |
Dear All,
thanx for the fast answer! stephan |
|
February 4, 2013, 15:59 |
|
#5 |
New Member
---
Join Date: Jan 2013
Posts: 17
Rep Power: 13 |
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 |
|
October 4, 2016, 12:56 |
|
#6 | |
Member
Peng Liang
Join Date: Mar 2014
Posts: 60
Rep Power: 12 |
Quote:
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 |
||
|
|
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 09:03 |
Finding adjacent cells by UDFs | Ertan Taskin | FLUENT | 0 | May 5, 2005 13:02 |
Boundary cells | hemph | OpenFOAM Running, Solving & CFD | 0 | April 21, 2005 06:22 |
Finding out boundary cells in a domain | Abbas | FLUENT | 4 | October 13, 2003 05:56 |
finding BEM(Boundary Element Method) disscusion groups.. | C. H. Han. | Main CFD Forum | 0 | September 25, 1998 03:26 |