1 /*---------------------------------------------------------------------------*\
3 \\ / F ield | OpenFOAM: The Open Source CFD Toolbox
5 \\ / A nd | Copyright (C) 2011 OpenFOAM Foundation
7 -------------------------------------------------------------------------------
9 This file is part of OpenFOAM.
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.
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
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/>.
25 Foam::dimFieldDecomposer
28 Dimensioned field decomposer.
32 dimFieldDecomposerDecomposeFields.C
34 \*---------------------------------------------------------------------------*/
36 #ifndef dimFieldDecomposer_H
37 #define dimFieldDecomposer_H
40 #include "fvPatchFieldMapper.H"
41 #include "surfaceFields.H"
43 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
50 /*---------------------------------------------------------------------------*\
51 Class fvFieldDecomposer Declaration
52 \*---------------------------------------------------------------------------*/
54 class dimFieldDecomposer
60 //- Reference to complete mesh
61 const fvMesh& completeMesh_;
63 //- Reference to processor mesh
64 const fvMesh& procMesh_;
66 //- Reference to face addressing
67 const labelList& faceAddressing_;
69 //- Reference to cell addressing
70 const labelList& cellAddressing_;
73 // Private Member Functions
75 //- Disallow default bitwise copy construct
76 dimFieldDecomposer(const dimFieldDecomposer&);
78 //- Disallow default bitwise assignment
79 void operator=(const dimFieldDecomposer&);
86 //- Construct from components
89 const fvMesh& completeMesh,
90 const fvMesh& procMesh,
91 const labelList& faceAddressing,
92 const labelList& cellAddressing
97 ~dimFieldDecomposer();
104 tmp<DimensionedField<Type, volMesh> > decomposeField
106 const DimensionedField<Type, volMesh>& field
110 //- Decompose llist of fields
111 template<class GeoField>
112 void decomposeFields(const PtrList<GeoField>& fields) const;
116 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
118 } // End namespace Foam
120 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
123 # include "dimFieldDecomposerDecomposeFields.C"
126 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
130 // ************************************************************************* //