Go to the documentation of this file.
142 #ifndef mapPolyMesh_H
143 #define mapPolyMesh_H
170 const label nOldPoints_;
173 const label nOldFaces_;
176 const label nOldCells_;
378 return oldPatchStarts_[0];
405 return pointsFromPointsMap_;
419 return facesFromPointsMap_;
425 return facesFromEdgesMap_;
431 return facesFromFacesMap_;
444 return cellsFromPointsMap_;
450 return cellsFromEdgesMap_;
456 return cellsFromFacesMap_;
462 return cellsFromCellsMap_;
472 return reversePointMap_;
479 label i = reversePointMap_[oldPointi];
492 <<
"old point label " << oldPointi
493 <<
" has reverseMap " << i <<
endl
494 <<
"Only call mergedPoint for removed points."
504 return reverseFaceMap_;
510 label i = reverseFaceMap_[oldFacei];
523 <<
"old face label " << oldFacei
524 <<
" has reverseMap " << i <<
endl
525 <<
"Only call mergedFace for removed faces."
535 return reverseCellMap_;
541 label i = reverseCellMap_[oldCelli];
554 <<
"old cell label " << oldCelli
555 <<
" has reverseMap " << i <<
endl
556 <<
"Only call mergedCell for removed cells."
565 return flipFaceFlux_;
573 return patchPointMap_;
584 return pointZoneMap_;
592 return faceZonePointMap_;
600 return faceZoneFaceMap_;
616 return preMotionPoints_;
622 return preMotionPoints_.size() > 0;
629 return oldPatchSizes_;
635 return oldPatchStarts_;
641 return oldPatchNMeshPoints_;
649 return bool(oldCellVolumesPtr_);
654 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.
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.
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.