All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
manualRenumber.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::manualRenumber
26 
27 Description
28  Renumber given a ordered-to-original cell association in a file
29 
30 SourceFiles
31  manualRenumber.C
32 
33 \*---------------------------------------------------------------------------*/
34 
35 #ifndef manualRenumber_H
36 #define manualRenumber_H
37 
38 #include "renumberMethod.H"
39 
40 namespace Foam
41 {
42 
43 /*---------------------------------------------------------------------------*\
44  Class manualRenumber Declaration
45 \*---------------------------------------------------------------------------*/
46 
47 class manualRenumber
48 :
49  public renumberMethod
50 {
51  // Private Data
52 
53  const fileName dataFile_;
54 
55 
56 public:
57 
58  //- Runtime type information
59  TypeName("manual");
60 
61 
62  // Constructors
63 
64  //- Construct given the renumber dictionary
65  manualRenumber(const dictionary& renumberDict);
66 
67  //- Disallow default bitwise copy construction
68  manualRenumber(const manualRenumber&) = delete;
69 
70 
71  //- Destructor
72  virtual ~manualRenumber()
73  {}
74 
75 
76  // Member Functions
77 
78  //- Return the order in which cells need to be visited, i.e.
79  // from ordered back to original cell label.
80  // This is only defined for geometric renumberMethods.
81  virtual labelList renumber(const pointField&) const
82  {
84  return labelList(0);
85  }
86 
87  //- Return the order in which cells need to be visited, i.e.
88  // from ordered back to original cell label.
89  // Use the mesh connectivity (if needed)
90  virtual labelList renumber
91  (
92  const polyMesh& mesh,
93  const pointField& cc
94  ) const;
95 
96  //- Return the order in which cells need to be visited, i.e.
97  // from ordered back to original cell label.
98  // The connectivity is equal to mesh.cellCells() except
99  // - the connections are across coupled patches
101  (
102  const labelListList& cellCells,
103  const pointField& cc
104  ) const
105  {
107  return labelList(0);
108  }
109 
110 
111  // Member Operators
112 
113  //- Disallow default bitwise assignment
114  void operator=(const manualRenumber&) = delete;
115 };
116 
117 
118 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
119 
120 } // End namespace Foam
121 
122 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
123 
124 #endif
125 
126 // ************************************************************************* //
virtual ~manualRenumber()
Destructor.
A class for handling file names.
Definition: fileName.H:79
A list of keyword definitions, which are a keyword followed by any number of values (e...
Definition: dictionary.H:158
void operator=(const manualRenumber &)=delete
Disallow default bitwise assignment.
TypeName("manual")
Runtime type information.
Abstract base class for renumbering.
dynamicFvMesh & mesh
virtual labelList renumber(const pointField &) const
Return the order in which cells need to be visited, i.e.
List< label > labelList
A List of labels.
Definition: labelList.H:56
Renumber given a ordered-to-original cell association in a file.
manualRenumber(const dictionary &renumberDict)
Construct given the renumber dictionary.
Mesh consisting of general polyhedral cells.
Definition: polyMesh.H:74
#define NotImplemented
Issue a FatalErrorIn for a function not currently implemented.
Definition: error.H:366
Namespace for OpenFOAM.