Loading...
Searching...
No Matches
noRenumber.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) 2024 OpenCFD Ltd.
9-------------------------------------------------------------------------------
10License
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
26Class
27 Foam::noRenumber
28
29Description
30 A dummy renumber method, selected as \c none.
31
32 Method coefficients: \a none
33
34SourceFiles
35 noRenumber.C
36
37\*---------------------------------------------------------------------------*/
38
39#ifndef Foam_noRenumber_H
40#define Foam_noRenumber_H
41
42#include "renumberMethod.H"
43
44namespace Foam
45{
47/*---------------------------------------------------------------------------*\
48 Class noRenumber Declaration
49\*---------------------------------------------------------------------------*/
50
51class noRenumber
52:
53 public renumberMethod
54{
55public:
56
57 //- Runtime type information
58 TypeNameNoDebug("none");
59
60
61 // Constructors
62
63 //- Default construct
64 noRenumber();
65
66 //- Construct given the renumber dictionary (unused)
67 explicit noRenumber(const dictionary& dict);
68
69
70 //- Destructor
71 virtual ~noRenumber() = default;
72
73
74 // Member Functions
75
76 //- Renumbering method without mesh or cell-cell topology!
77 virtual bool no_topology() const { return true; }
78
79
80 // No topology
81
82 //- Return the cell visit order (from ordered back to original cell id)
83 //- based solely on the number of cells.
84 virtual labelList renumber(const label nCells) const;
85
86 //- Return the cell visit order (from ordered back to original cell id).
87 //- based solely on pointField size
88 virtual labelList renumber(const pointField&) const;
89
90
91 // With mesh topology
92
93 //- Return the cell visit order (from ordered back to original cell id)
94 //- using the mesh only for the number of cells
95 virtual labelList renumber
96 (
98 const polyMesh& mesh
99 ) const;
100
101
102 // With explicit topology
103
104 //- Return the cell visit order (from ordered back to original cell id)
105 //- using the topology only for the number of cells
106 virtual labelList renumber
107 (
109 const CompactListList<label>& cellCells
110 ) const;
111
112 //- Return the cell visit order (from ordered back to original cell id)
113 //- using the topology only for the number of cells
114 virtual labelList renumber
115 (
117 const labelListList& cellCells
118 ) const;
119};
120
121
122// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
123
124} // End namespace Foam
125
126// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
127
128#endif
129
130// ************************************************************************* //
A packed storage of objects of type <T> using an offset table for access.
A list of keyword definitions, which are a keyword followed by a number of values (eg,...
Definition dictionary.H:133
virtual ~noRenumber()=default
Destructor.
virtual bool no_topology() const
Renumbering method without mesh or cell-cell topology!
Definition noRenumber.H:82
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
TypeNameNoDebug("none")
Runtime type information.
noRenumber()
Default construct.
Definition noRenumber.C:42
Mesh consisting of general polyhedral cells.
Definition polyMesh.H:79
renumberMethod()
Default construct.
dynamicFvMesh & mesh
Namespace for OpenFOAM.
List< labelList > labelListList
List of labelList.
Definition labelList.H:38
List< label > labelList
A List of labels.
Definition List.H:62
vectorField pointField
pointField is a vectorField.
dictionary dict
#define TypeNameNoDebug(TypeNameString)
Declare a ClassNameNoDebug() with extra virtual type info.
Definition typeInfo.H:61