CFD Online URL
[Sponsors]
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

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

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))
cellWeigh[mI]=0;
else
cellWeigh[mI]=1;
}

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, 22:59
Default I'm assuming that by "boundary
  #2
Senior Member
 
Sandeep Menon
Join Date: Mar 2009
Location: Amherst, MA
Posts: 372
Rep Power: 14
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
https://github.com/smenon
deepsterblue 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
How to identify cell neighbours booz OpenFOAM Meshing Format & General Technical 39 December 19, 2014 02:58
UDF: Given coordinates, How to identify the cell? Zhang Fluent UDF and Scheme Programming 23 June 24, 2014 14:21
cell velocity U and its cell face area Chinayu CD-adapco 0 May 6, 2006 23:44
Cell-vertex and cell-centered finite volume method Praveen Main CFD Forum 4 September 9, 2003 00:58
identify Cell face Sunlight007 CD-adapco 3 August 30, 2003 06:30


All times are GMT -4. The time now is 17:39.