Find face cells
Hi all,
Sorry my bad english :o 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 |
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 |
Thank you very much kalle!
:D |
All times are GMT -4. The time now is 03:11. |