noRenumber.C
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) 2024 OpenCFD Ltd.
9 -------------------------------------------------------------------------------
10 License
11  This file is part of OpenFOAM.
12 
13  OpenFOAM is free software: you can redistribute it and/or modify it
14  under the terms of the GNU General Public License as published by
15  the Free Software Foundation, either version 3 of the License, or
16  (at your option) any later version.
17 
18  OpenFOAM is distributed in the hope that it will be useful, but WITHOUT
19  ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
20  FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
21  for more details.
22 
23  You should have received a copy of the GNU General Public License
24  along with OpenFOAM. If not, see <http://www.gnu.org/licenses/>.
25 
26 \*---------------------------------------------------------------------------*/
27 
28 #include "noRenumber.H"
30 
31 // * * * * * * * * * * * * * * Static Data Members * * * * * * * * * * * * * //
32 
33 namespace Foam
34 {
35  defineTypeName(noRenumber);
36 
38  (
39  renumberMethod,
40  noRenumber,
41  dictionary,
42  none
43  );
44 }
45 
46 
47 // * * * * * * * * * * * * * * * * Constructors * * * * * * * * * * * * * * //
48 
50 :
52 {}
53 
54 
56 :
58 {}
59 
60 
61 // * * * * * * * * * * * * * * * Member Functions * * * * * * * * * * * * * //
62 
64 (
65  const label nCells
66 ) const
67 {
68  return Foam::identity(nCells);
69 }
70 
71 
73 (
74  const pointField& cellCentres
75 ) const
76 {
77  return Foam::identity(cellCentres.size());
78 }
79 
80 
82 (
83  const polyMesh& mesh
84 ) const
85 {
86  return Foam::identity(mesh.nCells());
87 }
88 
89 
91 (
92  const CompactListList<label>& cellCells
93 ) const
94 {
95  return Foam::identity(cellCells.size());
96 }
97 
98 
100 (
101  const labelListList& cellCells
102 ) const
103 {
104  return Foam::identity(cellCells.size());
105 }
106 
107 
108 // ************************************************************************* //
dictionary dict
void size(const label n)
Older name for setAddressableSize.
Definition: UList.H:116
A list of keyword definitions, which are a keyword followed by a number of values (eg...
Definition: dictionary.H:129
Macros for easy insertion into run-time selection tables.
addNamedToRunTimeSelectionTable(topoSetCellSource, badQualityToCell, word, badQuality)
noRenumber()
Default construct.
Definition: noRenumber.C:42
defineTypeName(manifoldCellsMeshObject)
Abstract base class for renumbering.
dynamicFvMesh & mesh
labelList identity(const label len, label start=0)
Return an identity map of the given length with (map[i] == i), works like std::iota() but returning a...
Definition: labelLists.C:44
A packed storage of objects of type <T> using an offset table for access.
label nCells() const noexcept
Number of mesh cells.
virtual labelList renumber(const label nCells) const
Return the cell visit order (from ordered back to original cell id) based solely on the number of cel...
Definition: noRenumber.C:57
Mesh consisting of general polyhedral cells.
Definition: polyMesh.H:75
Namespace for OpenFOAM.