dimFieldDecomposer.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 | Copyright (C) 2011-2016 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:
56 
57  // Private data
58 
59  //- Reference to complete mesh
60  const fvMesh& completeMesh_;
61 
62  //- Reference to processor mesh
63  const fvMesh& procMesh_;
64 
65  //- Reference to face addressing
66  const labelList& faceAddressing_;
67 
68  //- Reference to cell addressing
69  const labelList& cellAddressing_;
70 
71 
72  // Private Member Functions
73 
74  //- Disallow default bitwise copy construct
76 
77  //- Disallow default bitwise assignment
78  void operator=(const dimFieldDecomposer&);
79 
80 
81 public:
82 
83  // Constructors
84 
85  //- Construct from components
87  (
88  const fvMesh& completeMesh,
89  const fvMesh& procMesh,
90  const labelList& faceAddressing,
91  const labelList& cellAddressing
92  );
93 
94 
95  //- Destructor
97 
98 
99  // Member Functions
100 
101  //- Decompose field
102  template<class Type>
104  (
106  ) const;
107 
108 
109  //- Decompose llist of fields
110  template<class GeoField>
111  void decomposeFields(const PtrList<GeoField>& fields) const;
112 };
113 
114 
115 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
116 
117 } // End namespace Foam
118 
119 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
120 
121 #ifdef NoRepository
123 #endif
124 
125 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
126 
127 #endif
128 
129 // ************************************************************************* //
Foam::surfaceFields.
void decomposeFields(const PtrList< GeoField > &fields) const
Decompose llist of fields.
Dimensioned field decomposer.
multivariateSurfaceInterpolationScheme< scalar >::fieldTable fields
Definition: createFields.H:97
A templated 1D list of pointers to objects of type <T>, where the size of the array is known and used...
Definition: List.H:62
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.
tmp< DimensionedField< Type, volMesh > > decomposeField(const DimensionedField< Type, volMesh > &field) const
Decompose field.
A class for managing temporary objects.
Definition: PtrList.H:54
Namespace for OpenFOAM.