Use spring analogy - attract neighbouring cells according to the distance of their cell indices. More...
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 pointField &) const |
Return the order in which cells need to be visited (ie. from ordered back to original cell label). More... | |
virtual labelList | renumber (const polyMesh &mesh, const pointField &) const |
Return the order in which cells need to be visited (ie. from ordered back to original cell label). More... | |
virtual labelList | renumber (const CompactListList< label > &cellCells, const pointField &cellCentres) const |
Return the order in which cells need to be visited (ie. from ordered back to original cell label). More... | |
virtual labelList | renumber (const labelListList &cellCells, const pointField &cellCentres) const |
Return the order in which cells need to be visited (ie. from ordered back to original cell label). More... | |
template<class ConnectionListListType > | |
Foam::labelList | renumberImpl (const ConnectionListListType &cellCells) const |
Public Member Functions inherited from renumberMethod | |
TypeName ("renumberMethod") | |
Runtime type information. More... | |
declareRunTimeSelectionTable (autoPtr, renumberMethod, dictionary,(const dictionary &renumberDict),(renumberDict)) | |
renumberMethod (const dictionary &dict) | |
Construct given the renumber dictionary. More... | |
virtual | ~renumberMethod ()=default |
Destructor. More... | |
virtual labelList | renumber (const labelList &cellCells, const labelList &offsets, const pointField &) const |
Return the order in which cells need to be visited (ie. from ordered back to original cell label). More... | |
virtual labelList | renumber (const polyMesh &mesh, const labelList &fineToCoarse, const pointField &coarsePoints) const |
Return the order in which cells need to be visited (ie. from ordered back to original cell label). More... | |
Additional Inherited Members | |
Static Public Member Functions inherited from renumberMethod | |
static autoPtr< renumberMethod > | New (const dictionary &renumberDict) |
Return a reference to the selected renumbering method. More... | |
Protected Member Functions inherited from renumberMethod | |
renumberMethod (const renumberMethod &)=delete | |
No copy construct. More... | |
void | operator= (const renumberMethod &)=delete |
No copy assignment. More... | |
Protected Attributes inherited from renumberMethod | |
const dictionary & | renumberDict_ |
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.
|
virtualdefault |
Destructor.
TypeName | ( | "spring" | ) |
Runtime type information.
|
inlinevirtual |
Return the order in which cells need to be visited (ie. from ordered back to original cell label).
This is only defined for geometric renumberMethods.
Reimplemented from renumberMethod.
Definition at line 125 of file springRenumber.H.
References NotImplemented.
|
virtual |
Return the order in which cells need to be visited (ie. from ordered back to original cell label).
Use the mesh connectivity (if needed)
Reimplemented from renumberMethod.
Definition at line 154 of file springRenumber.C.
References decompositionMethod::calcCellCells(), Foam::identity(), mesh, and primitiveMesh::nCells().
|
virtual |
Return the order in which cells need to be visited (ie. from ordered back to original cell label).
Reimplemented from renumberMethod.
Definition at line 174 of file springRenumber.C.
|
virtual |
Return the order in which cells need to be visited (ie. from ordered back to original cell label).
The connectivity is equal to mesh.cellCells() except
Implements renumberMethod.
Definition at line 184 of file springRenumber.C.
Foam::labelList renumberImpl | ( | const ConnectionListListType & | cellCells | ) | const |
Definition at line 57 of file springRenumber.C.
References Foam::average(), Foam::endl(), forAll, Foam::identity(), Foam::Info, Foam::inplaceReorder(), Foam::invert(), Foam::mag(), Foam::max(), maxCo, Foam::min(), Foam::shuffle(), Foam::sortedOrder(), and Foam::Zero.
Copyright © 2011-2018 OpenFOAM | OPENFOAM® is a registered trademark of OpenCFD Ltd.