SloanRenumber Class Reference

Sloan renumbering algorithm. More...

Inheritance diagram for SloanRenumber:
Collaboration diagram for SloanRenumber:

Public Member Functions

 TypeName ("Sloan")
 Runtime type information. More...
 
 SloanRenumber (const bool reverse=false)
 Default construct, optionally with reverse. More...
 
 SloanRenumber (const dictionary &dict)
 Construct given the renumber dictionary. More...
 
virtual ~SloanRenumber ()=default
 Destructor. More...
 
void reverse (bool on) noexcept
 Toggle reverse on/off. 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
 Return the cell visit order (from ordered back to original cell id) More...
 
virtual labelList renumber (const labelListList &cellCells) const
 Return the cell visit order (from ordered back to original cell id) 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 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 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

Sloan renumbering algorithm.

E.g. http://www.apav.it/sito_ratio/file_pdf/ratio_4/capitolo_1.pdf

Source files

Definition at line 47 of file SloanRenumber.H.

Constructor & Destructor Documentation

◆ SloanRenumber() [1/2]

SloanRenumber ( const bool  reverse = false)
explicit

Default construct, optionally with reverse.

Definition at line 87 of file SloanRenumber.C.

◆ SloanRenumber() [2/2]

SloanRenumber ( const dictionary dict)
explicit

Construct given the renumber dictionary.

Definition at line 94 of file SloanRenumber.C.

◆ ~SloanRenumber()

virtual ~SloanRenumber ( )
virtualdefault

Destructor.

Member Function Documentation

◆ TypeName()

TypeName ( "Sloan"  )

Runtime type information.

◆ reverse()

void reverse ( bool  on)
inlinenoexcept

Toggle reverse on/off.

Definition at line 91 of file SloanRenumber.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 to determine the connectivity.

Reimplemented from renumberMethod.

Definition at line 159 of file SloanRenumber.C.

References polyMesh::boundaryMesh(), polyMesh::faceNeighbour(), polyMesh::faceOwner(), Foam::constant::universal::G, mesh, primitiveMesh::nBoundaryFaces(), primitiveMesh::nCells(), primitiveMesh::nInternalFaces(), pp(), and syncTools::swapBoundaryFaceList().

Here is the call graph for this function:

◆ renumber() [2/3]

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

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

Implements renumberMethod.

Definition at line 219 of file SloanRenumber.C.

References forAll, Foam::constant::universal::G, and CompactListList< T >::size().

Here is the call graph for this function:

◆ renumber() [3/3]

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

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

Implements renumberMethod.

Definition at line 243 of file SloanRenumber.C.

References forAll, Foam::constant::universal::G, and UList< T >::size().

Here is the call graph for this function:

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