processorMeshes.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 | Copyright (C) 2011-2014 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
61 
62  //- List of processor meshes
64 
65  //- List of processor point addressing lists
67 
68  //- List of processor face addressing lists
70 
71  //- List of processor cell addressing lists
73 
74  //- List of processor boundary addressing lists
76 
77 
78  // Private Member Functions
79 
80  //- Read all meshes
81  void read();
82 
83  //- Disallow default bitwise copy construct
85 
86  //- Disallow default bitwise assignment
87  void operator=(const processorMeshes&);
88 
89 
90 public:
91 
92  // Constructors
93 
94  //- Construct from components
95  processorMeshes(PtrList<Time>& databases, const word& meshName);
96 
97 
98  // Member Functions
99 
100  //- Update the meshes based on the mesh files saved in time directories
102 
103  //- Reconstruct point position after motion in parallel
104  void reconstructPoints(fvMesh&);
105 
106  const PtrList<fvMesh>& meshes() const
107  {
108  return meshes_;
109  }
110 
112  {
113  return meshes_;
114  }
115 
117  {
118  return pointProcAddressing_;
119  }
120 
122  {
123  return faceProcAddressing_;
124  }
125 
127  {
128  return cellProcAddressing_;
129  }
130 
132  {
134  }
135 
136 
137 };
138 
139 
140 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
141 
142 } // End namespace Foam
143 
144 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
145 
146 #endif
147 
148 // ************************************************************************* //
Foam::processorMeshes::cellProcAddressing_
PtrList< labelIOList > cellProcAddressing_
List of processor cell addressing lists.
Definition: processorMeshes.H:71
Foam::processorMeshes::pointProcAddressing_
PtrList< labelIOList > pointProcAddressing_
List of processor point addressing lists.
Definition: processorMeshes.H:65
Foam::processorMeshes::meshName_
const word meshName_
Definition: processorMeshes.H:56
Foam::word
A class for handling words, derived from string.
Definition: word.H:59
Foam::processorMeshes::meshes
const PtrList< fvMesh > & meshes() const
Definition: processorMeshes.H:105
Foam::processorMeshes::databases_
PtrList< Time > & databases_
Processor databases.
Definition: processorMeshes.H:59
Foam::processorMeshes
Container for processor mesh addressing.
Definition: processorMeshes.H:52
IOobjectList.H
Foam::processorMeshes::reconstructPoints
void reconstructPoints(fvMesh &)
Reconstruct point position after motion in parallel.
Definition: processorMeshes.C:205
Foam::processorMeshes::boundaryProcAddressing
const PtrList< labelIOList > & boundaryProcAddressing() const
Definition: processorMeshes.H:130
Foam::processorMeshes::boundaryProcAddressing_
PtrList< labelIOList > boundaryProcAddressing_
List of processor boundary addressing lists.
Definition: processorMeshes.H:74
Foam::processorMeshes::meshes_
PtrList< fvMesh > meshes_
List of processor meshes.
Definition: processorMeshes.H:62
Foam::processorMeshes::operator=
void operator=(const processorMeshes &)
Disallow default bitwise assignment.
Foam::PtrList
A templated 1D list of pointers to objects of type <T>, where the size of the array is known and used...
Definition: List.H:61
Foam::processorMeshes::faceProcAddressing
PtrList< labelIOList > & faceProcAddressing()
Definition: processorMeshes.H:120
Foam::processorMeshes::cellProcAddressing
const PtrList< labelIOList > & cellProcAddressing() const
Definition: processorMeshes.H:125
Foam::processorMeshes::meshes
PtrList< fvMesh > & meshes()
Definition: processorMeshes.H:110
Foam::fvMesh
Mesh data needed to do the Finite Volume discretisation.
Definition: fvMesh.H:78
fvMesh.H
Foam
Namespace for OpenFOAM.
Definition: combustionModel.C:30
Foam::processorMeshes::readUpdate
fvMesh::readUpdateState readUpdate()
Update the meshes based on the mesh files saved in time directories.
Definition: processorMeshes.C:154
Foam::polyMesh::readUpdateState
readUpdateState
Enumeration defining the state of the mesh after a read update.
Definition: polyMesh.H:88
Foam::processorMeshes::faceProcAddressing_
PtrList< labelIOList > faceProcAddressing_
List of processor face addressing lists.
Definition: processorMeshes.H:68
Foam::processorMeshes::processorMeshes
processorMeshes(const processorMeshes &)
Disallow default bitwise copy construct.
Foam::processorMeshes::read
void read()
Read all meshes.
Definition: processorMeshes.C:32
labelIOList.H
Foam::processorMeshes::pointProcAddressing
const PtrList< labelIOList > & pointProcAddressing() const
Definition: processorMeshes.H:115
meshName
static char meshName[]
Definition: globalFoam.H:7
PtrList.H