139 #ifndef mapPolyMesh_H 140 #define mapPolyMesh_H 167 const label nOldPoints_;
170 const label nOldFaces_;
173 const label nOldCells_;
323 const label nOldPoints,
324 const label nOldFaces,
325 const label nOldCells,
372 return oldPatchStarts_[0];
399 return pointsFromPointsMap_;
413 return facesFromPointsMap_;
419 return facesFromEdgesMap_;
425 return facesFromFacesMap_;
438 return cellsFromPointsMap_;
444 return cellsFromEdgesMap_;
450 return cellsFromFacesMap_;
456 return cellsFromCellsMap_;
466 return reversePointMap_;
473 label i = reversePointMap_[oldPointi];
486 <<
"old point label " << oldPointi
487 <<
" has reverseMap " << i <<
endl 488 <<
"Only call mergedPoint for removed points." 498 return reverseFaceMap_;
504 label i = reverseFaceMap_[oldFacei];
517 <<
"old face label " << oldFacei
518 <<
" has reverseMap " << i <<
endl 519 <<
"Only call mergedFace for removed faces." 529 return reverseCellMap_;
535 label i = reverseCellMap_[oldCelli];
548 <<
"old cell label " << oldCelli
549 <<
" has reverseMap " << i <<
endl 550 <<
"Only call mergedCell for removed cells." 559 return flipFaceFlux_;
567 return patchPointMap_;
578 return pointZoneMap_;
586 return faceZonePointMap_;
594 return faceZoneFaceMap_;
610 return preMotionPoints_;
616 return preMotionPoints_.
size() > 0;
623 return oldPatchSizes_;
629 return oldPatchStarts_;
635 return oldPatchNMeshPoints_;
643 return oldCellVolumesPtr_.
valid();
648 return oldCellVolumesPtr_();
const List< objectMap > & cellsFromEdgesMap() const
Cells inflated from edges.
intWM_LABEL_SIZE_t label
A label is an int32_t or int64_t as specified by the pre-processor macro WM_LABEL_SIZE.
const List< objectMap > & facesFromPointsMap() const
Faces inflated from points.
const labelList & oldPatchNMeshPoints() const
Return numbers of mesh points per old patch.
label mergedPoint(const label oldPointi) const
If point is removed return point (on new mesh) it merged.
#define FatalErrorInFunction
Report an error message using Foam::FatalError.
const labelHashSet & flipFaceFlux() const
Map of flipped face flux faces.
label mergedFace(const label oldFacei) const
If face is removed return face (on new mesh) it merged into.
void size(const label)
Override size to be inconsistent with allocated storage.
const labelList & oldPatchSizes() const
Return list of the old patch sizes.
label nOldPoints() const
Number of old points.
Ostream & endl(Ostream &os)
Add newline and flush stream.
bool hasMotionPoints() const
Has valid preMotionPoints?
const labelList & pointMap() const
Old point map.
const labelList & oldPatchStarts() const
Return list of the old patch start labels.
const List< objectMap > & cellsFromCellsMap() const
Cells originating from cells.
const labelListList & pointZoneMap() const
Point zone renumbering.
Class containing mesh-to-mesh mapping information after a change in polyMesh topology.
const List< objectMap > & facesFromEdgesMap() const
Faces inflated from edges.
const List< objectMap > & pointsFromPointsMap() const
Points originating from points.
const labelListList & cellZoneMap() const
Cell zone renumbering.
const labelList & reverseFaceMap() const
Reverse face map.
const labelListList & patchPointMap() const
Patch point renumbering.
const labelListList & faceZoneFaceMap() const
Face zone face renumbering.
errorManip< error > abort(error &err)
bool valid() const
Return true if the autoPtr valid (ie, the pointer is set).
label nOldInternalFaces() const
Number of old internal faces.
label nOldFaces() const
Number of old faces.
const List< objectMap > & cellsFromFacesMap() const
Cells inflated from faces.
const labelListList & faceZonePointMap() const
Face zone point renumbering.
label mergedCell(const label oldCelli) const
If cell is removed return cell (on new mesh) it merged into.
label nOldCells() const
Number of old cells.
bool hasOldCellVolumes() const
const labelList & cellMap() const
Old cell map.
const scalarField & oldCellVolumes() const
const labelList & reverseCellMap() const
Reverse cell map.
const labelList & faceMap() const
Old face map.
const pointField & preMotionPoints() const
Pre-motion point positions.
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 List< objectMap > & facesFromFacesMap() const
Faces originating from faces.
const polyMesh & mesh() const
Return polyMesh.
const labelList & reversePointMap() const
Reverse point map.
const List< objectMap > & cellsFromPointsMap() const
Cells inflated from points.