structuredRenumber Class Reference

Renumbering according to mesh layers. depthFirst = true: first column gets ids 0..nLayer-1, second nLayers..2*nLayers-1 etc. depthFirst = false: first layer gets ids 0,1,2 etc. More...

Inheritance diagram for structuredRenumber:
Collaboration diagram for structuredRenumber:

Classes

class  layerLess
 Function class for sorting according to column and layer. More...
 

Public Member Functions

 TypeName ("structured")
 Runtime type information. More...
 
 structuredRenumber (const dictionary &dict)
 Construct given the renumber dictionary. More...
 
virtual ~structuredRenumber ()=default
 Destructor. More...
 
virtual bool needs_mesh () const
 Renumbering method requires a polyMesh! More...
 
virtual labelList renumber (const polyMesh &mesh) const
 Return the cell visit order (from ordered back to original cell id) More...
 
virtual labelList renumber (const CompactListList< label > &cellCells) const
 Return the cell visit order (from ordered back to original cell id). Not implemented! More...
 
virtual labelList renumber (const labelListList &cellCells) const
 Return the cell visit order (from ordered back to original cell id). Not implemented! 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 no_topology () const
 Renumbering method without mesh or cell-cell topology (very special case) 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 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

Renumbering according to mesh layers. depthFirst = true: first column gets ids 0..nLayer-1, second nLayers..2*nLayers-1 etc. depthFirst = false: first layer gets ids 0,1,2 etc.

Source files

Definition at line 53 of file structuredRenumber.H.

Constructor & Destructor Documentation

◆ structuredRenumber()

structuredRenumber ( const dictionary dict)
explicit

Construct given the renumber dictionary.

Definition at line 46 of file structuredRenumber.C.

◆ ~structuredRenumber()

virtual ~structuredRenumber ( )
virtualdefault

Destructor.

Member Function Documentation

◆ TypeName()

TypeName ( "structured"  )

Runtime type information.

◆ needs_mesh()

virtual bool needs_mesh ( ) const
inlinevirtual

Renumbering method requires a polyMesh!

Reimplemented from renumberMethod.

Definition at line 145 of file structuredRenumber.H.

◆ renumber() [1/3]

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

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

using the mesh.

Reimplemented from renumberMethod.

Definition at line 132 of file structuredRenumber.C.

References fvMeshSubset::cellMap(), Foam::endl(), forAll, Foam::Info, HashSet< Key, Hash >::insert(), Foam::invert(), mesh, Foam::nl, patchId(), patchIDs(), pbm, pp(), returnReduce(), Foam::reverse(), UList< T >::size(), HashTable< T, Key, Hash >::size(), Foam::sortedOrder(), and fvMeshSubset::subMesh().

Here is the call graph for this function:

◆ renumber() [2/3]

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

Return the cell visit order (from ordered back to original cell id). Not implemented!

Implements renumberMethod.

Definition at line 168 of file structuredRenumber.H.

References NotImplemented.

◆ renumber() [3/3]

virtual labelList renumber ( const labelListList cellCells) const
inlinevirtual

Return the cell visit order (from ordered back to original cell id). Not implemented!

Implements renumberMethod.

Definition at line 181 of file structuredRenumber.H.

References NotImplemented.


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