processorMeshes.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-2020 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::processorMeshes
26 
27 Description
28  Container for processor mesh addressing.
29 
30 SourceFiles
31  processorMeshes.C
32 
33 \*---------------------------------------------------------------------------*/
34 
35 #ifndef processorMeshes_H
36 #define processorMeshes_H
37 
38 #include "PtrList.H"
39 #include "fvMesh.H"
40 #include "IOobjectList.H"
41 #include "labelIOList.H"
42 
43 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
44 
45 namespace Foam
46 {
47 
48 
49 /*---------------------------------------------------------------------------*\
50  Class processorMeshes Declaration
51 \*---------------------------------------------------------------------------*/
52 
53 class processorMeshes
54 {
55  // Private Data
56 
57  const word meshName_;
58 
59  //- Processor databases
60  PtrList<Time>& databases_;
61 
62  //- List of processor meshes
63  PtrList<fvMesh> meshes_;
64 
65  //- List of processor point addressing lists
66  PtrList<labelIOList> pointProcAddressing_;
67 
68  //- List of processor face addressing lists
69  PtrList<labelIOList> faceProcAddressing_;
70 
71  //- List of processor cell addressing lists
72  PtrList<labelIOList> cellProcAddressing_;
73 
74  //- List of processor boundary addressing lists
75  PtrList<labelIOList> boundaryProcAddressing_;
76 
77 
78  // Private Member Functions
79 
80  //- Read all meshes
81  void read();
82 
83 
84 public:
85 
86  // Constructors
87 
88  //- Construct from components
89  processorMeshes(PtrList<Time>& databases, const word& meshName);
90 
91  //- Disallow default bitwise copy construction
92  processorMeshes(const processorMeshes&) = delete;
93 
94 
95  // Member Functions
96 
97  //- Update the meshes based on the mesh files saved in time directories
99 
100  //- Reconstruct point position after motion in parallel
101  void reconstructPoints(fvMesh&);
104  {
105  return meshes_;
106  }
109  {
110  return pointProcAddressing_;
111  }
114  {
115  return faceProcAddressing_;
116  }
119  {
120  return cellProcAddressing_;
121  }
124  {
125  return boundaryProcAddressing_;
126  }
127 
128 
129  // Member Operators
130 
131  //- Disallow default bitwise assignment
132  void operator=(const processorMeshes&) = delete;
133 };
134 
135 
136 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
137 
138 } // End namespace Foam
139 
140 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
141 
142 #endif
143 
144 // ************************************************************************* //
void operator=(const processorMeshes &)=delete
Disallow default bitwise assignment.
static char meshName[]
Definition: globalFoam.H:7
A class for handling words, derived from string.
Definition: word.H:59
const PtrList< labelIOList > & boundaryProcAddressing() const
Container for processor mesh addressing.
const PtrList< labelIOList > & pointProcAddressing() const
void reconstructPoints(fvMesh &)
Reconstruct point position after motion in parallel.
processorMeshes(PtrList< Time > &databases, const word &meshName)
Construct from components.
PtrList< fvMesh > & meshes()
A templated 1D list of pointers to objects of type <T>, where the size of the array is known and used...
Definition: List.H:70
Mesh data needed to do the Finite Volume discretisation.
Definition: fvMesh.H:78
PtrList< labelIOList > & faceProcAddressing()
fvMesh::readUpdateState readUpdate()
Update the meshes based on the mesh files saved in time directories.
const PtrList< labelIOList > & cellProcAddressing() const
readUpdateState
Enumeration defining the state of the mesh after a read update.
Definition: polyMesh.H:88
Namespace for OpenFOAM.