FreeFOAM The Cross-Platform CFD Toolkit
Hosted by SourceForge:
Get FreeFOAM at SourceForge.net.
            Fast, secure and Free Open Source software downloads

combinePatchFaces.C File Reference

Checks for multiple patch faces on same cell and combines them. More...


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.

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

Usage
  • combinePatchFaces [OPTIONS] <feature angle [0..180]>
Parameters:
\<featureangle [0..180]>
Todo:
Detailed description of argument.
Parameters:
-snapMesh
Remove loose points on edges.
-concaveAngle<angle [0..180]>
Maximum allowed concave angle.
-overwrite
Overwrite existing data.
-case<dir>
Case directory.
-parallel
Run in parallel.
-help
Display help message.
-doc
Display Doxygen API documentation page for this application.
-srcDoc
Display Doxygen source documentation page for this application.

Definition in file combinePatchFaces.C.

#include "src/OpenFOAM/db/IOstreams/Pstreams/PstreamReduceOps.H"
#include "src/OpenFOAM/global/argList/argList.H"
#include "src/OpenFOAM/db/Time/Time.H"
#include "src/dynamicMesh/polyTopoChange/polyTopoChange/polyTopoChange.H"
#include "src/dynamicMesh/polyTopoChange/polyTopoChange/modifyObject/polyModifyFace.H"
#include "src/dynamicMesh/polyTopoChange/polyTopoChange/addObject/polyAddFace.H"
#include "src/dynamicMesh/polyTopoChange/polyTopoChange/combineFaces.H"
#include "src/dynamicMesh/polyTopoChange/polyTopoChange/removePoints.H"
#include "src/OpenFOAM/meshes/polyMesh/polyMesh.H"
#include "src/OpenFOAM/meshes/polyMesh/mapPolyMesh/mapPolyMesh.H"
#include "src/OpenFOAM/primitives/mathematicalConstants/mathematicalConstants.H"
#include "src/OpenFOAM/include/setRootCase.H"
#include "src/OpenFOAM/include/createTime.H"
#include "src/OpenFOAM/include/createPolyMesh.H"
Include dependency graph for combinePatchFaces.C:

Go to the source code of this file.