Public Member Functions | Static Public Member Functions | List of all members
combineFaces Class Reference

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 labelListmasterFace () const
 
const labelListsavedPointLabels () 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 &)
 

Detailed Description

Combines boundary faces into single face. The faces get the patch of the first face ('the master')

Source files

Definition at line 54 of file combineFaces.H.

Constructor & Destructor Documentation

◆ combineFaces()

combineFaces ( const polyMesh mesh,
const bool  undoable = false 
)
explicit

Definition at line 281 of file combineFaces.C.

Member Function Documentation

◆ ClassName()

ClassName ( "combineFaces"  )

◆ masterFace()

const labelList& masterFace ( ) const
inline

Definition at line 138 of file combineFaces.H.

Referenced by meshRefinement::mergePatchFacesUndo().

Here is the caller graph for this function:

◆ savedPointLabels()

const labelList& savedPointLabels ( ) const
inline

Definition at line 144 of file combineFaces.H.

Referenced by meshRefinement::mergePatchFacesUndo().

Here is the caller graph for this function:

◆ getMergeSets() [1/2]

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().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ getMergeSets() [2/2]

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.

Here is the call graph for this function:

◆ getOutsideFace()

Foam::face getOutsideFace ( const indirectPrimitivePatch fp)
static

◆ setRefinement()

void setRefinement ( const labelListList faceSets,
polyTopoChange meshMod 
)

◆ updateMesh()

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().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ setUnrefinement()

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().

Here is the call graph for this function:
Here is the caller graph for this function:

The documentation for this class was generated from the following files: