randomRenumber Class Reference

Random renumber. Just to see effect of renumbering. More...

Inheritance diagram for randomRenumber:
Collaboration diagram for randomRenumber:

Public Member Functions

 TypeNameNoDebug ("random")
 Runtime type information. More...
 
 randomRenumber ()
 Default construct. More...
 
 randomRenumber (const dictionary &dict)
 Construct given the renumber dictionary (unused) More...
 
virtual ~randomRenumber ()=default
 Destructor. More...
 
virtual bool no_topology () const
 Renumbering method without mesh or cell-cell 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 pointField size. More...
 
virtual labelList renumber (const polyMesh &mesh) const
 Return the cell visit order (from ordered back to original cell id) using the mesh only for the number of cells. More...
 
virtual labelList renumber (const CompactListList< label > &cellCells) const
 Return the cell visit order (from ordered back to original cell id) using the topology only for the number of cells. More...
 
virtual labelList renumber (const labelListList &cellCells) const
 Return the cell visit order (from ordered back to original cell id) using the topology only for the number of cells. More...
 
- Public Member Functions inherited from renumberMethod
 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 needs_mesh () const
 Renumbering method requires a polyMesh for its topology. 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...
 

Additional Inherited Members

- Static Public Member Functions inherited from renumberMethod
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

Random renumber. Just to see effect of renumbering.

Source files

Definition at line 45 of file randomRenumber.H.

Constructor & Destructor Documentation

◆ randomRenumber() [1/2]

Default construct.

Definition at line 68 of file randomRenumber.C.

◆ randomRenumber() [2/2]

randomRenumber ( const dictionary dict)
explicit

Construct given the renumber dictionary (unused)

Definition at line 74 of file randomRenumber.C.

◆ ~randomRenumber()

virtual ~randomRenumber ( )
virtualdefault

Destructor.

Member Function Documentation

◆ TypeNameNoDebug()

TypeNameNoDebug ( "random"  )

Runtime type information.

◆ no_topology()

virtual bool no_topology ( ) const
inlinevirtual

Renumbering method without mesh or cell-cell topology!

Reimplemented from renumberMethod.

Definition at line 81 of file randomRenumber.H.

◆ renumber() [1/5]

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.

Reimplemented from renumberMethod.

Definition at line 83 of file randomRenumber.C.

References Foam::randomMap().

Here is the call graph for this function:

◆ renumber() [2/5]

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

Return the cell visit order (from ordered back to original cell id). based solely on pointField size.

Reimplemented from renumberMethod.

Definition at line 92 of file randomRenumber.C.

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

Here is the call graph for this function:

◆ renumber() [3/5]

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

Return the cell visit order (from ordered back to original cell id) using the mesh only for the number of cells.

Parameters
meshMesh provides the number of cells

Reimplemented from renumberMethod.

Definition at line 101 of file randomRenumber.C.

References mesh, primitiveMesh::nCells(), and Foam::randomMap().

Here is the call graph for this function:

◆ renumber() [4/5]

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

Return the cell visit order (from ordered back to original cell id) using the topology only for the number of cells.

Parameters
cellCellsConnectivity provides the number of cells

Implements renumberMethod.

Definition at line 110 of file randomRenumber.C.

References Foam::randomMap(), and CompactListList< T >::size().

Here is the call graph for this function:

◆ renumber() [5/5]

Foam::labelList renumber ( const labelListList cellCells) const
virtual

Return the cell visit order (from ordered back to original cell id) using the topology only for the number of cells.

Parameters
cellCellsConnectivity provides the number of cells

Implements renumberMethod.

Definition at line 119 of file randomRenumber.C.

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

Here is the call graph for this function:

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