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

Finding boundary cells

Register Blogs Members List Search Today's Posts Mark Forums Read

Like Tree1Likes
  • 1 Post By hjasak

Reply
 
LinkBack Thread Tools Display Modes
Old   November 5, 2006, 09:08
Default Dear All, can anybody help
  #1
Senior Member
 
Stephan Gerber
Join Date: Mar 2009
Location: Germany
Posts: 118
Rep Power: 8
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, 09:13
Default Go to all oundary patches and
  #2
Senior Member
 
Hrvoje Jasak
Join Date: Mar 2009
Location: London, England
Posts: 1,758
Rep Power: 21
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
mm.abdollahzadeh likes this.
__________________
Hrvoje Jasak
Providing commercial FOAM/OpenFOAM and CFD Consulting: http://wikki.co.uk
hjasak is offline   Reply With Quote

Old   November 6, 2006, 05:14
Default There is also a utility called
  #3
Super Moderator
 
Mattijs Janssens
Join Date: Mar 2009
Posts: 1,416
Rep Power: 16
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, 06:46
Default Dear All, thanx for the fas
  #4
Senior Member
 
Stephan Gerber
Join Date: Mar 2009
Location: Germany
Posts: 118
Rep Power: 8
stephan is on a distinguished road
Dear All,

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

Old   February 4, 2013, 15:59
Default
  #5
New Member
 
---
Join Date: Jan 2013
Posts: 13
Rep Power: 4
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

Reply

Thread Tools
Display Modes

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 On
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 09: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 03:24.