106 #ifndef polyTopoChangeMap_H
107 #define polyTopoChangeMap_H
134 const label nOldPoints_;
137 const label nOldFaces_;
140 const label nOldCells_;
255 return oldPatchStarts_[0];
282 return pointsFromPointsMap_;
296 return facesFromFacesMap_;
309 return cellsFromCellsMap_;
319 return reversePointMap_;
326 label i = reversePointMap_[oldPointi];
339 <<
"old point label " << oldPointi
340 <<
" has reverseMap " << i <<
endl
341 <<
"Only call mergedPoint for removed points."
351 return reverseFaceMap_;
357 label i = reverseFaceMap_[oldFacei];
370 <<
"old face label " << oldFacei
371 <<
" has reverseMap " << i <<
endl
372 <<
"Only call mergedFace for removed faces."
382 return reverseCellMap_;
388 label i = reverseCellMap_[oldCelli];
401 <<
"old cell label " << oldCelli
402 <<
" has reverseMap " << i <<
endl
403 <<
"Only call mergedCell for removed cells."
412 return flipFaceFlux_;
420 return patchPointMap_;
427 return oldPatchSizes_;
433 return oldPatchStarts_;
439 return oldPatchNMeshPoints_;
447 return oldCellVolumesPtr_.
valid();
452 return oldCellVolumesPtr_();
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 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 labelList & reversePointMap() const
Reverse point map.
void operator=(const polyTopoChangeMap &)=delete
Disallow default bitwise assignment.
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
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 List< objectMap > & cellsFromCellsMap() const
Cells originating from cells.
bool hasOldCellVolumes() const
const labelListList & patchPointMap() const
Patch point renumbering.
const polyMesh & mesh() const
Return polyMesh.
const labelList & oldPatchSizes() const
Return list of the old patch sizes.
const labelList & faceMap() const
Old face map.
#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)