139 #ifndef polyTopoChangeMap_H
140 #define polyTopoChangeMap_H
167 const label nOldPoints_;
170 const label nOldFaces_;
173 const label nOldCells_;
370 return oldPatchStarts_[0];
397 return pointsFromPointsMap_;
411 return facesFromPointsMap_;
417 return facesFromEdgesMap_;
423 return facesFromFacesMap_;
436 return cellsFromPointsMap_;
442 return cellsFromEdgesMap_;
448 return cellsFromFacesMap_;
454 return cellsFromCellsMap_;
464 return reversePointMap_;
471 label i = reversePointMap_[oldPointi];
484 <<
"old point label " << oldPointi
485 <<
" has reverseMap " << i <<
endl
486 <<
"Only call mergedPoint for removed points."
496 return reverseFaceMap_;
502 label i = reverseFaceMap_[oldFacei];
515 <<
"old face label " << oldFacei
516 <<
" has reverseMap " << i <<
endl
517 <<
"Only call mergedFace for removed faces."
527 return reverseCellMap_;
533 label i = reverseCellMap_[oldCelli];
546 <<
"old cell label " << oldCelli
547 <<
" has reverseMap " << i <<
endl
548 <<
"Only call mergedCell for removed cells."
557 return flipFaceFlux_;
565 return patchPointMap_;
576 return pointZoneMap_;
584 return faceZonePointMap_;
592 return faceZoneFaceMap_;
608 return preMotionPoints_;
614 return preMotionPoints_.
size() > 0;
621 return oldPatchSizes_;
627 return oldPatchStarts_;
633 return oldPatchNMeshPoints_;
641 return oldCellVolumesPtr_.
valid();
646 return oldCellVolumesPtr_();
void size(const label)
Override size to be inconsistent with allocated storage.
An auto-pointer similar to the STL auto_ptr but with automatic casting to a reference to the type and...
bool valid() const
Return true if the autoPtr valid (ie, the pointer is set)
Mesh consisting of general polyhedral cells.
Class containing mesh-to-mesh mapping information after a change in polyMesh topology.
label nOldCells() const
Number of old cells.
label mergedFace(const label oldFacei) const
If face is removed return face (on new mesh) it merged into.
const labelListList & cellZoneMap() const
Cell zone renumbering.
const List< objectMap > & cellsFromEdgesMap() const
Cells inflated from edges.
const List< objectMap > & cellsFromPointsMap() const
Cells inflated from points.
const labelHashSet & flipFaceFlux() const
Map of flipped face flux faces.
const labelList & cellMap() const
Old cell map.
label nOldInternalFaces() const
Number of old internal faces.
const pointField & preMotionPoints() const
Pre-motion point positions.
const labelList & reversePointMap() const
Reverse point map.
void operator=(const polyTopoChangeMap &)=delete
Disallow default bitwise assignment.
const labelListList & faceZoneFaceMap() const
Face zone face renumbering.
const labelList & pointMap() const
Old point map.
const labelList & oldPatchNMeshPoints() const
Return numbers of mesh points per old patch.
const List< objectMap > & pointsFromPointsMap() const
Points originating from points.
const labelList & reverseCellMap() const
Reverse cell map.
const labelList & reverseFaceMap() const
Reverse face map.
label mergedPoint(const label oldPointi) const
If point is removed return point (on new mesh) it merged.
label mergedCell(const label oldCelli) const
If cell is removed return cell (on new mesh) it merged into.
polyTopoChangeMap(const polyMesh &mesh)
Construct from mesh only, no topology change.
label nOldFaces() const
Number of old faces.
const scalarField & oldCellVolumes() const
const labelListList & faceZonePointMap() const
Face zone point renumbering.
label nOldPoints() const
Number of old points.
const labelList & oldPatchStarts() const
Return list of the old patch start labels.
const List< objectMap > & facesFromFacesMap() const
Faces originating from faces.
const labelListList & pointZoneMap() const
Point zone renumbering.
const List< objectMap > & facesFromEdgesMap() const
Faces inflated from edges.
const List< objectMap > & cellsFromCellsMap() const
Cells originating from cells.
bool hasOldCellVolumes() const
const labelListList & patchPointMap() const
Patch point renumbering.
const List< objectMap > & cellsFromFacesMap() const
Cells inflated from faces.
const polyMesh & mesh() const
Return polyMesh.
const labelList & oldPatchSizes() const
Return list of the old patch sizes.
const List< objectMap > & facesFromPointsMap() const
Faces inflated from points.
const labelList & faceMap() const
Old face map.
bool hasMotionPoints() const
Has valid preMotionPoints?
#define FatalErrorInFunction
Report an error message using Foam::FatalError.
intWM_LABEL_SIZE_t label
A label is an int32_t or int64_t as specified by the pre-processor macro WM_LABEL_SIZE.
Ostream & endl(Ostream &os)
Add newline and flush stream.
errorManip< error > abort(error &err)