|
[Sponsors] |
March 31, 2011, 21:22 |
Find face cells
|
#1 |
New Member
Rafael Cabral de Moura
Join Date: Oct 2009
Location: Brasil
Posts: 8
Rep Power: 17 |
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 |
|
April 1, 2011, 02:53 |
|
#2 |
Senior Member
Karl-Johan Nogenmyr
Join Date: Mar 2009
Location: Linköping
Posts: 279
Rep Power: 21 |
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 |
|
April 1, 2011, 16:06 |
|
#3 |
New Member
Rafael Cabral de Moura
Join Date: Oct 2009
Location: Brasil
Posts: 8
Rep Power: 17 |
Thank you very much kalle!
|
|
|
|
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 |