renumberMethod Class Referenceabstract

Abstract base class for renumbering. More...

Inheritance diagram for renumberMethod:

Public Member Functions

 TypeNameNoDebug ("renumberMethod")
 Runtime type information. More...
 
 declareRunTimeSelectionTable (autoPtr, renumberMethod, dictionary,(const dictionary &renumberDict),(renumberDict))
 
 renumberMethod ()
 Default construct. More...
 
 renumberMethod (const dictionary &)
 Construct with renumber dictionary (which is currently unused) More...
 
virtual ~renumberMethod ()=default
 Destructor. More...
 
virtual bool no_topology () const
 Renumbering method without mesh or cell-cell topology (very special case) More...
 
virtual bool needs_mesh () const
 Renumbering method requires a polyMesh for its topology. More...
 
virtual labelList renumber (const label nCells) const
 Return the cell visit order (from ordered back to original cell id) based solely on the number of cells. More...
 
virtual labelList renumber (const pointField &) const
 Return the cell visit order (from ordered back to original cell id) based solely on the cell centres (or number of cell centres). More...
 
virtual labelList renumber (const polyMesh &mesh) const
 Return the cell visit order (from ordered back to original cell id) using the mesh to determine the connectivity. More...
 
virtual labelList renumber (const CompactListList< label > &cellCells) const =0
 Return the cell visit order (from ordered back to original cell id),. More...
 
virtual labelList renumber (const labelListList &cellCells) const =0
 Return the cell visit order (from ordered back to original cell id),. More...
 
virtual labelList renumber (const polyMesh &mesh, const pointField &) const
 Deprecated - the pointField is unused. More...
 
virtual labelList renumber (const CompactListList< label > &cellCells, const pointField &) const
 Deprecated - the pointField is unused. More...
 
virtual labelList renumber (const labelListList &cellCells, const pointField &) const
 Deprecated - the pointField is unused. More...
 
virtual labelList renumber (const polyMesh &mesh, const labelUList &fineToCoarse, const pointField &coarsePoints) const
 Deprecated - renumbering with agglomeration map. Calculate globalCellCells directly. More...
 

Static Public Member Functions

static autoPtr< renumberMethodNew (const dictionary &dict)
 Construct/select a renumbering method. More...
 
static wordList supportedMethods ()
 Return a list of the known methods. More...
 

Detailed Description

Abstract base class for renumbering.

Source files

Definition at line 48 of file renumberMethod.H.

Constructor & Destructor Documentation

◆ renumberMethod() [1/2]

renumberMethod ( )
inline

Default construct.

Definition at line 77 of file renumberMethod.H.

◆ renumberMethod() [2/2]

renumberMethod ( const dictionary )
inlineexplicit

Construct with renumber dictionary (which is currently unused)

Definition at line 83 of file renumberMethod.H.

◆ ~renumberMethod()

virtual ~renumberMethod ( )
virtualdefault

Destructor.

Member Function Documentation

◆ TypeNameNoDebug()

TypeNameNoDebug ( "renumberMethod"  )

Runtime type information.

◆ declareRunTimeSelectionTable()

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

◆ New()

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

Construct/select a renumbering method.

Definition at line 48 of file renumberMethod.C.

References dict, Foam::exit(), Foam::FatalIOError, FatalIOErrorInLookup, dictionary::get(), dlLibraryTable::libs(), and dlLibraryTable::open().

Here is the call graph for this function:

◆ supportedMethods()

Foam::wordList supportedMethods ( )
static

Return a list of the known methods.

Definition at line 37 of file renumberMethod.C.

◆ no_topology()

virtual bool no_topology ( ) const
inlinevirtual

Renumbering method without mesh or cell-cell topology (very special case)

Reimplemented in noRenumber, and randomRenumber.

Definition at line 112 of file renumberMethod.H.

◆ needs_mesh()

virtual bool needs_mesh ( ) const
inlinevirtual

Renumbering method requires a polyMesh for its topology.

Reimplemented in structuredRenumber, zoltanRenumber, and manualRenumber.

Definition at line 117 of file renumberMethod.H.

◆ renumber() [1/9]

Foam::labelList renumber ( const label  nCells) const
virtual

Return the cell visit order (from ordered back to original cell id) based solely on the number of cells.

Only applicable for no_topology() methods.

Reimplemented in noRenumber, and randomRenumber.

Definition at line 78 of file renumberMethod.C.

References NotImplemented.

Referenced by renumberMethod::renumber().

Here is the caller graph for this function:

◆ renumber() [2/9]

Foam::labelList renumber ( const pointField cc) const
virtual

Return the cell visit order (from ordered back to original cell id) based solely on the cell centres (or number of cell centres).

Only applicable for no_topology() methods.

Reimplemented in noRenumber, and randomRenumber.

Definition at line 85 of file renumberMethod.C.

References NotImplemented.

◆ renumber() [3/9]

Foam::labelList renumber ( const polyMesh mesh) const
virtual

Return the cell visit order (from ordered back to original cell id) using the mesh to determine the connectivity.

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

Definition at line 93 of file renumberMethod.C.

References globalMeshData::calcCellCells(), mesh, and Foam::renumber().

Here is the call graph for this function:

◆ renumber() [4/9]

virtual labelList renumber ( const CompactListList< label > &  cellCells) const
pure virtual

Return the cell visit order (from ordered back to original cell id),.

Parameters
cellCellsMesh connectivity

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

◆ renumber() [5/9]

virtual labelList renumber ( const labelListList cellCells) const
pure virtual

Return the cell visit order (from ordered back to original cell id),.

Parameters
cellCellsMesh connectivity

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

◆ renumber() [6/9]

virtual labelList renumber ( const polyMesh mesh,
const pointField  
) const
inlinevirtual

Deprecated - the pointField is unused.

Deprecated:
(2024-03) the pointField is unused

Definition at line 178 of file renumberMethod.H.

References mesh, and renumberMethod::renumber().

Here is the call graph for this function:

◆ renumber() [7/9]

virtual labelList renumber ( const CompactListList< label > &  cellCells,
const pointField  
) const
inlinevirtual

Deprecated - the pointField is unused.

Deprecated:
(2024-03) the pointField is unused

Definition at line 193 of file renumberMethod.H.

References renumberMethod::renumber().

Here is the call graph for this function:

◆ renumber() [8/9]

virtual labelList renumber ( const labelListList cellCells,
const pointField  
) const
inlinevirtual

Deprecated - the pointField is unused.

Deprecated:
(2024-03) the pointField is unused

Definition at line 208 of file renumberMethod.H.

References renumberMethod::renumber().

Here is the call graph for this function:

◆ renumber() [9/9]

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

Deprecated - renumbering with agglomeration map. Calculate globalCellCells directly.

Deprecated:
(2024-03) calculate globalCellCells directly

Definition at line 106 of file renumberMethod.C.

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

Here is the call graph for this function:

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