142 #ifndef mapPolyMesh_H 143 #define mapPolyMesh_H 171 const label nOldPoints_;
174 const label nOldFaces_;
177 const label nOldCells_;
381 return oldPatchStarts_[0];
408 return pointsFromPointsMap_;
422 return facesFromPointsMap_;
428 return facesFromEdgesMap_;
434 return facesFromFacesMap_;
447 return cellsFromPointsMap_;
453 return cellsFromEdgesMap_;
459 return cellsFromFacesMap_;
465 return cellsFromCellsMap_;
475 return reversePointMap_;
482 label i = reversePointMap_[oldPointi];
495 <<
"old point label " << oldPointi
496 <<
" has reverseMap " << i <<
endl 497 <<
"Only call mergedPoint for removed points." 507 return reverseFaceMap_;
513 label i = reverseFaceMap_[oldFacei];
526 <<
"old face label " << oldFacei
527 <<
" has reverseMap " << i <<
endl 528 <<
"Only call mergedFace for removed faces." 538 return reverseCellMap_;
544 label i = reverseCellMap_[oldCelli];
557 <<
"old cell label " << oldCelli
558 <<
" has reverseMap " << i <<
endl 559 <<
"Only call mergedCell for removed cells." 568 return flipFaceFlux_;
576 return patchPointMap_;
587 return pointZoneMap_;
595 return faceZonePointMap_;
603 return faceZoneFaceMap_;
619 return preMotionPoints_;
625 return !preMotionPoints_.
empty();
632 return oldPatchSizes_;
638 return oldPatchStarts_;
644 return oldPatchNMeshPoints_;
652 return bool(oldCellVolumesPtr_);
657 return *oldCellVolumesPtr_;
void operator=(const mapPolyMesh &)=delete
No copy assignment.
const polyMesh & mesh() const noexcept
Return polyMesh.
const labelHashSet & flipFaceFlux() const noexcept
Map of flipped face flux faces.
error FatalError
Error stream (stdout output on all processes), with additional 'FOAM FATAL ERROR' header text and sta...
#define FatalErrorInFunction
Report an error message using Foam::FatalError.
const labelList & oldPatchNMeshPoints() const noexcept
Return numbers of mesh points per old patch.
bool hasOldCellVolumes() const noexcept
bool empty() const noexcept
True if List is empty (ie, size() is zero)
Ostream & endl(Ostream &os)
Add newline and flush stream.
const labelListList & faceZoneFaceMap() const noexcept
Face zone face renumbering.
List< labelList > labelListList
List of labelList.
const List< objectMap > & facesFromPointsMap() const noexcept
Faces inflated from points.
Class containing mesh-to-mesh mapping information after a change in polyMesh topology.
label nOldInternalFaces() const
Number of old internal faces.
const labelList & reverseFaceMap() const noexcept
Reverse face map.
const labelList & oldPatchSizes() const noexcept
Return list of the old patch sizes.
HashSet< label, Hash< label > > labelHashSet
A HashSet of labels, uses label hasher.
label mergedPoint(const label oldPointi) const
If point is removed return point (on new mesh) it merged.
vectorField pointField
pointField is a vectorField.
const List< objectMap > & cellsFromCellsMap() const noexcept
Cells originating from cells.
const labelList & cellMap() const noexcept
Old cell map.
Field< scalar > scalarField
Specialisation of Field<T> for scalar.
const List< objectMap > & cellsFromPointsMap() const noexcept
Cells inflated from points.
const labelList & pointMap() const noexcept
Old point map.
const labelList & reverseCellMap() const noexcept
Reverse cell map.
mapPolyMesh(const mapPolyMesh &)=delete
No copy construct.
const labelList & reversePointMap() const noexcept
Reverse point map.
label mergedCell(const label oldCelli) const
If cell is removed return cell (on new mesh) it merged into.
errorManip< error > abort(error &err)
const labelListList & pointZoneMap() const noexcept
Point zone renumbering.
label nOldCells() const noexcept
Number of old cells.
const labelListList & cellZoneMap() const noexcept
Cell zone renumbering.
const List< objectMap > & facesFromEdgesMap() const noexcept
Faces inflated from edges.
const List< objectMap > & pointsFromPointsMap() const noexcept
Points originating from points.
bool hasMotionPoints() const noexcept
Has valid preMotionPoints?
label nOldPoints() const noexcept
Number of old points.
const labelList & oldPatchStarts() const noexcept
Return list of the old patch start labels.
const labelListList & patchPointMap() const noexcept
Patch point renumbering.
label mergedFace(const label oldFacei) const
If face is removed return face (on new mesh) it merged into.
const scalarField & oldCellVolumes() const
const List< objectMap > & cellsFromEdgesMap() const noexcept
Cells inflated from edges.
label nOldFaces() const noexcept
Number of old faces.
const List< objectMap > & cellsFromFacesMap() const noexcept
Cells inflated from faces.
const labelListList & faceZonePointMap() const noexcept
Face zone point renumbering.
Pointer management similar to std::unique_ptr, with some additional methods and type checking...
Mesh consisting of general polyhedral cells.
const labelList & faceMap() const noexcept
Old face map.
List< label > labelList
A List of labels.
const List< objectMap > & facesFromFacesMap() const noexcept
Faces originating from faces.
const pointField & preMotionPoints() const noexcept
Pre-motion point positions.