OpenFOAM logo
The Open Source CFD Toolbox
  Source Guide OpenCFD Solutions Contact OpenFOAM

combinePatchFaces.C File Reference

Checks for multiple patch faces on same cell and combines them. These result from e.g. refined neighbouring cells getting removed, leaving 4 exposed faces with same owner. More...

Go to the source code of this file.


Detailed Description

Checks for multiple patch faces on same cell and combines them. These result from e.g. refined neighbouring cells getting removed, leaving 4 exposed faces with same owner.

Original source file combinePatchFaces.C

Rules for merging:

  • only boundary faces (since multiple internal faces between two cells not allowed anyway)
  • faces have to have same owner
  • faces have to be connected via edge which are not features (so angle between them < feature angle)
  • outside of faces has to be single loop
  • outside of face should not be (or just slightly) concave (so angle between consecutive edges < concaveangle

E.g. to allow all faces on same patch to be merged:

combinePatchFaces .. cavity 180 -concaveAngle 90

Definition in file combinePatchFaces.C.

Copyright © 2000-2009 OpenCFD Ltd