OpenFOAM logo
Open Source CFD Toolkit

mapPolyMesh.H File Reference


Detailed Description

View mapPolyMesh.H
License
This file is part of OpenFOAM.

OpenFOAM is free software; you can redistribute it and/or modify it
under the terms of the GNU General Public License as published by the
Free Software Foundation; either version 2 of the License, or (at your
option) any later version.

OpenFOAM is distributed in the hope that it will be useful, but WITHOUT
ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
for more details.

You should have received a copy of the GNU General Public License
along with OpenFOAM; if not, write to the Free Software Foundation,
Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
Description
Class containing mesh-to-mesh mapping information after a change
in polyMesh topology.
General: 
    - pointMap/faceMap/cellMap:
    from current mesh back to previous mesh.
    (so to 'pull' the information onto the current mesh)

    - reversePointMap/faceMap/cellMap:
    from previous mesh to current. (so to 'push' information)

In the topology change points/faces/cells
- can be unchanged. (faces might be renumbered though)
- can be removed.
- can be added from existing same 'master' entity 
  (so point from point, face from face and cell from cell)
- can be inflated: face out of edge or point,
    cell out of face, edge or point.
- can be appended: added 'out of nothing'.

All this information is nessecary to correctly map fields.

points
------
unchanged:
    pointMap[pointI] contains old point label
    reversePointMap[oldPointI] contains new point label
removed:
    reversePointMap[oldPointI] contains -1
added-from-same:
    pointMap[pointI] contains the old master point label 
appended:
    pointMap[pointI] contains -1


faces
-----
unchanged:
    faceMap[faceI] contains old face label
    reverseFaceMap[oldFaceI] contains new face label
removed:
    reverseFaceMap[oldFaceI] contains -1
added-from-same:
    faceMap[faceI] contains the old master face label 
inflated-from-edge:
    faceMap[faceI] contains -1
    facesFromEdges contains an entry with
        - faceI
        - list of faces(*) on old mesh that connected to the old edge
inflated-from-point:
    faceMap[faceI] contains -1
    facesFromPoints contains an entry with
        - faceI
        - list of faces(*) on old mesh that connected to the old point
appended:
    faceMap[faceI] contains -1

*) 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
-----
unchanged:
    cellMap[cellI] contains old cell label
    reverseCellMap[oldCellI] contains new cell label
removed:
    reverseCellMap[oldCellI] contains -1
added-from-same:
    cellMap[cellI] contains the old master cell label 
inflated-from-face:
    cellMap[cellI] contains -1
    cellsFromFaces contains an entry with
        - cellI
        - list of cells on old mesh that connected to the old face
inflated-from-edge:
    cellMap[cellI] contains -1
    cellsFromEdges contains an entry with
        - cellI
        - list of cells on old mesh that connected to the old edge
inflated-from-point:
    cellMap[cellI] contains -1
    cellsFromPoints contains an entry with
        - cellI
        - list of cells on old mesh that connected to the old point
appended:
    cellMap[cellI] contains -1



Source files

Definition in file mapPolyMesh.H.

Go to the source code of this file.

Namespaces

namespace  Foam

Classes

class  mapPolyMesh

For further information go to www.openfoam.org