CFD Online Logo CFD Online URL
Home > Forums > OpenFOAM Running, Solving & CFD

How to identify boundary cell and internal cell

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

LinkBack Thread Tools Display Modes
Old   August 25, 2008, 20:30
Default Hi, I have a cubic mesh whi
roy fokker
Join Date: Mar 2009
Posts: 44
Rep Power: 9
dbxmcf is on a distinguished road

I have a cubic mesh which needs a special weigh treatment of boundary cell and internal cell. My intention is like this:

forAll(cellWeigh, mI)
if (cellIsBoundary(mI))

Is there any way to identify whether the cell is a boundary cell or internal cell? Is it a simple function or should I do some field calculation?

Thanks a lot!
dbxmcf is offline   Reply With Quote

Old   August 25, 2008, 21:59
Default I'm assuming that by "boundary
Senior Member
Sandeep Menon
Join Date: Mar 2009
Location: Amherst, MA
Posts: 387
Rep Power: 16
deepsterblue will become famous soon enough
I'm assuming that by "boundary cells", you want to identify cells adjacent to boundary faces. If so, then it's not too difficult to obtain - loop through boundaryMesh (boundary patches), and obtain the owner cell from the allOwner list. All other cells are internal.
Sandeep Menon
University of Massachusetts Amherst
deepsterblue is offline   Reply With Quote


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
How to identify cell neighbours booz OpenFOAM Meshing Format & General Technical 49 April 7, 2016 08:36
UDF: Given coordinates, How to identify the cell? Zhang Fluent UDF and Scheme Programming 23 June 24, 2014 13:21
cell velocity U and its cell face area Chinayu CD-adapco 0 May 6, 2006 22:44
Cell-vertex and cell-centered finite volume method Praveen Main CFD Forum 4 September 8, 2003 23:58
identify Cell face Sunlight007 CD-adapco 3 August 30, 2003 05:30

All times are GMT -4. The time now is 10:54.