Use spring analogy - attract neighbouring cells according to the distance of their cell indices. More...
#include <springRenumber.H>


Public Member Functions | |
| TypeName ("spring") | |
| Runtime type information. | |
| springRenumber (const dictionary &dict) | |
| Construct given the renumber dictionary. | |
| virtual | ~springRenumber ()=default |
| Destructor. | |
| 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. | |
| virtual labelList | renumber (const CompactListList< label > &cellCells) const |
| Return the cell visit order (from ordered back to original cell id). | |
| virtual labelList | renumber (const labelListList &cellCells) const |
| Return the cell visit order (from ordered back to original cell id). | |
| template<class ConnectionListListType> | |
| Foam::labelList | renumberImpl (const ConnectionListListType &cellCells) const |
| Public Member Functions inherited from renumberMethod | |
| TypeNameNoDebug ("renumberMethod") | |
| Runtime type information. | |
| declareRunTimeSelectionTable (autoPtr, renumberMethod, dictionary,(const dictionary &renumberDict),(renumberDict)) | |
| renumberMethod () | |
| Default construct. | |
| renumberMethod (const dictionary &) | |
| Construct with renumber dictionary (which is currently unused). | |
| virtual | ~renumberMethod ()=default |
| Destructor. | |
| virtual bool | no_topology () const |
| Renumbering method without mesh or cell-cell topology (very special case). | |
| virtual bool | needs_mesh () const |
| Renumbering method requires a polyMesh for its topology. | |
| 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. | |
| 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). | |
| virtual labelList | renumber (const polyMesh &mesh, const pointField &) const |
| Deprecated - the pointField is unused. | |
| virtual labelList | renumber (const CompactListList< label > &cellCells, const pointField &) const |
| Deprecated - the pointField is unused. | |
| virtual labelList | renumber (const labelListList &cellCells, const pointField &) const |
| Deprecated - the pointField is unused. | |
| virtual labelList | renumber (const polyMesh &mesh, const labelUList &fineToCoarse, const pointField &coarsePoints) const |
| Deprecated - renumbering with agglomeration map. Calculate globalCellCells directly. | |
Additional Inherited Members | |
| Static Public Member Functions inherited from renumberMethod | |
| static autoPtr< renumberMethod > | New (const dictionary &dict) |
| Construct/select a renumbering method. | |
| static wordList | supportedMethods () |
| Return a list of the known methods. | |
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;
Definition at line 56 of file springRenumber.H.
|
explicit |
Construct given the renumber dictionary.
Definition at line 43 of file springRenumber.C.
References dict, Foam::GlobalIOList< Tuple2< scalar, vector > >::typeName, and renumberMethod::renumberMethod().

|
virtualdefault |
Destructor.
References mesh.
| TypeName | ( | "spring" | ) |
Runtime type information.
References dict.
|
virtual |
Return the cell visit order (from ordered back to original cell id) using the mesh to determine the connectivity.
| mesh | Mesh connectivity (see globalMeshData::calcCellCells) |
Reimplemented from renumberMethod.
Definition at line 153 of file springRenumber.C.
References globalMeshData::calcCellCells(), and mesh.

|
virtual |
Return the cell visit order (from ordered back to original cell id).
| cellCells | Mesh connectivity |
Implements renumberMethod.
Definition at line 166 of file springRenumber.C.
|
virtual |
Return the cell visit order (from ordered back to original cell id).
| cellCells | Mesh connectivity |
Implements renumberMethod.
Definition at line 175 of file springRenumber.C.
| Foam::labelList renumberImpl | ( | const ConnectionListListType & | cellCells | ) | const |
Definition at line 57 of file springRenumber.C.
References Foam::average(), UList< T >::begin(), UList< T >::end(), Foam::endl(), Foam::identity(), Foam::Info, Foam::inplaceReorder(), Foam::invert(), Foam::mag(), Foam::max(), maxCo, Foam::min(), Foam::shuffle(), UList< T >::size(), Foam::sortedOrder(), and Foam::Zero.
