OpenFOAM logo
The Open Source CFD Toolbox
  Source Guide OpenCFD Solutions Contact OpenFOAM

decompositionMethod Class Reference

Abstract base class for decomposition. More...

Inheritance diagram for decompositionMethod:
Collaboration diagram for decompositionMethod:

List of all members.


Public Member Functions

 TypeName ("decompositionMethod")
 Runtime type information.
 declareRunTimeSelectionTable (autoPtr, decompositionMethod, dictionary,(const dictionary &decompositionDict),(decompositionDict))
 declareRunTimeSelectionTable (autoPtr, decompositionMethod, dictionaryMesh,(const dictionary &decompositionDict, const polyMesh &mesh),(decompositionDict, mesh))
 decompositionMethod (const dictionary &decompositionDict)
 Construct given the decomposition dictionary.
virtual ~decompositionMethod ()
virtual bool parallelAware () const =0
 Is method parallel aware (i.e. does it synchronize domains across.
virtual labelList decompose (const pointField &)=0
 Return for every coordinate the wanted processor number. Use the.
virtual labelList decompose (const labelList &cellToRegion, const pointField &regionPoints)
 Return for every coordinate the wanted processor number. Gets.
virtual labelList decompose (const labelListList &globalCellCells, const pointField &cc)=0
 Return for every coordinate the wanted processor number. Explicitly.

Static Public Member Functions

static autoPtr
< decompositionMethod > 
New (const dictionary &decompositionDict)
 Return a reference to the selected decomposition method.
static autoPtr
< decompositionMethod > 
New (const dictionary &decompositionDict, const polyMesh &mesh)
 Return a reference to the selected decomposition method.

Static Protected Member Functions

static void calcCellCells (const polyMesh &mesh, const labelList &agglom, const label nCoarse, labelListList &cellCells)
 Helper: determine (non-parallel) cellCells from mesh agglomeration.

Protected Attributes

const dictionary & decompositionDict_
label nProcessors_

Detailed Description

Abstract base class for decomposition.

Source files

Definition at line 43 of file decompositionMethod.H.


Constructor & Destructor Documentation

decompositionMethod ( const dictionary &  decompositionDict  )  [inline]

Construct given the decomposition dictionary.

Definition at line 123 of file decompositionMethod.H.

virtual ~decompositionMethod (  )  [inline, virtual]

Definition at line 135 of file decompositionMethod.H.


Member Function Documentation

void calcCellCells ( const polyMesh &  mesh,
const labelList &  agglom,
const label  nCoarse,
labelListList &  cellCells 
) [static, protected]

Helper: determine (non-parallel) cellCells from mesh agglomeration.

Definition at line 121 of file decompositionMethod.C.

TypeName ( "decompositionMethod"   ) 

Runtime type information.

declareRunTimeSelectionTable ( autoPtr  ,
decompositionMethod  ,
dictionary  ,
(const dictionary &decompositionDict)  ,
(decompositionDict)   
)

declareRunTimeSelectionTable ( autoPtr  ,
decompositionMethod  ,
dictionaryMesh  ,
(const dictionary &decompositionDict, const polyMesh &mesh)  ,
(decompositionDict, mesh)   
)

Foam::autoPtr< Foam::decompositionMethod > New ( const dictionary &  decompositionDict  )  [static]

Return a reference to the selected decomposition method.

Definition at line 38 of file decompositionMethod.C.

Referenced by autoHexMeshDriver::autoHexMeshDriver().

Here is the caller graph for this function:

Foam::autoPtr< Foam::decompositionMethod > New ( const dictionary &  decompositionDict,
const polyMesh &  mesh 
) [static]

Return a reference to the selected decomposition method.

Definition at line 68 of file decompositionMethod.C.

virtual bool parallelAware (  )  const [pure virtual]

Is method parallel aware (i.e. does it synchronize domains across.

proc boundaries)

Implemented in hierarchGeomDecomp, manualDecomp, metisDecomp, scotchDecomp, simpleGeomDecomp, and parMetisDecomp.

Referenced by autoHexMeshDriver::autoHexMeshDriver().

Here is the caller graph for this function:

virtual labelList decompose ( const pointField &   )  [pure virtual]

Return for every coordinate the wanted processor number. Use the.

mesh connectivity (if needed)

Implemented in hierarchGeomDecomp, manualDecomp, metisDecomp, scotchDecomp, simpleGeomDecomp, and parMetisDecomp.

Foam::labelList decompose ( const labelList &  cellToRegion,
const pointField &  regionPoints 
) [virtual]

Return for every coordinate the wanted processor number. Gets.

passed agglomeration map (from fine to coarse cells) and coarse cell location. Can be overridden by decomposers that provide this functionality natively. Coarse cells are local to the processor (if in parallel). If you want to have coarse cells spanning processors use the next function below instead.

Reimplemented in metisDecomp, scotchDecomp, and parMetisDecomp.

Definition at line 100 of file decompositionMethod.C.

virtual labelList decompose ( const labelListList &  globalCellCells,
const pointField &  cc 
) [pure virtual]

Return for every coordinate the wanted processor number. Explicitly.

provided connectivity - does not use mesh_. The connectivity is equal to mesh.cellCells() except for

  • in parallel the cell numbers are global cell numbers (starting from 0 at processor0 and then incrementing all through the processors)
  • the connections are across coupled patches

Implemented in hierarchGeomDecomp, manualDecomp, metisDecomp, scotchDecomp, simpleGeomDecomp, and parMetisDecomp.


Member Data Documentation

const dictionary& decompositionDict_ [protected]

Definition at line 50 of file decompositionMethod.H.

label nProcessors_ [protected]

Definition at line 51 of file decompositionMethod.H.

Referenced by geomDecomp::geomDecomp().


The documentation for this class was generated from the following files:
Copyright © 2000-2009 OpenCFD Ltd