Class containing mesh-to-mesh mapping information after a change in polyMesh topology. More...
Public Member Functions | |
polyTopoChangeMap (const polyMesh &mesh) | |
Construct from mesh only, no topology change. More... | |
polyTopoChangeMap (const polyMesh &mesh, const label nOldPoints, const label nOldFaces, const label nOldCells, labelList &&pointMap, List< objectMap > &&pointsFromPoints, labelList &&faceMap, List< objectMap > &&facesFromFaces, labelList &&cellMap, List< objectMap > &&cellsFromCells, labelList &&reversePointMap, labelList &&reverseFaceMap, labelList &&reverseCellMap, labelHashSet &&flipFaceFlux, labelListList &&patchPointMap, labelList &&oldPatchSizes, labelList &&oldPatchStarts, labelList &&oldPatchNMeshPoints, autoPtr< scalarField > &&oldCellVolumesPtr) | |
Construct from components reusing storage. More... | |
polyTopoChangeMap (const polyTopoChangeMap &)=delete | |
Disallow default bitwise copy construction. More... | |
const polyMesh & | mesh () const |
Return polyMesh. More... | |
label | nOldPoints () const |
Number of old points. More... | |
label | nOldInternalFaces () const |
Number of old internal faces. More... | |
label | nOldFaces () const |
Number of old faces. More... | |
label | nOldCells () const |
Number of old cells. More... | |
const labelList & | pointMap () const |
Old point map. More... | |
const List< objectMap > & | pointsFromPointsMap () const |
Points originating from points. More... | |
const labelList & | faceMap () const |
Old face map. More... | |
const List< objectMap > & | facesFromFacesMap () const |
Faces originating from faces. More... | |
const labelList & | cellMap () const |
Old cell map. More... | |
const List< objectMap > & | cellsFromCellsMap () const |
Cells originating from cells. More... | |
const labelList & | reversePointMap () const |
Reverse point map. More... | |
label | mergedPoint (const label oldPointi) const |
If point is removed return point (on new mesh) it merged. More... | |
const labelList & | reverseFaceMap () const |
Reverse face map. More... | |
label | mergedFace (const label oldFacei) const |
If face is removed return face (on new mesh) it merged into. More... | |
const labelList & | reverseCellMap () const |
Reverse cell map. More... | |
label | mergedCell (const label oldCelli) const |
If cell is removed return cell (on new mesh) it merged into. More... | |
const labelHashSet & | flipFaceFlux () const |
Map of flipped face flux faces. More... | |
const labelListList & | patchPointMap () const |
Patch point renumbering. More... | |
const labelList & | oldPatchSizes () const |
Return list of the old patch sizes. More... | |
const labelList & | oldPatchStarts () const |
Return list of the old patch start labels. More... | |
const labelList & | oldPatchNMeshPoints () const |
Return numbers of mesh points per old patch. More... | |
bool | hasOldCellVolumes () const |
const scalarField & | oldCellVolumes () const |
void | operator= (const polyTopoChangeMap &)=delete |
Disallow default bitwise assignment. More... | |
Class containing mesh-to-mesh mapping information after a change in polyMesh topology.
General:
In the topology change points/faces/cells
All this information is necessary to correctly map fields.
Definition at line 125 of file polyTopoChangeMap.H.
polyTopoChangeMap | ( | const polyMesh & | mesh | ) |
Construct from mesh only, no topology change.
Definition at line 31 of file polyTopoChangeMap.C.
polyTopoChangeMap | ( | const polyMesh & | mesh, |
const label | nOldPoints, | ||
const label | nOldFaces, | ||
const label | nOldCells, | ||
labelList && | pointMap, | ||
List< objectMap > && | pointsFromPoints, | ||
labelList && | faceMap, | ||
List< objectMap > && | facesFromFaces, | ||
labelList && | cellMap, | ||
List< objectMap > && | cellsFromCells, | ||
labelList && | reversePointMap, | ||
labelList && | reverseFaceMap, | ||
labelList && | reverseCellMap, | ||
labelHashSet && | flipFaceFlux, | ||
labelListList && | patchPointMap, | ||
labelList && | oldPatchSizes, | ||
labelList && | oldPatchStarts, | ||
labelList && | oldPatchNMeshPoints, | ||
autoPtr< scalarField > && | oldCellVolumesPtr | ||
) |
Construct from components reusing storage.
Definition at line 40 of file polyTopoChangeMap.C.
|
delete |
Disallow default bitwise copy construction.
|
inline |
Return polyMesh.
Definition at line 240 of file polyTopoChangeMap.H.
Referenced by surfaceFieldValue::topoChange(), layerAverage::topoChange(), patchCutLayerAverage::topoChange(), streamlines::topoChange(), hexRef8Data::topoChange(), probes::topoChange(), sampledSets::topoChange(), sampledSurfaces::topoChange(), and cellEdgeAddressingList::topoChange().
|
inline |
Number of old points.
Definition at line 246 of file polyTopoChangeMap.H.
Referenced by hexRef8::topoChange().
|
inline |
Number of old internal faces.
Definition at line 252 of file polyTopoChangeMap.H.
|
inline |
Number of old faces.
Definition at line 258 of file polyTopoChangeMap.H.
Referenced by fvMesh::mapFields().
|
inline |
Number of old cells.
Definition at line 264 of file polyTopoChangeMap.H.
Referenced by fvMesh::mapFields(), and hexRef8::topoChange().
|
inline |
Old point map.
Contains the old point label for all new points. For preserved points this is the old point label. For added points this is the master point ID
Definition at line 273 of file polyTopoChangeMap.H.
Referenced by pointMapper::pointMapper(), componentDisplacementMotionSolver::topoChange(), displacementLayeredMotionMotionSolver::topoChange(), solidBodyMotionSolver::topoChange(), polyMesh::topoChange(), hexRef8Data::topoChange(), rigidBodyMeshMotion::topoChange(), hexRef8::topoChange(), and pointZone::topoChange().
Points originating from points.
Definition at line 279 of file polyTopoChangeMap.H.
Referenced by pointMapper::pointMapper().
|
inline |
Old face map.
Contains a list of old face labels for every new face. Warning: this map contains invalid entries for new faces
Definition at line 287 of file polyTopoChangeMap.H.
Referenced by faceMapper::faceMapper(), fvMesh::mapFields(), faceZone::topoChange(), and meshRefinement::topoChange().
Faces originating from faces.
Definition at line 293 of file polyTopoChangeMap.H.
Referenced by faceMapper::faceMapper().
|
inline |
Old cell map.
Contains old cell label for all preserved cells.
Definition at line 300 of file polyTopoChangeMap.H.
Referenced by cellMapper::cellMapper(), fvMesh::mapFields(), polyMesh::topoChange(), hexRef8Data::topoChange(), refinementHistory::topoChange(), hexRef8::topoChange(), and cellZone::topoChange().
Cells originating from cells.
Definition at line 306 of file polyTopoChangeMap.H.
Referenced by cellMapper::cellMapper().
|
inline |
Reverse point map.
Contains new point label for all old and added points
Definition at line 316 of file polyTopoChangeMap.H.
Referenced by localPointRegion::topoChange(), componentDisplacementMotionSolver::topoChange(), displacementLayeredMotionMotionSolver::topoChange(), solidBodyMotionSolver::topoChange(), createShellMesh::topoChange(), meshCutter::topoChange(), combineFaces::topoChange(), duplicatePoints::topoChange(), removePoints::topoChange(), rigidBodyMeshMotion::topoChange(), addPatchCellLayer::topoChange(), hexRef8::topoChange(), pointSet::topoChange(), pointZoneSet::topoChange(), and pointZone::topoChange().
If point is removed return point (on new mesh) it merged.
into
Definition at line 323 of file polyTopoChangeMap.H.
|
inline |
Reverse face map.
Contains new face label for all old and added faces
Definition at line 348 of file polyTopoChangeMap.H.
Referenced by externalDisplacementMeshMover::topoChange(), localPointRegion::topoChange(), faceZone::topoChange(), createShellMesh::topoChange(), meshCutter::topoChange(), combineFaces::topoChange(), removePoints::topoChange(), probes::topoChange(), meshRefinement::topoChange(), addPatchCellLayer::topoChange(), faceSet::topoChange(), and faceZoneSet::topoChange().
If face is removed return face (on new mesh) it merged into.
Definition at line 354 of file polyTopoChangeMap.H.
References Foam::abort(), Foam::endl(), Foam::FatalError, and FatalErrorInFunction.
|
inline |
Reverse cell map.
Contains new cell label for all old and added cells
Definition at line 379 of file polyTopoChangeMap.H.
Referenced by Cloud< ParticleType >::topoChange(), createShellMesh::topoChange(), meshCutter::topoChange(), refinementHistory::topoChange(), probes::topoChange(), hexRef8::topoChange(), cellSet::topoChange(), cellZoneSet::topoChange(), cellZone::topoChange(), and undoableMeshCutter::topoChange().
If cell is removed return cell (on new mesh) it merged into.
Definition at line 385 of file polyTopoChangeMap.H.
References Foam::abort(), Foam::endl(), Foam::FatalError, and FatalErrorInFunction.
|
inline |
Map of flipped face flux faces.
Definition at line 409 of file polyTopoChangeMap.H.
Referenced by faceZone::topoChange().
|
inline |
Patch point renumbering.
For every preserved point on a patch give the old position. For added points, the index is set to -1
Definition at line 417 of file polyTopoChangeMap.H.
|
inline |
Return list of the old patch sizes.
Definition at line 424 of file polyTopoChangeMap.H.
|
inline |
Return list of the old patch start labels.
Definition at line 430 of file polyTopoChangeMap.H.
|
inline |
Return numbers of mesh points per old patch.
Definition at line 436 of file polyTopoChangeMap.H.
|
inline |
Definition at line 444 of file polyTopoChangeMap.H.
References autoPtr< T >::valid().
|
inline |
Definition at line 449 of file polyTopoChangeMap.H.
|
delete |
Disallow default bitwise assignment.