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 processor mesh
58  const fvMesh& procMesh_;
59 
60  //- Reference to cell addressing
61  const labelList& cellAddressing_;
62 
63 
64 public:
65 
66  // Constructors
67 
68  //- Construct from components
70  (
71  const fvMesh& completeMesh,
72  const fvMesh& procMesh,
73  const labelList& faceAddressing,
74  const labelList& cellAddressing
75  );
76 
77  //- Disallow default bitwise copy construction
78  dimFieldDecomposer(const dimFieldDecomposer&) = delete;
79 
80 
81  //- Destructor
83 
84 
85  // Member Functions
86 
87  //- Decompose field
88  template<class Type>
90  (
92  ) const;
93 
94 
95  //- Decompose llist of fields
96  template<class GeoField>
97  void decomposeFields(const PtrList<GeoField>& fields) const;
98 
99 
100  // Member Operators
101 
102  //- Disallow default bitwise assignment
103  void operator=(const dimFieldDecomposer&) = delete;
104 };
105 
106 
107 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
108 
109 } // End namespace Foam
110 
111 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
112 
113 #ifdef NoRepository
115 #endif
116 
117 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
118 
119 #endif
120 
121 // ************************************************************************* //
Foam::surfaceFields.
Dimensioned field decomposer.
multivariateSurfaceInterpolationScheme< scalar >::fieldTable fields
Definition: createFields.H:103
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.
rDeltaTY field()
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.