OpenFOAM logo
Open Source CFD Toolkit

mapAddedPolyMesh.H File Reference


Detailed Description

View mapAddedPolyMesh.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., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA

\par Description
\verbatim
We choose to store mapping from the new mesh to the old and added meshes and if nessecary construct the inverse mapping. (not for the patches since patches might have been deleted). ?Might be a better idea to reverse this: store from old to current mesh and calculate if nessecary combined meshes?

These maps are stored as a single labelList where a negative index is an index into the old mesh and a positive one into the added mesh. (similar to face turning index in decomposePar)

E.g.

cellMap[i] < 0:

oldCellI = -cellMap[I]-1;

cellMap[i] > 0:

addedCellI = cellMap[I]-1;

cellMap[i] == 0:

Illegal

Note: Might need some more access functions or maybe some zone maps?

Source files

Definition in file mapAddedPolyMesh.H.

Go to the source code of this file.

Namespaces

namespace  Foam

Classes

class  mapAddedPolyMesh

For further information go to www.openfoam.org