pointFieldReconstructor.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-2023 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::pointFieldReconstructor
26 
27 Description
28  Point field reconstructor.
29 
30 SourceFiles
31  pointFieldReconstructor.C
32 
33 \*---------------------------------------------------------------------------*/
34 
35 #ifndef pointFieldReconstructor_H
36 #define pointFieldReconstructor_H
37 
38 #include "pointMesh.H"
39 #include "pointFields.H"
40 #include "pointPatchFieldMapper.H"
42 #include "IOobjectList.H"
43 
44 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
45 
46 namespace Foam
47 {
48 
49 class fvMesh;
50 
51 /*---------------------------------------------------------------------------*\
52  Class pointFieldReconstructor Declaration
53 \*---------------------------------------------------------------------------*/
54 
56 {
57  // Private Data
58 
59  //- Reconstructed mesh reference
60  const pointMesh& completeMesh_;
61 
62  //- List of processor meshes
63  const PtrList<fvMesh>& procMeshes_;
64 
65  //- List of processor point addressing lists
66  const labelListList& pointProcAddressing_;
67 
68  //- Point patch addressing
69  labelListListList patchPointAddressing_;
70 
71  //- Number of fields reconstructed
72  label nReconstructed_;
73 
74 
75 public:
76 
77  // Constructors
78 
79  //- Construct from components
81  (
82  const pointMesh& mesh,
83  const PtrList<fvMesh>& procMeshes,
84  const labelListList& pointProcAddressing
85  );
86 
87  //- Disallow default bitwise copy construction
89 
90 
91  // Member Functions
92 
93  //- Return number of fields reconstructed
94  label nReconstructed() const
95  {
96  return nReconstructed_;
97  }
98 
99  //- Reconstruct field
100  template<class Type>
102  reconstructField(const IOobject& fieldIoObject);
103 
104  //- Reconstruct and write all fields
105  template<class Type>
106  void reconstructFields
107  (
108  const IOobjectList& objects,
109  const HashSet<word>& selectedFields
110  );
111 
112 
113  // Member Operators
114 
115  //- Disallow default bitwise assignment
116  void operator=(const pointFieldReconstructor&) = delete;
117 };
118 
119 
120 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
121 
122 } // End namespace Foam
123 
124 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
125 
126 #ifdef NoRepository
128 #endif
129 
130 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
131 
132 #endif
133 
134 // ************************************************************************* //
A HashTable with keys but without contents.
Definition: HashSet.H:62
List of IOobjects with searching and retrieving facilities.
Definition: IOobjectList.H:53
IOobject defines the attributes of an object for which implicit objectRegistry management is supporte...
Definition: IOobject.H:99
A templated 1D list of pointers to objects of type <T>, where the size of the array is known and used...
Definition: PtrList.H:75
Point field reconstructor.
pointFieldReconstructor(const pointMesh &mesh, const PtrList< fvMesh > &procMeshes, const labelListList &pointProcAddressing)
Construct from components.
void operator=(const pointFieldReconstructor &)=delete
Disallow default bitwise assignment.
tmp< PointField< Type > > reconstructField(const IOobject &fieldIoObject)
Reconstruct field.
label nReconstructed() const
Return number of fields reconstructed.
void reconstructFields(const IOobjectList &objects, const HashSet< word > &selectedFields)
Reconstruct and write all fields.
Mesh representing a set of points created from polyMesh.
Definition: pointMesh.H:52
A class for managing temporary objects.
Definition: tmp.H:55
Namespace for OpenFOAM.
intWM_LABEL_SIZE_t label
A label is an int32_t or int64_t as specified by the pre-processor macro WM_LABEL_SIZE.
Definition: label.H:59
objects