Public Member Functions | List of all members
mapPolyMesh Class Reference

Class containing mesh-to-mesh mapping information after a change in polyMesh topology. More...

Public Member Functions

 mapPolyMesh (const polyMesh &mesh)
 
 mapPolyMesh (const polyMesh &mesh, const label nOldPoints, const label nOldFaces, const label nOldCells, const labelList &pointMap, const List< objectMap > &pointsFromPoints, const labelList &faceMap, const List< objectMap > &facesFromPoints, const List< objectMap > &facesFromEdges, const List< objectMap > &facesFromFaces, const labelList &cellMap, const List< objectMap > &cellsFromPoints, const List< objectMap > &cellsFromEdges, const List< objectMap > &cellsFromFaces, const List< objectMap > &cellsFromCells, const labelList &reversePointMap, const labelList &reverseFaceMap, const labelList &reverseCellMap, const labelHashSet &flipFaceFlux, const labelListList &patchPointMap, const labelListList &pointZoneMap, const labelListList &faceZonePointMap, const labelListList &faceZoneFaceMap, const labelListList &cellZoneMap, const pointField &preMotionPoints, const labelList &oldPatchStarts, const labelList &oldPatchNMeshPoints, const autoPtr< scalarField > &oldCellVolumesPtr)
 
 mapPolyMesh (const polyMesh &mesh, const label nOldPoints, const label nOldFaces, const label nOldCells, labelList &pointMap, List< objectMap > &pointsFromPoints, labelList &faceMap, List< objectMap > &facesFromPoints, List< objectMap > &facesFromEdges, List< objectMap > &facesFromFaces, labelList &cellMap, List< objectMap > &cellsFromPoints, List< objectMap > &cellsFromEdges, List< objectMap > &cellsFromFaces, List< objectMap > &cellsFromCells, labelList &reversePointMap, labelList &reverseFaceMap, labelList &reverseCellMap, labelHashSet &flipFaceFlux, labelListList &patchPointMap, labelListList &pointZoneMap, labelListList &faceZonePointMap, labelListList &faceZoneFaceMap, labelListList &cellZoneMap, pointField &preMotionPoints, labelList &oldPatchStarts, labelList &oldPatchNMeshPoints, autoPtr< scalarField > &oldCellVolumesPtr, const bool reuse)
 
const polyMeshmesh () const
 
label nOldPoints () const
 
label nOldInternalFaces () const
 
label nOldFaces () const
 
label nOldCells () const
 
const labelListpointMap () const
 
const List< objectMap > & pointsFromPointsMap () const
 
const labelListfaceMap () const
 
const List< objectMap > & facesFromPointsMap () const
 
const List< objectMap > & facesFromEdgesMap () const
 
const List< objectMap > & facesFromFacesMap () const
 
const labelListcellMap () const
 
const List< objectMap > & cellsFromPointsMap () const
 
const List< objectMap > & cellsFromEdgesMap () const
 
const List< objectMap > & cellsFromFacesMap () const
 
const List< objectMap > & cellsFromCellsMap () const
 
const labelListreversePointMap () const
 
label mergedPoint (const label oldPointi) const
 
const labelListreverseFaceMap () const
 
label mergedFace (const label oldFacei) const
 
const labelListreverseCellMap () const
 
label mergedCell (const label oldCelli) const
 
const labelHashSetflipFaceFlux () const
 
const labelListListpatchPointMap () const
 
const labelListListpointZoneMap () const
 
const labelListListfaceZonePointMap () const
 
const labelListListfaceZoneFaceMap () const
 
const labelListListcellZoneMap () const
 
const pointFieldpreMotionPoints () const
 
bool hasMotionPoints () const
 
const labelListoldPatchSizes () const
 
const labelListoldPatchStarts () const
 
const labelListoldPatchNMeshPoints () const
 
bool hasOldCellVolumes () const
 
const scalarFieldoldCellVolumes () const
 

Detailed Description

Class containing mesh-to-mesh mapping information after a change in polyMesh topology.

General:

In the topology change points/faces/cells

All this information is necessary to correctly map fields.

points
faces

Note (*)
if the newly inflated face is a boundary face the list of faces will only be boundary faces; if the new face is an internal face they will only be internal faces.

cells
Source files

Definition at line 157 of file mapPolyMesh.H.

Constructor & Destructor Documentation

◆ mapPolyMesh() [1/3]

mapPolyMesh ( const polyMesh mesh)

Definition at line 27 of file mapPolyMesh.C.

