Loading...
Searching...
No Matches
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 Copyright (C) 2021 OpenCFD Ltd.
10-------------------------------------------------------------------------------
11License
12 This file is part of OpenFOAM.
13
14 OpenFOAM is free software: you can redistribute it and/or modify it
15 under the terms of the GNU General Public License as published by
16 the Free Software Foundation, either version 3 of the License, or
17 (at your option) any later version.
18
19 OpenFOAM is distributed in the hope that it will be useful, but WITHOUT
20 ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
21 FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
22 for more details.
23
24 You should have received a copy of the GNU General Public License
25 along with OpenFOAM. If not, see <http://www.gnu.org/licenses/>.
26
27Class
28 Foam::dimFieldDecomposer
29
30Description
31 Dimensioned field decomposer.
32
33SourceFiles
34 dimFieldDecomposer.cxx
35 dimFieldDecomposer.txx
36
37\*---------------------------------------------------------------------------*/
38
39#ifndef Foam_dimFieldDecomposer_H
40#define Foam_dimFieldDecomposer_H
41
42#include "fvMesh.H"
43#include "DimensionedField.H"
44
45// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
46
47namespace Foam
48{
50/*---------------------------------------------------------------------------*\
51 Class fvFieldDecomposer Declaration
52\*---------------------------------------------------------------------------*/
53
55{
56 // Private Data
57
58 //- Reference to processor mesh
59 const fvMesh& procMesh_;
60
61 //- Reference to face addressing
62 //UNUSED: const labelUList& faceAddressing_;
63
64 //- Reference to cell addressing
65 const labelUList& cellAddressing_;
66
67
68public:
69
70 //- No copy construct
72
73 //- No copy assignment
74 void operator=(const dimFieldDecomposer&) = delete;
76
77 // Constructors
78
79 //- Construct from minimal components
81 (
82 const fvMesh& procMesh,
83 const labelUList& cellAddressing
84 );
85
86 //- Construct from components with API as per fvFieldDecomposer
88 (
89 const fvMesh& completeMesh,
90 const fvMesh& procMesh,
91 const labelUList& faceAddressing,
92 const labelUList& cellAddressing
93 );
94
95
96 //- Destructor
98
99
100 // Member Functions
101
102 //- Decompose field
103 template<class Type>
106 (
108 ) const;
110
111 //- Decompose list of fields
112 template<class GeoField>
113 void decomposeFields(const UPtrList<GeoField>& fields) const;
114};
115
116
117// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
118
119} // End namespace Foam
120
121// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
122
123#ifdef NoRepository
124 #include "dimFieldDecomposer.txx"
125#endif
126
127// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
128
129#endif
130
131// ************************************************************************* //
Field with dimensions and associated with geometry type GeoMesh which is used to size the field and a...
A list of pointers to objects of type <T>, without allocation/deallocation management of the pointers...
Definition UPtrList.H:101
tmp< DimensionedField< Type, volMesh > > decomposeField(const DimensionedField< Type, volMesh > &field) const
Decompose field.
void operator=(const dimFieldDecomposer &)=delete
No copy assignment.
void decomposeFields(const UPtrList< GeoField > &fields) const
Decompose list of fields.
dimFieldDecomposer(const dimFieldDecomposer &)=delete
No copy construct.
dimFieldDecomposer(const fvMesh &completeMesh, const fvMesh &procMesh, const labelUList &faceAddressing, const labelUList &cellAddressing)
Construct from components with API as per fvFieldDecomposer.
dimFieldDecomposer(const fvMesh &procMesh, const labelUList &cellAddressing)
Construct from minimal components.
~dimFieldDecomposer()=default
Destructor.
Mesh data needed to do the Finite Volume discretisation.
Definition fvMesh.H:85
A class for managing temporary objects.
Definition tmp.H:75
rDeltaTY field()
Namespace for OpenFOAM.
UList< label > labelUList
A UList of labels.
Definition UList.H:75
multivariateSurfaceInterpolationScheme< scalar >::fieldTable fields