FreeFOAM The Cross-Platform CFD Toolkit
manualDecomp Class Reference

Decomposition given a cell-to-processor association in a file. More...

#include <decompositionMethods/manualDecomp.H>


Detailed Description

Decomposition given a cell-to-processor association in a file.

Source files

Definition at line 47 of file manualDecomp.H.

+ Inheritance diagram for manualDecomp:
+ Collaboration diagram for manualDecomp:

List of all members.

Public Member Functions

 TypeName ("manual")
 Runtime type information.
 manualDecomp (const dictionary &decompositionDict)
 Construct given the decomposition dictionary.
 manualDecomp (const dictionary &decompositionDict, const polyMesh &mesh)
 Construct given the decomposition dictionary and mesh.
virtual ~manualDecomp ()
virtual bool parallelAware () const
 manual decompose does not care about proc boundaries - is all
virtual labelList decompose (const pointField &points, const scalarField &pointWeights)
 Return for every coordinate the wanted processor number. Use the.
virtual labelList decompose (const labelListList &globalCellCells, const pointField &cc, const scalarField &cWeights)
 Return for every coordinate the wanted processor number. Explicitly.
- Public Member Functions inherited from decompositionMethod
 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 labelList decompose (const pointField &)
 Like decompose but with uniform weights on the points.
virtual labelList decompose (const labelList &cellToRegion, const pointField &regionPoints, const scalarField &regionWeights)
 Return for every coordinate the wanted processor number. Gets.
virtual labelList decompose (const labelList &cellToRegion, const pointField &regionPoints)
 Like decompose but with uniform weights on the regions.
virtual labelList decompose (const labelListList &globalCellCells, const pointField &cc)
 Like decompose but with uniform weights on the cells.

Additional Inherited Members

- Static Public Member Functions inherited from decompositionMethod
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 inherited from decompositionMethod
static void calcCellCells (const polyMesh &mesh, const labelList &agglom, const label nCoarse, labelListList &cellCells)
 Helper: determine (non-parallel) cellCells from mesh agglomeration.
- Protected Attributes inherited from decompositionMethod
const dictionarydecompositionDict_
label nProcessors_

Constructor & Destructor Documentation

manualDecomp ( const dictionary decompositionDict)

Construct given the decomposition dictionary.

Definition at line 58 of file manualDecomp.C.

References notImplemented.

manualDecomp ( const dictionary decompositionDict,
const polyMesh mesh 
)

Construct given the decomposition dictionary and mesh.

Definition at line 67 of file manualDecomp.C.

virtual ~manualDecomp ( )
inlinevirtual

Definition at line 86 of file manualDecomp.H.


Member Function Documentation

TypeName ( "manual"  )

Runtime type information.

virtual bool parallelAware ( ) const
inlinevirtual

manual decompose does not care about proc boundaries - is all

up to the user.

Implements decompositionMethod.

Definition at line 94 of file manualDecomp.H.

Foam::labelList decompose ( const pointField points,
const scalarField pointWeights 
)
virtual

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

mesh connectivity (if needed)

Implements decompositionMethod.

Definition at line 85 of file manualDecomp.C.

References IOobject::AUTO_WRITE, Foam::endl(), Foam::exit(), polyMesh::facesInstance(), Foam::FatalError, FatalErrorIn, Foam::max(), mesh, Foam::min(), IOobject::MUST_READ, and List< T >::size().

Referenced by manualDecomp::decompose().

virtual labelList decompose ( const labelListList globalCellCells,
const pointField cc,
const scalarField cWeights 
)
inlinevirtual

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

Implements decompositionMethod.

Definition at line 115 of file manualDecomp.H.

References manualDecomp::decompose().


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