Combines boundary faces into single face. The faces get the patch of the first face ('the master') More...
Public Member Functions | |
ClassName ("combineFaces") | |
combineFaces (const polyMesh &mesh, const bool undoable=false) | |
const labelList & | masterFace () const |
const labelList & | savedPointLabels () const |
labelListList | getMergeSets (const scalar featureCos, const scalar minConcaveCos, const labelHashSet &boundaryCells, const bool mergeAcrossPatches=false) const |
labelListList | getMergeSets (const scalar featureCos, const scalar minConcaveCos, const bool mergeAcrossPatches=false) const |
void | setRefinement (const labelListList &, polyTopoChange &) |
void | updateMesh (const mapPolyMesh &) |
void | setUnrefinement (const labelList &masterFaces, polyTopoChange &meshMod, Map< label > &restoredPoints, Map< label > &restoredFaces, Map< label > &restoredCells) |
Static Public Member Functions | |
static face | getOutsideFace (const indirectPrimitivePatch &) |
Combines boundary faces into single face. The faces get the patch of the first face ('the master')
Definition at line 54 of file combineFaces.H.
|
explicit |
Definition at line 281 of file combineFaces.C.
ClassName | ( | "combineFaces" | ) |
|
inline |
Definition at line 138 of file combineFaces.H.
Referenced by meshRefinement::mergePatchFacesUndo().
|
inline |
Definition at line 144 of file combineFaces.H.
Referenced by meshRefinement::mergePatchFacesUndo().
Foam::labelListList getMergeSets | ( | const scalar | featureCos, |
const scalar | minConcaveCos, | ||
const labelHashSet & | boundaryCells, | ||
const bool | mergeAcrossPatches = false |
||
) | const |
Definition at line 298 of file combineFaces.C.
References DynamicList::append(), forAllConstIters(), forAllIters, Foam::magSqr(), Foam::maxMagSqr(), Foam::BitOps::set(), List::setSize(), and DynamicList::shrink().
Referenced by meshRefinement::mergePatchFaces(), and meshRefinement::mergePatchFacesUndo().
Foam::labelListList getMergeSets | ( | const scalar | featureCos, |
const scalar | minConcaveCos, | ||
const bool | mergeAcrossPatches = false |
||
) | const |
Definition at line 415 of file combineFaces.C.
References forAll, HashSet::insert(), Foam::foamVersion::patch, and patches.
|
static |
Definition at line 453 of file combineFaces.C.
References Foam::abort(), Foam::constant::electromagnetic::e, PrimitivePatch< FaceList, PointField >::edgeFaces(), PrimitivePatch< FaceList, PointField >::edgeLoops(), PrimitivePatch< FaceList, PointField >::edges(), PrimitivePatch< FaceList, PointField >::faceEdges(), Foam::FatalError, FatalErrorInFunction, PrimitivePatch< FaceList, PointField >::localFaces(), PrimitivePatch< FaceList, PointField >::meshPoints(), face::nextLabel(), PrimitivePatch< FaceList, PointField >::nInternalEdges(), Foam::renumber(), and Foam::reverse().
void setRefinement | ( | const labelListList & | faceSets, |
polyTopoChange & | meshMod | ||
) |
Definition at line 581 of file combineFaces.C.
References Foam::abort(), coupled(), Foam::expressions::patchExpr::debug, PrimitivePatch< FaceList, PointField >::edgeLoops(), f(), Foam::FatalError, FatalErrorInFunction, faceZone::flipMap(), forAll, n, Foam::nl, patches, polyTopoChange::setAction(), syncTools::syncPointList(), faceZone::whichFace(), polyBoundaryMesh::whichPatch(), Foam::Zero, and zoneID.
Referenced by meshRefinement::mergePatchFaces(), and meshRefinement::mergePatchFacesUndo().
void updateMesh | ( | const mapPolyMesh & | map | ) |
Definition at line 806 of file combineFaces.C.
References Foam::abort(), f(), Foam::FatalError, FatalErrorInFunction, forAll, Foam::inplaceRenumber(), Foam::nl, mapPolyMesh::reverseFaceMap(), and mapPolyMesh::reversePointMap().
Referenced by meshRefinement::mergePatchFaces(), and meshRefinement::mergePatchFacesUndo().
void setUnrefinement | ( | const labelList & | masterFaces, |
polyTopoChange & | meshMod, | ||
Map< label > & | restoredPoints, | ||
Map< label > & | restoredFaces, | ||
Map< label > & | restoredCells | ||
) |
Definition at line 855 of file combineFaces.C.
References Foam::abort(), Foam::exit(), f(), Foam::FatalError, FatalErrorInFunction, faceZone::flipMap(), forAll, polyTopoChange::setAction(), faceZone::whichFace(), and zoneID.
Referenced by meshRefinement::mergePatchFacesUndo().
Copyright © 2011-2018 OpenFOAM | OPENFOAM® is a registered trademark of OpenCFD Ltd.