structuredDecomp.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-2021 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::structuredDecomp
26 
27 Description
28  Decomposition by walking out decomposition of patch cells mesh.
29 
30 SourceFiles
31  structuredDecomp.C
32 
33 \*---------------------------------------------------------------------------*/
34 
35 #ifndef structuredDecomp_H
36 #define structuredDecomp_H
37 
38 #include "decompositionMethod.H"
39 
40 namespace Foam
41 {
42 
43 /*---------------------------------------------------------------------------*\
44  Class structuredDecomp Declaration
45 \*---------------------------------------------------------------------------*/
46 
47 class structuredDecomp
48 :
49  public decompositionMethod
50 {
51  // Private Data
52 
53  dictionary methodDict_;
54 
55  wordReList patches_;
56 
58 
59 
60 public:
61 
62  //- Runtime type information
63  TypeName("structured");
64 
65 
66  // Constructors
67 
68  //- Construct given the decomposition dictionary
69  structuredDecomp(const dictionary& decompositionDict);
70 
71  //- Disallow default bitwise copy construction
72  structuredDecomp(const structuredDecomp&) = delete;
73 
74 
75  //- Destructor
76  virtual ~structuredDecomp()
77  {}
78 
79 
80  // Member Functions
81 
82  //- Return for every coordinate the wanted processor number. Use the
83  // mesh connectivity (if needed)
84  virtual labelList decompose
85  (
86  const polyMesh& mesh,
87  const pointField& points,
88  const scalarField& pointWeights
89  );
90 
91  //- Return for every coordinate the wanted processor number. Explicitly
92  // provided connectivity - does not use mesh_.
93  virtual labelList decompose
94  (
95  const labelListList& globalCellCells,
96  const pointField& cc,
97  const scalarField& cWeights
98  );
99 
100 
101  // Member Operators
102 
103  //- Disallow default bitwise assignment
104  void operator=(const structuredDecomp&) = delete;
105 };
106 
107 
108 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
109 
110 } // End namespace Foam
111 
112 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
113 
114 #endif
115 
116 // ************************************************************************* //
An auto-pointer similar to the STL auto_ptr but with automatic casting to a reference to the type and...
Definition: autoPtr.H:51
Abstract base class for decomposition.
A list of keyword definitions, which are a keyword followed by any number of values (e....
Definition: dictionary.H:160
Mesh consisting of general polyhedral cells.
Definition: polyMesh.H:80
Decomposition by walking out decomposition of patch cells mesh.
structuredDecomp(const dictionary &decompositionDict)
Construct given the decomposition dictionary.
void operator=(const structuredDecomp &)=delete
Disallow default bitwise assignment.
virtual ~structuredDecomp()
Destructor.
virtual labelList decompose(const polyMesh &mesh, const pointField &points, const scalarField &pointWeights)
Return for every coordinate the wanted processor number. Use the.
TypeName("structured")
Runtime type information.
const pointField & points
Namespace for OpenFOAM.