Combines boundary faces into single face. The faces get the patch of the first face ('the master') More...
Public Member Functions | |
ClassName ("combineFaces") | |
Runtime type information. More... | |
combineFaces (const polyMesh &mesh, const bool undoable=false) | |
Construct from mesh. More... | |
combineFaces (const combineFaces &)=delete | |
Disallow default bitwise copy construction. More... | |
const labelList & | masterFace () const |
If undoable: masterface for every set. More... | |
const labelList & | savedPointLabels () const |
If undoable: set of original point labels of stored points. More... | |
labelListList | getMergeSets (const scalar featureCos, const scalar minConcaveCos, const labelHashSet &patchIDs, const labelHashSet &boundaryCells) const |
Extract lists of all (non-coupled) boundary faces on selected. More... | |
labelListList | getMergeSets (const scalar featureCos, const scalar minConcaveCos, const labelHashSet &patchIDs) const |
Extract lists of all (non-coupled) boundary faces on selected. More... | |
labelListList | getMergeSets (const scalar featureCos, const scalar minConcaveCos) const |
Extract lists of all (non-coupled) boundary faces that can. More... | |
void | setRefinement (const labelListList &, polyTopoChange &) |
Play commands into polyTopoChange to combine faces. Gets. More... | |
void | topoChange (const polyTopoChangeMap &) |
Force recalculation of locally stored data on topological change. More... | |
void | setUnrefinement (const labelList &masterFaces, polyTopoChange &meshMod, Map< label > &restoredPoints, Map< label > &restoredFaces, Map< label > &restoredCells) |
Play commands into polyTopoChange to reinsert original faces. More... | |
void | operator= (const combineFaces &)=delete |
Disallow default bitwise assignment. More... | |
Static Public Member Functions | |
static face | getOutsideFace (const indirectPrimitivePatch &) |
Gets outside of patch as a face (in mesh point labels) More... | |
Combines boundary faces into single face. The faces get the patch of the first face ('the master')
Definition at line 55 of file combineFaces.H.
combineFaces | ( | const polyMesh & | mesh, |
const bool | undoable = false |
||
) |
Construct from mesh.
Definition at line 282 of file combineFaces.C.
|
delete |
Disallow default bitwise copy construction.
ClassName | ( | "combineFaces" | ) |
Runtime type information.
|
inline |
If undoable: masterface for every set.
Definition at line 137 of file combineFaces.H.
Referenced by meshRefinement::mergePatchFacesUndo().
|
inline |
If undoable: set of original point labels of stored points.
Definition at line 143 of file combineFaces.H.
Referenced by meshRefinement::mergePatchFacesUndo().
Foam::labelListList getMergeSets | ( | const scalar | featureCos, |
const scalar | minConcaveCos, | ||
const labelHashSet & | patchIDs, | ||
const labelHashSet & | boundaryCells | ||
) | const |
Extract lists of all (non-coupled) boundary faces on selected.
patches and cells that can be merged. Uses getFaceRegions.
Definition at line 299 of file combineFaces.C.
References DynamicList< T, SizeInc, SizeMult, SizeDiv >::append(), HashTableCore::end(), HashTable< T, Key, Hash >::find(), forAllConstIter, HashTable< T, Key, Hash >::insert(), List< T >::setSize(), DynamicList< T, SizeInc, SizeMult, SizeDiv >::shrink(), HashTable< T, Key, Hash >::size(), and List< T >::size().
Referenced by meshRefinement::mergePatchFacesUndo().
Foam::labelListList getMergeSets | ( | const scalar | featureCos, |
const scalar | minConcaveCos, | ||
const labelHashSet & | patchIDs | ||
) | const |
Extract lists of all (non-coupled) boundary faces on selected.
patches that can be merged. Uses getFaceRegions.
Definition at line 384 of file combineFaces.C.
References polyPatch::coupled(), forAll, forAllConstIter, HashSet< Key, Hash >::insert(), patches, and polyPatch::start().
Foam::labelListList getMergeSets | ( | const scalar | featureCos, |
const scalar | minConcaveCos | ||
) | const |
Extract lists of all (non-coupled) boundary faces that can.
be merged. Uses getFaceRegions.
Definition at line 414 of file combineFaces.C.
References Foam::identityMap().
|
static |
Gets outside of patch as a face (in mesh point labels)
Definition at line 429 of file combineFaces.C.
References Foam::abort(), Foam::e, PrimitivePatch< FaceList, PointField >::edgeFaces(), PrimitivePatch< FaceList, PointField >::edgeLoops(), PrimitivePatch< FaceList, PointField >::edges(), PrimitivePatch< FaceList, PointField >::faceEdges(), Foam::FatalError, FatalErrorInFunction, UList< T >::fcIndex(), Foam::findIndex(), PrimitivePatch< FaceList, PointField >::localFaces(), PrimitivePatch< FaceList, PointField >::meshPoints(), face::nextLabel(), PrimitivePatch< FaceList, PointField >::nInternalEdges(), Foam::renumber(), Foam::reverse(), and List< T >::size().
void setRefinement | ( | const labelListList & | faceSets, |
polyTopoChange & | meshMod | ||
) |
Play commands into polyTopoChange to combine faces. Gets.
labelListList of sets of faces to combine. Does no check for whether resulting face is legal.
Definition at line 557 of file combineFaces.C.
References Foam::abort(), PrimitivePatch< FaceList, PointField >::edgeLoops(), f(), Foam::FatalError, FatalErrorInFunction, forAll, HashTable< T, Key, Hash >::insert(), polyTopoChange::modifyFace(), n, Foam::nl, patches, patchi, polyTopoChange::removeFace(), polyTopoChange::removePoint(), List< T >::size(), and syncTools::syncPointList().
Referenced by meshRefinement::mergePatchFacesUndo().
void topoChange | ( | const polyTopoChangeMap & | map | ) |
Force recalculation of locally stored data on topological change.
Definition at line 766 of file combineFaces.C.
References Foam::abort(), f(), Foam::FatalError, FatalErrorInFunction, forAll, Foam::inplaceRenumber(), Foam::nl, polyTopoChangeMap::reverseFaceMap(), and polyTopoChangeMap::reversePointMap().
Referenced by meshRefinement::mergePatchFacesUndo().
void setUnrefinement | ( | const labelList & | masterFaces, |
polyTopoChange & | meshMod, | ||
Map< label > & | restoredPoints, | ||
Map< label > & | restoredFaces, | ||
Map< label > & | restoredCells | ||
) |
Play commands into polyTopoChange to reinsert original faces.
No other topo changes can be done in between setRefinement and setUnrefinement. Can be called multiple times to undo parts of the last setRefinement call. Gets the master face labels whose sets need to be restored. Returns maps from added restored point to original point label (i.e. content of savedPointLabels_). (only restoredPoints are actually set; rest are just for generalness)
Definition at line 814 of file combineFaces.C.
References Foam::abort(), polyTopoChange::addFace(), polyTopoChange::addPoint(), UList< T >::empty(), HashTableCore::end(), Foam::exit(), f(), Foam::FatalError, FatalErrorInFunction, HashTable< T, Key, Hash >::find(), forAll, HashTable< T, Key, Hash >::insert(), polyTopoChange::modifyFace(), patchi, and List< T >::size().
Referenced by meshRefinement::mergePatchFacesUndo().
|
delete |
Disallow default bitwise assignment.