renumberMethod Class Referenceabstract

Abstract base class for renumbering. More...

Inheritance diagram for renumberMethod:
Collaboration diagram for renumberMethod:

Public Member Functions

 TypeName ("renumberMethod")
 Runtime type information. More...
 
 declareRunTimeSelectionTable (autoPtr, renumberMethod, dictionary,(const dictionary &renumberDict),(renumberDict))
 
 renumberMethod (const dictionary &dict)
 Construct given the renumber dictionary. More...
 
virtual ~renumberMethod ()=default
 Destructor. More...
 
virtual labelList renumber (const pointField &) const
 Return the order in which cells need to be visited (ie. from ordered back to original cell label). More...
 
virtual labelList renumber (const polyMesh &, const pointField &) const
 Return the order in which cells need to be visited (ie. from ordered back to original cell label). More...
 
virtual labelList renumber (const labelList &cellCells, const labelList &offsets, const pointField &) const
 Return the order in which cells need to be visited (ie. from ordered back to original cell label). More...
 
virtual labelList renumber (const polyMesh &mesh, const labelList &fineToCoarse, const pointField &coarsePoints) const
 Return the order in which cells need to be visited (ie. from ordered back to original cell label). More...
 
virtual labelList renumber (const CompactListList< label > &cellCells, const pointField &cellCentres) const
 Return the order in which cells need to be visited (ie. from ordered back to original cell label). More...
 
virtual labelList renumber (const labelListList &cellCells, const pointField &cellCentres) const =0
 Return the order in which cells need to be visited (ie. from ordered back to original cell label). More...
 

Static Public Member Functions

static autoPtr< renumberMethodNew (const dictionary &renumberDict)
 Return a reference to the selected renumbering method. More...
 

Protected Member Functions

 renumberMethod (const renumberMethod &)=delete
 No copy construct. More...
 
void operator= (const renumberMethod &)=delete
 No copy assignment. More...
 

Protected Attributes

const dictionaryrenumberDict_
 

Detailed Description

Abstract base class for renumbering.

Source files

Definition at line 47 of file renumberMethod.H.

Constructor & Destructor Documentation

◆ renumberMethod() [1/2]

renumberMethod ( const renumberMethod )
protecteddelete

No copy construct.

◆ renumberMethod() [2/2]

renumberMethod ( const dictionary dict)
inlineexplicit

Construct given the renumber dictionary.

Definition at line 107 of file renumberMethod.H.

◆ ~renumberMethod()

virtual ~renumberMethod ( )
virtualdefault

Destructor.

Member Function Documentation

◆ operator=()

void operator= ( const renumberMethod )
protecteddelete

No copy assignment.

◆ TypeName()

TypeName ( "renumberMethod"  )

Runtime type information.

◆ declareRunTimeSelectionTable()

declareRunTimeSelectionTable ( autoPtr  ,
renumberMethod  ,
dictionary  ,
(const dictionary &renumberDict)  ,
(renumberDict)   
)

◆ New()

Foam::autoPtr< Foam::renumberMethod > New ( const dictionary renumberDict)
static

Return a reference to the selected renumbering method.

Definition at line 36 of file renumberMethod.C.

References dict, Foam::exit(), Foam::FatalIOError, and FatalIOErrorInLookup.

Here is the call graph for this function:

◆ renumber() [1/6]

virtual labelList renumber ( const pointField ) const
inlinevirtual

Return the order in which cells need to be visited (ie. from ordered back to original cell label).

This is only defined for geometric renumberMethods.

Reimplemented in structuredRenumber, springRenumber, SloanRenumber, CuthillMcKeeRenumber, zoltanRenumber, manualRenumber, and randomRenumber.

Definition at line 127 of file renumberMethod.H.

References NotImplemented.

◆ renumber() [2/6]

Foam::labelList renumber ( const polyMesh mesh,
const pointField points 
) const
virtual

Return the order in which cells need to be visited (ie. from ordered back to original cell label).

Use the mesh connectivity (if needed)

Reimplemented in structuredRenumber, springRenumber, SloanRenumber, CuthillMcKeeRenumber, zoltanRenumber, manualRenumber, and randomRenumber.

Definition at line 64 of file renumberMethod.C.

References Foam::identity(), mesh, points, and Foam::renumber().

Here is the call graph for this function:

◆ renumber() [3/6]

Foam::labelList renumber ( const labelList cellCells,
const labelList offsets,
const pointField cc 
) const
virtual

Return the order in which cells need to be visited (ie. from ordered back to original cell label).

Addressing in losort addressing (= neighbour + offsets into neighbour)

Reimplemented in CuthillMcKeeRenumber.

Definition at line 94 of file renumberMethod.C.

References NotImplemented.

◆ renumber() [4/6]

Foam::labelList renumber ( const polyMesh mesh,
const labelList fineToCoarse,
const pointField coarsePoints 
) const
virtual

Return the order in which cells need to be visited (ie. from ordered back to original cell label).

Gets passed agglomeration map (from fine to coarse cells) and coarse cell location. Can be overridden by renumberMethods 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 globalCellCells instead.

Definition at line 106 of file renumberMethod.C.

References mesh, Foam::renumber(), and UList< T >::size().

Here is the call graph for this function:

◆ renumber() [5/6]

Foam::labelList renumber ( const CompactListList< label > &  cellCells,
const pointField cellCentres 
) const
virtual

Return the order in which cells need to be visited (ie. from ordered back to original cell label).

Uses 'unpack' internally, so should be overloaded when possible

Reimplemented in structuredRenumber, springRenumber, CuthillMcKeeRenumber, SloanRenumber, zoltanRenumber, manualRenumber, and randomRenumber.

Definition at line 84 of file renumberMethod.C.

References points, Foam::renumber(), and CompactListList< T >::unpack().

Here is the call graph for this function:

◆ renumber() [6/6]

virtual labelList renumber ( const labelListList cellCells,
const pointField cellCentres 
) const
pure virtual

Return the order in which cells need to be visited (ie. from ordered back to original cell label).

The connectivity is equal to mesh.cellCells() except

  • the connections are across coupled patches

Implemented in structuredRenumber, springRenumber, CuthillMcKeeRenumber, SloanRenumber, zoltanRenumber, manualRenumber, and randomRenumber.

Member Data Documentation

◆ renumberDict_

const dictionary& renumberDict_
protected

Definition at line 53 of file renumberMethod.H.


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