manualRenumber.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 | Copyright (C) 2011-2015 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  // Private Member Functions
57 
58  //- Disallow default bitwise copy construct and assignment
59  void operator=(const manualRenumber&);
61 
62 
63 public:
64 
65  //- Runtime type information
66  TypeName("manual");
67 
68 
69  // Constructors
70 
71  //- Construct given the renumber dictionary
72  manualRenumber(const dictionary& renumberDict);
73 
74 
75  //- Destructor
76  virtual ~manualRenumber()
77  {}
78 
79 
80  // Member Functions
81 
82  //- Return the order in which cells need to be visited, i.e.
83  // from ordered back to original cell label.
84  // This is only defined for geometric renumberMethods.
85  virtual labelList renumber(const pointField&) const
86  {
88  return labelList(0);
89  }
90 
91  //- Return the order in which cells need to be visited, i.e.
92  // from ordered back to original cell label.
93  // Use the mesh connectivity (if needed)
94  virtual labelList renumber
95  (
96  const polyMesh& mesh,
97  const pointField& cc
98  ) const;
99 
100  //- Return the order in which cells need to be visited, i.e.
101  // from ordered back to original cell label.
102  // The connectivity is equal to mesh.cellCells() except
103  // - the connections are across coupled patches
105  (
106  const labelListList& cellCells,
107  const pointField& cc
108  ) const
109  {
111  return labelList(0);
112  }
113 };
114 
115 
116 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
117 
118 } // End namespace Foam
119 
120 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
121 
122 #endif
123 
124 // ************************************************************************* //
virtual ~manualRenumber()
Destructor.
A class for handling file names.
Definition: fileName.H:69
A list of keyword definitions, which are a keyword followed by any number of values (e...
Definition: dictionary.H:137
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.
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.