Combines boundary faces into single face. The faces get the patch of the first face ('the master') More...
#include <dynamicMesh/combineFaces.H>
Combines boundary faces into single face. The faces get the patch of the first face ('the master')
Definition at line 56 of file combineFaces.H.
Public Member Functions | |
ClassName ("combineFaces") | |
Runtime type information.
| |
combineFaces (const polyMesh &mesh, const bool undoable=false) | |
Construct from mesh.
| |
const labelList & | masterFace () const |
If undoable: masterface for every set.
| |
const labelList & | savedPointLabels () const |
If undoable: set of original point labels of stored points.
| |
labelListList | getMergeSets (const scalar featureCos, const scalar minConcaveCos, const labelHashSet &boundaryCells) const |
Extract lists of all (non-coupled) boundary faces on selected.
| |
labelListList | getMergeSets (const scalar featureCos, const scalar minConcaveCos) const |
Extract lists of all (non-coupled) boundary faces that can.
| |
void | setRefinement (const labelListList &, polyTopoChange &) |
Play commands into polyTopoChange to combine faces. Gets.
| |
void | updateMesh (const mapPolyMesh &) |
Force recalculation of locally stored data on topological change.
| |
void | setUnrefinement (const labelList &masterFaces, polyTopoChange &meshMod, Map< label > &restoredPoints, Map< label > &restoredFaces, Map< label > &restoredCells) |
Play commands into polyTopoChange to reinsert original faces.
| |
Static Public Member Functions | |
static face | getOutsideFace (const indirectPrimitivePatch &) |
Gets outside of patch as a face (in mesh point labels)
|
combineFaces | ( | const polyMesh & | mesh, |
const bool | undoable = false
|
||
) |
Construct from mesh.
Definition at line 277 of file combineFaces.C.
ClassName | ( | "combineFaces" | ) |
Runtime type information.
const labelList& masterFace | ( | ) | const [inline]
|
If undoable: masterface for every set.
Definition at line 141 of file combineFaces.H.
const labelList& savedPointLabels | ( | ) | const [inline]
|
If undoable: set of original point labels of stored points.
Definition at line 147 of file combineFaces.H.
Foam::labelListList getMergeSets | ( | const scalar | featureCos, |
const scalar | minConcaveCos, | ||
const labelHashSet & | boundaryCells | ||
) | const |
Extract lists of all (non-coupled) boundary faces on selected.
cells that can be merged. Uses getFaceRegions.
Definition at line 294 of file combineFaces.C.
References HashTable< T, label, Hash< label > >::end(), HashTable< T, Key, Hash >::find(), forAllConstIter, List< T >::setSize(), List< T >::size(), and HashTable< T, Key, Hash >::size().
Referenced by meshRefinement::mergePatchFaces().
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 378 of file combineFaces.C.
References polyPatch::coupled(), forAll, HashSet< Key, Hash >::insert(), and polyPatch::start().
Foam::face getOutsideFace | ( | const indirectPrimitivePatch & | fp ) | [static]
|
Gets outside of patch as a face (in mesh point labels)
Definition at line 409 of file combineFaces.C.
References Foam::abort(), e, PrimitivePatch< Face, FaceList, PointField, PointType >::edgeFaces(), PrimitivePatch< Face, FaceList, PointField, PointType >::edgeLoops(), PrimitivePatch< Face, FaceList, PointField, PointType >::edges(), PrimitivePatch< Face, FaceList, PointField, PointType >::faceEdges(), Foam::FatalError, FatalErrorIn, UList< T >::fcIndex(), Foam::findIndex(), PrimitivePatch< Face, FaceList, PointField, PointType >::localFaces(), PrimitivePatch< Face, FaceList, PointField, PointType >::meshPoints(), face::nextLabel(), PrimitivePatch< Face, FaceList, PointField, PointType >::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 553 of file combineFaces.C.
References Foam::abort(), Foam::FatalError, FatalErrorIn, faceZone::flipMap(), forAll, HashTable< T, Key, Hash >::insert(), Foam::nl, polyTopoChange::setAction(), List< T >::size(), syncTools::syncPointList(), faceZone::whichFace(), and polyBoundaryMesh::whichPatch().
Referenced by meshRefinement::mergePatchFaces().
void updateMesh | ( | const mapPolyMesh & | map ) |
Force recalculation of locally stored data on topological change.
Definition at line 786 of file combineFaces.C.
References Foam::abort(), Foam::FatalError, FatalErrorIn, forAll, Foam::inplaceRenumber(), Foam::nl, mapPolyMesh::reverseFaceMap(), and mapPolyMesh::reversePointMap().
Referenced by meshRefinement::mergePatchFaces().
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 inbetween 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 838 of file combineFaces.C.
References Foam::abort(), UList< T >::empty(), HashTable< T, label, Hash< label > >::end(), Foam::exit(), Foam::FatalError, FatalErrorIn, HashTable< T, Key, Hash >::find(), faceZone::flipMap(), forAll, HashTable< T, Key, Hash >::insert(), polyTopoChange::setAction(), List< T >::size(), and faceZone::whichFace().