139 #ifndef polyTopoChangeMap_H 140 #define polyTopoChangeMap_H 167 const label nOldPoints_;
170 const label nOldFaces_;
173 const label nOldCells_;
314 const label nOldPoints,
315 const label nOldFaces,
316 const label nOldCells,
367 return oldPatchStarts_[0];
394 return pointsFromPointsMap_;
408 return facesFromPointsMap_;
414 return facesFromEdgesMap_;
420 return facesFromFacesMap_;
433 return cellsFromPointsMap_;
439 return cellsFromEdgesMap_;
445 return cellsFromFacesMap_;
451 return cellsFromCellsMap_;
461 return reversePointMap_;
468 label i = reversePointMap_[oldPointi];
481 <<
"old point label " << oldPointi
482 <<
" has reverseMap " << i <<
endl 483 <<
"Only call mergedPoint for removed points." 493 return reverseFaceMap_;
499 label i = reverseFaceMap_[oldFacei];
512 <<
"old face label " << oldFacei
513 <<
" has reverseMap " << i <<
endl 514 <<
"Only call mergedFace for removed faces." 524 return reverseCellMap_;
530 label i = reverseCellMap_[oldCelli];
543 <<
"old cell label " << oldCelli
544 <<
" has reverseMap " << i <<
endl 545 <<
"Only call mergedCell for removed cells." 554 return flipFaceFlux_;
562 return patchPointMap_;
573 return pointZoneMap_;
581 return faceZonePointMap_;
589 return faceZoneFaceMap_;
605 return preMotionPoints_;
611 return preMotionPoints_.
size() > 0;
618 return oldPatchSizes_;
624 return oldPatchStarts_;
630 return oldPatchNMeshPoints_;
638 return oldCellVolumesPtr_.
valid();
643 return oldCellVolumesPtr_();
const labelHashSet & flipFaceFlux() const
Map of flipped face flux faces.
const scalarField & oldCellVolumes() const
const labelList & oldPatchStarts() const
Return list of the old patch start labels.
const labelListList & patchPointMap() const
Patch point renumbering.
const labelList & oldPatchNMeshPoints() const
Return numbers of mesh points per old patch.
const List< objectMap > & facesFromEdgesMap() const
Faces inflated from edges.
const labelListList & pointZoneMap() const
Point zone renumbering.
const labelList & faceMap() const
Old face map.
#define FatalErrorInFunction
Report an error message using Foam::FatalError.
void size(const label)
Override size to be inconsistent with allocated storage.
bool hasMotionPoints() const
Has valid preMotionPoints?
const labelList & pointMap() const
Old point map.
Ostream & endl(Ostream &os)
Add newline and flush stream.
const List< objectMap > & cellsFromPointsMap() const
Cells inflated from points.
const List< objectMap > & pointsFromPointsMap() const
Points originating from points.
const List< objectMap > & cellsFromFacesMap() const
Cells inflated from faces.
const List< objectMap > & cellsFromEdgesMap() const
Cells inflated from edges.
label mergedCell(const label oldCelli) const
If cell is removed return cell (on new mesh) it merged into.
label nOldPoints() const
Number of old points.
void operator=(const polyTopoChangeMap &)=delete
Disallow default bitwise assignment.
const labelList & cellMap() const
Old cell map.
const labelListList & faceZonePointMap() const
Face zone point renumbering.
const List< objectMap > & cellsFromCellsMap() const
Cells originating from cells.
const labelList & reverseFaceMap() const
Reverse face map.
Class containing mesh-to-mesh mapping information after a change in polyMesh topology.
const labelList & reversePointMap() const
Reverse point map.
bool valid() const
Return true if the autoPtr valid (ie, the pointer is set)
errorManip< error > abort(error &err)
const polyMesh & mesh() const
Return polyMesh.
const pointField & preMotionPoints() const
Pre-motion point positions.
const labelList & reverseCellMap() const
Reverse cell map.
label mergedPoint(const label oldPointi) const
If point is removed return point (on new mesh) it merged.
label nOldInternalFaces() const
Number of old internal faces.
const List< objectMap > & facesFromFacesMap() const
Faces originating from faces.
bool hasOldCellVolumes() const
An auto-pointer similar to the STL auto_ptr but with automatic casting to a reference to the type and...
Mesh consisting of general polyhedral cells.
const labelListList & cellZoneMap() const
Cell zone renumbering.
const labelList & oldPatchSizes() const
Return list of the old patch sizes.
label mergedFace(const label oldFacei) const
If face is removed return face (on new mesh) it merged into.
polyTopoChangeMap(const polyMesh &mesh, const label nOldPoints, const label nOldFaces, const label nOldCells, const labelList &pointMap, const List< objectMap > &pointsFromPoints, const labelList &faceMap, const List< objectMap > &facesFromPoints, const List< objectMap > &facesFromEdges, const List< objectMap > &facesFromFaces, const labelList &cellMap, const List< objectMap > &cellsFromPoints, const List< objectMap > &cellsFromEdges, const List< objectMap > &cellsFromFaces, const List< objectMap > &cellsFromCells, const labelList &reversePointMap, const labelList &reverseFaceMap, const labelList &reverseCellMap, const labelHashSet &flipFaceFlux, const labelListList &patchPointMap, const labelListList &pointZoneMap, const labelListList &faceZonePointMap, const labelListList &faceZoneFaceMap, const labelListList &cellZoneMap, const pointField &preMotionPoints, const labelList &oldPatchStarts, const labelList &oldPatchNMeshPoints, const autoPtr< scalarField > &oldCellVolumesPtr)
Construct from components. Copy (except for oldCellVolumes).
label nOldFaces() const
Number of old faces.
label nOldCells() const
Number of old cells.
const List< objectMap > & facesFromPointsMap() const
Faces inflated from points.
const labelListList & faceZoneFaceMap() const
Face zone face renumbering.