References polyMesh::boundaryMesh(), polyMesh::cellZones(), polyMesh::faceZones(), forAll, Foam::identity(), mapPolyMesh::mesh(), nPoints, and polyMesh::pointZones().

Here is the call graph for this function:

◆ mapPolyMesh() [2/3]

mapPolyMesh ( const polyMesh mesh,
const label  nOldPoints,
const label  nOldFaces,
const label  nOldCells,
const labelList pointMap,
const List< objectMap > &  pointsFromPoints,
const labelList faceMap,
const List< objectMap > &  facesFromPoints,
const List< objectMap > &  facesFromEdges,
const List< objectMap > &  facesFromFaces,
const labelList cellMap,
const List< objectMap > &  cellsFromPoints,
const List< objectMap > &  cellsFromEdges,
const List< objectMap > &  cellsFromFaces,
const List< objectMap > &  cellsFromCells,
const labelList reversePointMap,
const labelList reverseFaceMap,
const labelList reverseCellMap,
const labelHashSet flipFaceFlux,
const labelListList patchPointMap,
const labelListList pointZoneMap,
const labelListList faceZonePointMap,
const labelListList faceZoneFaceMap,
const labelListList cellZoneMap,
const pointField preMotionPoints,
const labelList oldPatchStarts,
const labelList oldPatchNMeshPoints,
const autoPtr< scalarField > &  oldCellVolumesPtr 
)

Definition at line 93 of file mapPolyMesh.C.

References Foam::abort(), Foam::expressions::patchExpr::debug, Foam::FatalError, FatalErrorInFunction, and Foam::min().

Here is the call graph for this function:

◆ mapPolyMesh() [3/3]

mapPolyMesh ( const polyMesh mesh,
const label  nOldPoints,
const label  nOldFaces,
const label  nOldCells,
labelList pointMap,
List< objectMap > &  pointsFromPoints,
labelList faceMap,
List< objectMap > &  facesFromPoints,
List< objectMap > &  facesFromEdges,
List< objectMap > &  facesFromFaces,
labelList cellMap,
List< objectMap > &  cellsFromPoints,
List< objectMap > &  cellsFromEdges,
List< objectMap > &  cellsFromFaces,
List< objectMap > &  cellsFromCells,
labelList reversePointMap,
labelList reverseFaceMap,
labelList reverseCellMap,
labelHashSet flipFaceFlux,
labelListList patchPointMap,
labelListList pointZoneMap,
labelListList faceZonePointMap,
labelListList faceZoneFaceMap,
labelListList cellZoneMap,
pointField preMotionPoints,
labelList oldPatchStarts,
labelList oldPatchNMeshPoints,
autoPtr< scalarField > &  oldCellVolumesPtr,
const bool  reuse 
)

Definition at line 181 of file mapPolyMesh.C.

References Foam::abort(), autoPtr::clone(), Foam::expressions::patchExpr::debug, Foam::FatalError, FatalErrorInFunction, and Foam::min().

Here is the call graph for this function:

Member Function Documentation

◆ mesh()

const polyMesh& mesh ( ) const
inline

◆ nOldPoints()

label nOldPoints ( ) const
inline

Definition at line 365 of file mapPolyMesh.H.

Referenced by hexRef8Data::updateMesh(), and hexRef8::updateMesh().

Here is the caller graph for this function:

◆ nOldInternalFaces()

label nOldInternalFaces ( ) const
inline

Definition at line 371 of file mapPolyMesh.H.

◆ nOldFaces()

label nOldFaces ( ) const
inline

Definition at line 377 of file mapPolyMesh.H.

Referenced by snappyLayerDriver::addLayers(), and fvMesh::mapFields().

Here is the caller graph for this function:

◆ nOldCells()

label nOldCells ( ) const
inline

Definition at line 383 of file mapPolyMesh.H.

Referenced by fvMesh::mapFields(), hexRef8Data::updateMesh(), fvMesh::updateMesh(), and hexRef8::updateMesh().

Here is the caller graph for this function:

◆ pointMap()

const labelList& pointMap ( ) const
inline

◆ pointsFromPointsMap()

const List<objectMap>& pointsFromPointsMap ( ) const
inline

Definition at line 398 of file mapPolyMesh.H.

Referenced by pointMapper::pointMapper().

Here is the caller graph for this function:

◆ faceMap()

const labelList& faceMap ( ) const
inline

◆ facesFromPointsMap()

const List<objectMap>& facesFromPointsMap ( ) const
inline

Definition at line 412 of file mapPolyMesh.H.

Referenced by faceMapper::faceMapper().

