zoltanRenumber.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-2015 OpenFOAM Foundation
9  Copyright (C) 2022 OpenCFD Ltd.
10 -------------------------------------------------------------------------------
11 License
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 
27 Class
28  Foam::zoltanRenumber
29 
30 Description
31  Use Zoltan
32 
33 SourceFiles
34  zoltanRenumber.C
35 
36 \*---------------------------------------------------------------------------*/
37 
38 #ifndef Foam_zoltanRenumber_H
39 #define Foam_zoltanRenumber_H
40 
41 #include "renumberMethod.H"
42 
43 namespace Foam
44 {
45 
46 /*---------------------------------------------------------------------------*\
47  Class zoltanRenumber Declaration
48 \*---------------------------------------------------------------------------*/
49 
50 class zoltanRenumber
51 :
52  public renumberMethod
53 {
54  // Private Data
55 
56  const dictionary& coeffsDict_;
57 
58 
59  // Private Member Functions
60 
61  //- No copy construct
62  zoltanRenumber(const zoltanRenumber&) = delete;
63 
64  //- No copy assignment
65  void operator=(const zoltanRenumber&) = delete;
66 
67 
68 public:
69 
70  //- Runtime type information
71  TypeName("zoltan");
72 
73 
74  // Constructors
75 
76  //- Construct given the renumber dictionary
77  explicit zoltanRenumber(const dictionary& dict);
78 
79 
80  //- Destructor
81  virtual ~zoltanRenumber() = default;
82 
83 
84  // Member Functions
85 
86  //- Return the order in which cells need to be visited
87  //- (ie. from ordered back to original cell label).
88  // This is only defined for geometric renumberMethods.
89  virtual labelList renumber(const pointField&) const
90  {
92  return labelList();
93  }
94 
95  //- Return the order in which cells need to be visited
96  //- (ie. from ordered back to original cell label).
97  // Use the mesh connectivity (if needed)
98  virtual labelList renumber
99  (
100  const polyMesh& mesh,
101  const pointField& cc
102  ) const;
103 
104  //- Return the order in which cells need to be visited
105  //- (ie. from ordered back to original cell label).
106  virtual labelList renumber
107  (
108  const CompactListList<label>& cellCells,
109  const pointField& cellCentres
110  ) const
111  {
113  return labelList();
114  }
115 
116  //- Return the order in which cells need to be visited
117  //- (ie. from ordered back to original cell label).
118  virtual labelList renumber
119  (
120  const labelListList& cellCells,
121  const pointField& cellCentres
122  ) const
123  {
125  return labelList();
126  }
127 };
128 
129 
130 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
131 
132 } // End namespace Foam
133 
134 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
135 
136 #endif
137 
138 // ************************************************************************* //
dictionary dict
A list of keyword definitions, which are a keyword followed by a number of values (eg...
Definition: dictionary.H:129
virtual labelList renumber(const pointField &) const
Return the order in which cells need to be visited (ie. from ordered back to original cell label)...
Abstract base class for renumbering.
dynamicFvMesh & mesh
TypeName("zoltan")
Runtime type information.
A packed storage of objects of type <T> using an offset table for access.
virtual ~zoltanRenumber()=default
Destructor.
Renumber using Zoltan.
Mesh consisting of general polyhedral cells.
Definition: polyMesh.H:74
List< label > labelList
A List of labels.
Definition: List.H:62
#define NotImplemented
Issue a FatalErrorIn for a function not currently implemented.
Definition: error.H:686
Namespace for OpenFOAM.