randomRenumber.H
Go to the documentation of this file.
1/*---------------------------------------------------------------------------*\
2 ========= |
3 \\ / F ield | OpenFOAM: The Open Source CFD Toolbox
4 \\ / O peration |
5 \\ / A nd | www.openfoam.com
6 \\/ M anipulation |
7-------------------------------------------------------------------------------
8 Copyright (C) 2011-2012 OpenFOAM Foundation
9 Copyright (C) 2022 OpenCFD Ltd.
10-------------------------------------------------------------------------------
11License
12 This file is part of OpenFOAM.
13
14 OpenFOAM is free software: you can redistribute it and/or modify it
15 under the terms of the GNU General Public License as published by
16 the Free Software Foundation, either version 3 of the License, or
17 (at your option) any later version.
18
19 OpenFOAM is distributed in the hope that it will be useful, but WITHOUT
20 ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
21 FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
22 for more details.
23
24 You should have received a copy of the GNU General Public License
25 along with OpenFOAM. If not, see <http://www.gnu.org/licenses/>.
26
27Class
28 Foam::randomRenumber
29
30Description
31 Random renumber. Just to see effect of renumbering.
32
33SourceFiles
34 randomRenumber.C
35
36\*---------------------------------------------------------------------------*/
37
38#ifndef Foam_randomRenumber_H
39#define Foam_randomRenumber_H
40
41#include "renumberMethod.H"
42
43namespace Foam
44{
45
46/*---------------------------------------------------------------------------*\
47 Class randomRenumber Declaration
48\*---------------------------------------------------------------------------*/
51:
52 public renumberMethod
53{
54 // Private Member Functions
55
56 //- No copy construct
57 randomRenumber(const randomRenumber&) = delete;
58
59 //- No copy assignment
60 void operator=(const randomRenumber&) = delete;
61
62
63public:
64
65 //- Runtime type information
66 TypeName("random");
67
68
69 // Constructors
70
71 //- Construct given the renumber dictionary
72 explicit randomRenumber(const dictionary& dict);
73
74
75 //- Destructor
76 virtual ~randomRenumber() = default;
77
78
79 // Member Functions
80
81 //- Return the order in which cells need to be visited
82 //- (ie. from ordered back to original cell label).
83 virtual labelList renumber(const pointField&) const;
84
85 //- Return the order in which cells need to be visited
86 //- (ie. from ordered back to original cell label).
87 virtual labelList renumber(const polyMesh&, const pointField&) const;
88
89 //- Return the order in which cells need to be visited
90 //- (ie. from ordered back to original cell label).
91 virtual labelList renumber
92 (
93 const CompactListList<label>& cellCells,
94 const pointField& cellCentres
95 ) const;
96
97 //- Return the order in which cells need to be visited
98 //- (ie. from ordered back to original cell label).
99 virtual labelList renumber
100 (
101 const labelListList& cellCells,
102 const pointField& cellCentres
103 ) const;
104};
105
106
107// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
108
109} // End namespace Foam
110
111// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
112
113#endif
114
115// ************************************************************************* //
A packed storage unstructured matrix of objects of type <T> using an offset table for access.
A list of keyword definitions, which are a keyword followed by a number of values (eg,...
Definition: dictionary.H:126
Mesh consisting of general polyhedral cells.
Definition: polyMesh.H:81
Random renumber. Just to see effect of renumbering.
TypeName("random")
Runtime type information.
virtual ~randomRenumber()=default
Destructor.
virtual labelList renumber(const pointField &) const
Abstract base class for renumbering.
Namespace for OpenFOAM.
dictionary dict
#define TypeName(TypeNameString)
Declare a ClassName() with extra virtual type info.
Definition: typeInfo.H:73