dimFieldDecomposer.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::dimFieldDecomposer
26 
27 Description
28  Dimensioned field decomposer.
29 
30 SourceFiles
31  dimFieldDecomposer.C
32  dimFieldDecomposerDecomposeFields.C
33 
34 \*---------------------------------------------------------------------------*/
35 
36 #ifndef dimFieldDecomposer_H
37 #define dimFieldDecomposer_H
38 
39 #include "fvMesh.H"
40 #include "surfaceFields.H"
41 
42 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
43 
44 namespace Foam
45 {
46 
47 class IOobjectList;
48 
49 /*---------------------------------------------------------------------------*\
50  Class fvFieldDecomposer Declaration
51 \*---------------------------------------------------------------------------*/
52 
54 {
55  // Private Data
56 
57  //- Reference to complete mesh
58  const fvMesh& completeMesh_;
59 
60  //- Reference to processor mesh
61  const fvMesh& procMesh_;
62 
63  //- Reference to face addressing
64  const labelList& faceAddressing_;
65 
66  //- Reference to cell addressing
67  const labelList& cellAddressing_;
68 
69 
70 public:
71 
72  // Constructors
73 
74  //- Construct from components
76  (
77  const fvMesh& completeMesh,
78  const fvMesh& procMesh,
79  const labelList& faceAddressing,
80  const labelList& cellAddressing
81  );
82 
83  //- Disallow default bitwise copy construction
84  dimFieldDecomposer(const dimFieldDecomposer&) = delete;
85 
86 
87  //- Destructor
89 
90 
91  // Member Functions
92 
93  //- Decompose field
94  template<class Type>
96  (
98  ) const;
99 
100 
101  //- Decompose llist of fields
102  template<class GeoField>
103  void decomposeFields(const PtrList<GeoField>& fields) const;
104 
105 
106  // Member Operators
107 
108  //- Disallow default bitwise assignment
109  void operator=(const dimFieldDecomposer&) = delete;
110 };
111 
112 
113 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
114 
115 } // End namespace Foam
116 
117 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
118 
119 #ifdef NoRepository
121 #endif
122 
123 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
124 
125 #endif
126 
127 // ************************************************************************* //
Foam::surfaceFields.
Dimensioned field decomposer.
multivariateSurfaceInterpolationScheme< scalar >::fieldTable fields
Definition: createFields.H:97
void operator=(const dimFieldDecomposer &)=delete
Disallow default bitwise assignment.
void decomposeFields(const PtrList< GeoField > &fields) const
Decompose llist of fields.
A templated 1D list of pointers to objects of type <T>, where the size of the array is known and used...
Definition: List.H:70
Mesh data needed to do the Finite Volume discretisation.
Definition: fvMesh.H:78
Field with dimensions and associated with geometry type GeoMesh which is used to size the field and a...
~dimFieldDecomposer()
Destructor.
A class for managing temporary objects.
Definition: PtrList.H:53
tmp< DimensionedField< Type, volMesh > > decomposeField(const DimensionedField< Type, volMesh > &field) const
Decompose field.
dimFieldDecomposer(const fvMesh &completeMesh, const fvMesh &procMesh, const labelList &faceAddressing, const labelList &cellAddressing)
Construct from components.
Namespace for OpenFOAM.