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