Go to the documentation of this file.
141 #ifndef mapPolyMesh_H
142 #define mapPolyMesh_H
169 const label nOldPoints_;
172 const label nOldFaces_;
175 const label nOldCells_;
377 return oldPatchStarts_[0];
404 return pointsFromPointsMap_;
418 return facesFromPointsMap_;
424 return facesFromEdgesMap_;
430 return facesFromFacesMap_;
443 return cellsFromPointsMap_;
449 return cellsFromEdgesMap_;
455 return cellsFromFacesMap_;
461 return cellsFromCellsMap_;
471 return reversePointMap_;
478 label i = reversePointMap_[oldPointi];
491 <<
"old point label " << oldPointi
492 <<
" has reverseMap " << i <<
endl
493 <<
"Only call mergedPoint for removed points."
503 return reverseFaceMap_;
509 label i = reverseFaceMap_[oldFacei];
522 <<
"old face label " << oldFacei
523 <<
" has reverseMap " << i <<
endl
524 <<
"Only call mergedFace for removed faces."
534 return reverseCellMap_;
540 label i = reverseCellMap_[oldCelli];
553 <<
"old cell label " << oldCelli
554 <<
" has reverseMap " << i <<
endl
555 <<
"Only call mergedCell for removed cells."
564 return flipFaceFlux_;
572 return patchPointMap_;
583 return pointZoneMap_;
591 return faceZonePointMap_;
599 return faceZoneFaceMap_;
615 return preMotionPoints_;
621 return preMotionPoints_.size() > 0;
628 return oldPatchSizes_;
634 return oldPatchStarts_;
640 return oldPatchNMeshPoints_;
648 return oldCellVolumesPtr_.
valid();
653 return *oldCellVolumesPtr_;
const List< objectMap > & facesFromPointsMap() const
Faces inflated from points.
const labelListList & faceZonePointMap() const
Face zone point renumbering.
List< label > labelList
A List of labels.
vectorField pointField
pointField is a vectorField.
const labelHashSet & flipFaceFlux() const
Map of flipped face flux faces.
const List< objectMap > & pointsFromPointsMap() const
Points originating from points.
const labelList & oldPatchNMeshPoints() const
Return numbers of mesh points per old patch.
label mergedFace(const label oldFacei) const
If face is removed return face (on new mesh) it merged into.
label mergedCell(const label oldCelli) const
If cell is removed return cell (on new mesh) it merged into.
const List< objectMap > & cellsFromPointsMap() const
Cells inflated from points.
label nOldFaces() const
Number of old faces.
bool valid() const noexcept
True if the managed pointer is non-null.
Ostream & endl(Ostream &os)
Add newline and flush stream.
const labelList & oldPatchSizes() const
Return list of the old patch sizes.
const pointField & preMotionPoints() const
Pre-motion point positions.
label mergedPoint(const label oldPointi) const
If point is removed return point (on new mesh) it merged.
const labelListList & cellZoneMap() const
Cell zone renumbering.
Mesh consisting of general polyhedral cells.
intWM_LABEL_SIZE_t label
A label is an int32_t or int64_t as specified by the pre-processor macro WM_LABEL_SIZE.
label nOldPoints() const
Number of old points.
const List< objectMap > & facesFromEdgesMap() const
Faces inflated from edges.
const List< objectMap > & facesFromFacesMap() const
Faces originating from faces.
const List< objectMap > & cellsFromEdgesMap() const
Cells inflated from edges.
errorManip< error > abort(error &err)
const scalarField & oldCellVolumes() const
const labelList & reverseFaceMap() const
Reverse face map.
const labelListList & patchPointMap() const
Patch point renumbering.
Pointer management similar to std::unique_ptr, with some additional methods and type checking.
List< labelList > labelListList
A List of labelList.
const labelList & reverseCellMap() const
Reverse cell map.
#define FatalErrorInFunction
Report an error message using Foam::FatalError.
const labelList & reversePointMap() const
Reverse point map.
const labelList & oldPatchStarts() const
Return list of the old patch start labels.
const labelList & pointMap() const
Old point map.
label nOldCells() const
Number of old cells.
const labelListList & faceZoneFaceMap() const
Face zone face renumbering.
const labelList & faceMap() const
Old face map.
bool hasOldCellVolumes() const
const List< objectMap > & cellsFromFacesMap() const
Cells inflated from faces.
Class containing mesh-to-mesh mapping information after a change in polyMesh topology.
bool hasMotionPoints() const
Has valid preMotionPoints?
label nOldInternalFaces() const
Number of old internal faces.
const polyMesh & mesh() const
Return polyMesh.
const labelList & cellMap() const
Old cell map.
const List< objectMap > & cellsFromCellsMap() const
Cells originating from cells.
const labelListList & pointZoneMap() const
Point zone renumbering.