randomRenumber Class Reference

Random renumber. Just to see effect of renumbering. More...

Inheritance diagram for randomRenumber:
Collaboration diagram for randomRenumber:

Public Member Functions

 TypeName ("random")
 Runtime type information. More...
 
 randomRenumber (const dictionary &renumberDict)
 Construct given the renumber dictionary. More...
 
 randomRenumber (const randomRenumber &)=delete
 Disallow default bitwise copy construction. More...
 
virtual ~randomRenumber ()
 Destructor. More...
 
virtual labelList renumber (const pointField &) const
 Return the order in which cells need to be visited, i.e. More...
 
virtual labelList renumber (const polyMesh &mesh, const pointField &cc) const
 Return the order in which cells need to be visited, i.e. More...
 
virtual labelList renumber (const labelListList &cellCells, const pointField &cc) const
 Return the order in which cells need to be visited, i.e. More...
 
void operator= (const randomRenumber &)=delete
 Disallow default bitwise assignment. More...
 
- Public Member Functions inherited from renumberMethod
 TypeName ("renumberMethod")
 Runtime type information. More...
 
 declareRunTimeSelectionTable (autoPtr, renumberMethod, dictionary,(const dictionary &renumberDict),(renumberDict))
 
 renumberMethod (const dictionary &renumberDict)
 Construct given the renumber dictionary. More...
 
 renumberMethod (const renumberMethod &)=delete
 Disallow default bitwise copy construction. More...
 
virtual ~renumberMethod ()
 Destructor. More...
 
virtual labelList renumber (const labelList &cellCells, const labelList &offsets, const pointField &) const
 Return the order in which cells need to be visited, i.e. More...
 
virtual labelList renumber (const polyMesh &mesh, const labelList &cellToRegion, const pointField &regionPoints) const
 Return the order in which cells need to be visited, i.e. More...
 
void operator= (const renumberMethod &)=delete
 Disallow default bitwise assignment. More...
 

Additional Inherited Members

- Static Public Member Functions inherited from renumberMethod
static autoPtr< renumberMethodNew (const dictionary &renumberDict)
 Return a reference to the selected renumbering method. More...
 
- Protected Attributes inherited from renumberMethod
const dictionaryrenumberDict_
 

Detailed Description

Random renumber. Just to see effect of renumbering.

Source files

Definition at line 46 of file randomRenumber.H.

Constructor & Destructor Documentation

◆ randomRenumber() [1/2]

randomRenumber ( const dictionary renumberDict)

Construct given the renumber dictionary.

Definition at line 47 of file randomRenumber.C.

References randomRenumber::renumber().

Here is the call graph for this function:

◆ randomRenumber() [2/2]

randomRenumber ( const randomRenumber )
delete

Disallow default bitwise copy construction.

◆ ~randomRenumber()

virtual ~randomRenumber ( )
inlinevirtual

Destructor.

Definition at line 66 of file randomRenumber.H.

References mesh, randomRenumber::operator=(), and randomRenumber::renumber().

Here is the call graph for this function:

Member Function Documentation

◆ TypeName()

TypeName ( "random"  )

Runtime type information.

◆ renumber() [1/3]

Foam::labelList renumber ( const pointField points) const
virtual

Return the order in which cells need to be visited, i.e.

from ordered back to original cell label. This is only defined for geometric renumberMethods.

Reimplemented from renumberMethod.

Definition at line 56 of file randomRenumber.C.

References forAll, Foam::identity(), rndGen(), Random::sampleAB(), List< T >::size(), and Foam::Swap().

Referenced by randomRenumber::randomRenumber(), randomRenumber::renumber(), and randomRenumber::~randomRenumber().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ renumber() [2/3]

Foam::labelList renumber ( const polyMesh mesh,
const pointField cc 
) const
virtual

Return the order in which cells need to be visited, i.e.

from ordered back to original cell label. Use the mesh connectivity (if needed)

Reimplemented from renumberMethod.

Definition at line 77 of file randomRenumber.C.

References randomRenumber::renumber().

Here is the call graph for this function:

◆ renumber() [3/3]

Foam::labelList renumber ( const labelListList cellCells,
const pointField cc 
) const
virtual

Return the order in which cells need to be visited, i.e.

from ordered back to original cell label. The connectivity is equal to mesh.cellCells() except

  • the connections are across coupled patches

Implements renumberMethod.

Definition at line 87 of file randomRenumber.C.

References randomRenumber::renumber().

Here is the call graph for this function:

◆ operator=()

void operator= ( const randomRenumber )
delete

Disallow default bitwise assignment.

Referenced by randomRenumber::~randomRenumber().

Here is the caller graph for this function:

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