Sends/receives parts of mesh+fvfields to neighbouring processors. Used in load balancing. More...
Public Member Functions | |
ClassName ("fvMeshDistribute") | |
fvMeshDistribute (fvMesh &mesh) | |
autoPtr< mapDistributePolyMesh > | distribute (const labelList &dist) |
Static Public Member Functions | |
static labelList | countCells (const labelList &) |
static void | printCoupleInfo (const primitiveMesh &, const labelList &, const labelList &, const labelList &, const labelList &) |
template<class GeoField > | |
static void | printIntFieldInfo (const fvMesh &) |
template<class GeoField > | |
static void | printFieldInfo (const fvMesh &) |
static void | printMeshInfo (const fvMesh &) |
static tmp< surfaceScalarField > | generateTestField (const fvMesh &) |
static void | testField (const surfaceScalarField &) |
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:
Definition at line 66 of file fvMeshDistribute.H.
|
explicit |
Definition at line 1835 of file fvMeshDistribute.C.
ClassName | ( | "fvMeshDistribute" | ) |
|
static |
Definition at line 1845 of file fvMeshDistribute.C.
References Foam::abort(), Foam::endl(), Foam::FatalError, FatalErrorInFunction, forAll, UPstream::nProcs(), and Foam::Zero.
Referenced by meshRefinement::balance().
Foam::autoPtr< Foam::mapDistributePolyMesh > distribute | ( | const labelList & | dist | ) |
Definition at line 1869 of file fvMeshDistribute.C.
References Foam::abort(), fvMeshAdder::add(), UPstream::allToAll(), fvMeshSubset::cellMap(), polyBoundaryMesh::checkParallelSync(), PstreamBuffers::clear(), Foam::expressions::patchExpr::debug, Foam::endl(), fvMeshSubset::faceFlipMap(), Foam::faceMap(), fvMeshSubset::faceMap(), Foam::FatalError, FatalErrorInFunction, PstreamBuffers::finishedSends(), Foam::flatOutput(), forAll, Foam::identity(), Foam::inplaceReorder(), meshes(), UPstream::myProcNo(), autoPtr::New(), Foam::nl, UPstream::nonBlocking, UPstream::nProcs(), UPstream::parRun(), patches, fvMeshSubset::patchMap(), fvMeshSubset::pointMap(), Foam::Pout, autoPtr::ptr(), Foam::renumber(), PtrList::set(), UPtrList::set(), List::setSize(), polyBoundaryMesh::start(), fvMeshSubset::subMesh(), List::transfer(), and Foam::Zero.
Referenced by meshRefinement::balance().
|
static |
Definition at line 278 of file fvMeshDistribute.C.
References Foam::endl(), primitiveMesh::faceCentres(), forAll, mesh, primitiveMesh::nInternalFaces(), Foam::nl, and Foam::Pout.
|
static |
Definition at line 74 of file fvMeshDistributeTemplates.C.
References Foam::endl(), fld, forAllConstIters(), mesh, and Foam::Pout.
|
static |
Definition at line 102 of file fvMeshDistributeTemplates.C.
References Foam::endl(), fld, forAllConstIters(), mesh, OSstream::name(), Foam::nl, Foam::Pout, and fileName::type().
|
static |
Definition at line 218 of file fvMeshDistribute.C.
References fvMesh::boundary(), polyMesh::cellZones(), Foam::endl(), polyMesh::faceZones(), forAll, mesh, zoneIdentifier::name(), patchIdentifier::name(), primitiveMesh::nCells(), primitiveMesh::nFaces(), primitiveMesh::nInternalFaces(), Foam::nl, primitiveMesh::nPoints(), patches, polyMesh::points(), polyMesh::pointZones(), Foam::Pout, and polyPatch::start().
|
static |
Definition at line 398 of file fvMeshDistribute.C.
References Foam::dimless, fld, forAll, fvMesh::magSf(), mesh, n, IOobject::NO_READ, IOobject::NO_WRITE, Foam::normalised(), VectorSpace< Vector< scalar >, scalar, 3 >::one, tmp::ref(), fvMesh::Sf(), fvMesh::time(), Time::timeName(), and Foam::Zero.
|
static |
Definition at line 448 of file fvMeshDistribute.C.
References Foam::cos(), Foam::constant::electromagnetic::e, Foam::endl(), primitiveMesh::faceCentres(), fld, forAll, Foam::mag(), fvMesh::magSf(), mesh, n, fvPatch::name(), Foam::normalised(), VectorSpace< Vector< scalar >, scalar, 3 >::one, fvsPatchField::patch(), fvMesh::Sf(), fvPatch::start(), and WarningInFunction.
Copyright © 2011-2018 OpenFOAM | OPENFOAM® is a registered trademark of OpenCFD Ltd.