OpenFOAM logo
The Open Source CFD Toolbox
  Programmer’s C++ Doxygen OpenCFD Solutions Contact OpenFOAM

fvMeshDistribute.H File Reference


Detailed Description

View fvMeshDistribute.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
Sends/receives parts of mesh+fvfields to neighbouring processors.
Used in load balancing.
Input is per local cell the processor it should move to. Moves meshes
and volFields/surfaceFields and returns map which can be used to
distribute other.

Notes:
- does not handle cyclics. Will probably handle separated proc patches.
- if all cells move off processor also all its processor patches will
  get deleted so comms might be screwed up (since e.g. globalMeshData
  expects procPatches on all)
- initial mesh has to have procPatches last and all normal patches common
  to all processors and in the same order. This is checked.
- faces are matched topologically but points on the faces are not. So
  expect problems -on separated patches (cyclics?) -on zero sized processor
  edges.

Source files

Definition in file fvMeshDistribute.H.

Go to the source code of this file.


Namespaces

namespace  Foam

Classes

class  fvMeshDistribute
class  fvMeshDistribute::checkEqualType
 Check words are the same. Used in patch type checking of similarly.
class  fvMeshDistribute::labelPairHash
Copyright © 2000-2007 OpenCFD Ltd