Here is the caller graph for this function:

◆ facesFromEdgesMap()

const List<objectMap>& facesFromEdgesMap ( ) const
inline

Definition at line 418 of file mapPolyMesh.H.

Referenced by faceMapper::faceMapper().

Here is the caller graph for this function:

◆ facesFromFacesMap()

const List<objectMap>& facesFromFacesMap ( ) const
inline

Definition at line 424 of file mapPolyMesh.H.

Referenced by faceMapper::faceMapper().

Here is the caller graph for this function:

◆ cellMap()

const labelList& cellMap ( ) const
inline

◆ cellsFromPointsMap()

const List<objectMap>& cellsFromPointsMap ( ) const
inline

Definition at line 437 of file mapPolyMesh.H.

Referenced by cellMapper::cellMapper().

Here is the caller graph for this function:

◆ cellsFromEdgesMap()

const List<objectMap>& cellsFromEdgesMap ( ) const
inline

Definition at line 443 of file mapPolyMesh.H.

Referenced by cellMapper::cellMapper().

Here is the caller graph for this function:

◆ cellsFromFacesMap()

const List<objectMap>& cellsFromFacesMap ( ) const
inline

Definition at line 449 of file mapPolyMesh.H.

Referenced by cellMapper::cellMapper().

Here is the caller graph for this function:

◆ cellsFromCellsMap()

const List<objectMap>& cellsFromCellsMap ( ) const
inline

Definition at line 455 of file mapPolyMesh.H.

Referenced by cellMapper::cellMapper().

Here is the caller graph for this function:

◆ reversePointMap()

const labelList& reversePointMap ( ) const
inline

◆ mergedPoint()

label mergedPoint ( const label  oldPointi) const
inline

Definition at line 472 of file mapPolyMesh.H.

References Foam::abort(), Foam::endl(), Foam::FatalError, and FatalErrorInFunction.

Here is the call graph for this function:

◆ reverseFaceMap()

const labelList& reverseFaceMap ( ) const
inline

◆ mergedFace()

label mergedFace ( const label  oldFacei) const
inline

Definition at line 503 of file mapPolyMesh.H.

References Foam::abort(), Foam::endl(), Foam::FatalError, and FatalErrorInFunction.

Here is the call graph for this function:

◆ reverseCellMap()

const labelList& reverseCellMap ( ) const
inline

◆ mergedCell()

label mergedCell ( const label  oldCelli) const
inline

Definition at line 534 of file mapPolyMesh.H.

References Foam::abort(), Foam::endl(), Foam::FatalError, and FatalErrorInFunction.

Here is the call graph for this function:

◆ flipFaceFlux()

const labelHashSet& flipFaceFlux ( ) const
inline

Definition at line 558 of file mapPolyMesh.H.

◆ patchPointMap()

const labelListList& patchPointMap ( ) const
inline

Definition at line 566 of file mapPolyMesh.H.

◆ pointZoneMap()

const labelListList& pointZoneMap ( ) const
inline

Definition at line 577 of file mapPolyMesh.H.

◆ faceZonePointMap()

const labelListList& faceZonePointMap ( ) const
inline

Definition at line 585 of file mapPolyMesh.H.

◆ faceZoneFaceMap()

const labelListList& faceZoneFaceMap ( ) const
inline

Definition at line 593 of file mapPolyMesh.H.

◆ cellZoneMap()

const labelListList& cellZoneMap ( ) const
inline

Definition at line 601 of file mapPolyMesh.H.

◆ preMotionPoints()

const pointField& preMotionPoints ( ) const
inline

◆ hasMotionPoints()

bool hasMotionPoints ( ) const
inline

◆ oldPatchSizes()

const labelList& oldPatchSizes ( ) const
inline

Definition at line 622 of file mapPolyMesh.H.

◆ oldPatchStarts()

const labelList& oldPatchStarts ( ) const
inline

Definition at line 628 of file mapPolyMesh.H.

◆ oldPatchNMeshPoints()

const labelList& oldPatchNMeshPoints ( ) const
inline

Definition at line 634 of file mapPolyMesh.H.

◆ hasOldCellVolumes()

bool hasOldCellVolumes ( ) const
inline

Definition at line 642 of file mapPolyMesh.H.

References bool.

◆ oldCellVolumes()

const scalarField& oldCellVolumes ( ) const
inline

Definition at line 647 of file mapPolyMesh.H.

Referenced by fvMesh::updateMesh().

Here is the caller graph for this function:

The documentation for this class was generated from the following files: