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

Find face cells

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   March 31, 2011, 21:22
Default Find face cells
  #1
New Member
 
Rafael Cabral de Moura
Join Date: Oct 2009
Location: Brasil
Posts: 8
Rep Power: 17
Rafael is on a distinguished road
Hi all,

Sorry my bad english

How can i find the cells that are after and before a face in an uniform mesh of blocks?
For a given face with index "faceI" what is the index of the cells in the face normal direction?

Thank's
Rafael is offline   Reply With Quote

Old   April 1, 2011, 02:53
Default
  #2
Senior Member
 
Karl-Johan Nogenmyr
Join Date: Mar 2009
Location: Linköping
Posts: 279
Rep Power: 21
kalle is on a distinguished road
Hi,

have a look at, for instance,

$FOAM_SRC/meshTools/sets/cellSources/faceToCell/faceToCell.C

There you can see how to find a face's owner and neighbour (have a look in the user manual on how meshes are constructed):

label cellI = mesh_.faceOwner()[faceI];

and

label cellI = mesh_.faceNeighbour()[faceI];

Regards,
K
kalle is offline   Reply With Quote

Old   April 1, 2011, 16:06
Default
  #3
New Member
 
Rafael Cabral de Moura
Join Date: Oct 2009
Location: Brasil
Posts: 8
Rep Power: 17
Rafael is on a distinguished road
Thank you very much kalle!
Rafael 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
How to find the cells adjacent to the wall? aam Fluent UDF and Scheme Programming 6 June 28, 2017 09:53
How to find cells within a distance ivan_cozza OpenFOAM Running, Solving & CFD 0 May 8, 2009 13:49
Numerical calculation interFoam never finishes unoder OpenFOAM Running, Solving & CFD 9 October 18, 2005 06:00
find degenerated cells Pete Siemens 3 April 22, 2005 06:49
Neighboring cells in TETRA_4 unstructured grids Amaresh Dalal Main CFD Forum 12 September 19, 2004 12:54


All times are GMT -4. The time now is 00:16.