CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > OpenFOAM > OpenFOAM Running, Solving & CFD

Finding boundary cells

Register Blogs Community New Posts Updated Threads Search

Like Tree2Likes
  • 2 Post By hjasak

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   November 5, 2006, 08:08
Default Dear All, can anybody help
  #1
Senior Member
 
Stephan Gerber
Join Date: Mar 2009
Location: Germany
Posts: 118
Rep Power: 17
stephan is on a distinguished road
Dear All,

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

Old   November 5, 2006, 08:13
Default Go to all oundary patches and
  #2
Senior Member
 
Hrvoje Jasak
Join Date: Mar 2009
Location: London, England
Posts: 1,905
Rep Power: 33
hjasak will become famous soon enough
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
hjasak is offline   Reply With Quote

Old   November 6, 2006, 04:14
Default There is also a utility called
  #3
Senior Member
 
Mattijs Janssens
Join Date: Mar 2009
Posts: 1,419
Rep Power: 26
mattijs is on a distinguished road
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
mattijs is offline   Reply With Quote

Old   November 6, 2006, 05:46
Default Dear All, thanx for the fas
  #4
Senior Member
 
Stephan Gerber
Join Date: Mar 2009
Location: Germany
Posts: 118
Rep Power: 17
stephan is on a distinguished road
Dear All,

thanx for the fast answer!
stephan
stephan is offline   Reply With Quote

Old   February 4, 2013, 14:59
Default
  #5
New Member
 
---
Join Date: Jan 2013
Posts: 17
Rep Power: 13
gironidegirona is on a distinguished road
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
gironidegirona is offline   Reply With Quote

Old   October 4, 2016, 11:56
Default
  #6
Member
 
Peng Liang
Join Date: Mar 2014
Posts: 59
Rep Power: 12
tjliang is on a distinguished road
Quote:
Originally Posted by hjasak View Post
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
tjliang is offline   Reply With Quote

Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are On


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


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