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