springRenumber Class Reference

Use spring analogy - attract neighbouring cells according to the distance of their cell indices. More...

Inheritance diagram for springRenumber:
Collaboration diagram for springRenumber:

Public Member Functions

 TypeName ("spring")
 Runtime type information. More...
 
 springRenumber (const dictionary &dict)
 Construct given the renumber dictionary. More...
 
virtual ~springRenumber ()=default
 Destructor. 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...
 
template<class ConnectionListListType >
Foam::labelList renumberImpl (const ConnectionListListType &cellCells) const
 
- 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

Use spring analogy - attract neighbouring cells according to the distance of their cell indices.

Maximum jump of cell indices. Is fraction of number of cells maxCo 0.1;

Limit the amount of movement; the fraction maxCo gets decreased with every iteration. freezeFraction 0.9;

Maximum number of iterations maxIter 1000;

Source files

Definition at line 56 of file springRenumber.H.

Constructor & Destructor Documentation

◆ springRenumber()

springRenumber ( const dictionary dict)
explicit

Construct given the renumber dictionary.

Definition at line 43 of file springRenumber.C.

◆ ~springRenumber()

virtual ~springRenumber ( )
virtualdefault

Destructor.

Member Function Documentation

◆ TypeName()

TypeName ( "spring"  )

Runtime type information.

◆ 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.

Parameters
meshMesh connectivity (see globalMeshData::calcCellCells)

Reimplemented from renumberMethod.

Definition at line 154 of file springRenumber.C.

References globalMeshData::calcCellCells(), and mesh.

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)

Parameters
cellCellsMesh connectivity

Implements renumberMethod.

Definition at line 167 of file springRenumber.C.

◆ renumber() [3/3]

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

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

Parameters
cellCellsMesh connectivity

Implements renumberMethod.

Definition at line 176 of file springRenumber.C.

◆ renumberImpl()

Foam::labelList renumberImpl ( const ConnectionListListType &  cellCells) const

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