Public Member Functions | Static Public Member Functions | List of all members
fvMeshDistribute Class Reference

Sends/receives parts of mesh+fvfields to neighbouring processors. Used in load balancing. More...

Public Member Functions

 ClassName ("fvMeshDistribute")
 
 fvMeshDistribute (fvMesh &mesh)
 
autoPtr< mapDistributePolyMeshdistribute (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< surfaceScalarFieldgenerateTestField (const fvMesh &)
 
static void testField (const surfaceScalarField &)
 

Detailed 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:

Source files

Definition at line 66 of file fvMeshDistribute.H.

Constructor & Destructor Documentation

◆ fvMeshDistribute()

fvMeshDistribute ( fvMesh mesh)
explicit

Definition at line 1835 of file fvMeshDistribute.C.

Member Function Documentation

◆ ClassName()

ClassName ( "fvMeshDistribute"  )

◆ countCells()

Foam::labelList countCells ( const labelList distribution)
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().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ distribute()

Foam::autoPtr< Foam::mapDistributePolyMesh > distribute ( const labelList dist)

◆ printCoupleInfo()

void printCoupleInfo ( const primitiveMesh mesh,
const labelList sourceFace,
const labelList sourceProc,
const labelList sourcePatch,
const labelList sourceNewNbrProc 
)
static

Definition at line 278 of file fvMeshDistribute.C.

References Foam::endl(), primitiveMesh::faceCentres(), forAll, mesh, primitiveMesh::nInternalFaces(), Foam::nl, and Foam::Pout.

Here is the call graph for this function:

◆ printIntFieldInfo()

void printIntFieldInfo ( const fvMesh mesh)
static

Definition at line 74 of file fvMeshDistributeTemplates.C.

References Foam::endl(), fld, forAllConstIters(), mesh, and Foam::Pout.

Here is the call graph for this function:

◆ printFieldInfo()

void printFieldInfo ( const fvMesh mesh)
static

Definition at line 102 of file fvMeshDistributeTemplates.C.

References Foam::endl(), fld, forAllConstIters(), mesh, OSstream::name(), Foam::nl, Foam::Pout, and fileName::type().

Here is the call graph for this function:

◆ printMeshInfo()

void printMeshInfo ( const fvMesh mesh)
static

◆ generateTestField()

Foam::tmp< Foam::surfaceScalarField > generateTestField ( const fvMesh mesh)
static

◆ testField()

void testField ( const surfaceScalarField fld)
static

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