processorFaMeshes.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) 2016-2017 Wikki Ltd
9 -------------------------------------------------------------------------------
10 License
11  This file is part of OpenFOAM.
12 
13  OpenFOAM is free software: you can redistribute it and/or modify it
14  under the terms of the GNU General Public License as published by
15  the Free Software Foundation, either version 3 of the License, or
16  (at your option) any later version.
17 
18  OpenFOAM is distributed in the hope that it will be useful, but WITHOUT
19  ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
20  FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
21  for more details.
22 
23  You should have received a copy of the GNU General Public License
24  along with OpenFOAM. If not, see <http://www.gnu.org/licenses/>.
25 
26 Class
27  Foam::processorFaMeshes
28 
29 Description
30  Container for finite-area processor mesh addressing.
31 
32 Author
33  Zeljko Tukovic, FSB Zagreb
34 
35 SourceFiles
36  processorFaMeshes.C
37 
38 \*---------------------------------------------------------------------------*/
39 
40 #ifndef processorFaMeshes_H
41 #define processorFaMeshes_H
42 
43 #include "PtrList.H"
44 #include "faMesh.H"
45 #include "fvMesh.H"
46 #include "IOobjectList.H"
47 #include "labelIOList.H"
48 
49 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
50 
51 namespace Foam
52 {
53 
54 /*---------------------------------------------------------------------------*\
55  Class processorFaMeshes Declaration
56 \*---------------------------------------------------------------------------*/
57 
59 {
60  // Private data
61 
62  //- List of processor finite volume meshes
63  const UPtrList<fvMesh>& fvMeshes_;
64 
65  //- List of processor finite area meshes
66  PtrList<faMesh> meshes_;
67 
68  //- List of processor point addressing lists
69  PtrList<labelIOList> pointProcAddressing_;
70 
71  //- List of processor face addressing lists
72  PtrList<labelIOList> edgeProcAddressing_;
73 
74  //- List of processor cell addressing lists
75  PtrList<labelIOList> faceProcAddressing_;
76 
77  //- List of processor boundary addressing lists
78  PtrList<labelIOList> boundaryProcAddressing_;
79 
80 
81  // Private Member Functions
82 
83  //- Read all meshes
84  void read();
85 
86  //- No copy construct
87  processorFaMeshes(const processorFaMeshes&) = delete;
88 
89  //- No copy assignment
90  void operator=(const processorFaMeshes&) = delete;
91 
92 
93 public:
94 
95  // Constructors
96 
97  //- Construct from components
98  explicit processorFaMeshes(const UPtrList<fvMesh>& processorFvMeshes);
99 
100 
101  // Member Functions
102 
103  const PtrList<faMesh>& meshes() const
104  {
105  return meshes_;
106  }
107 
109  {
110  return meshes_;
111  }
112 
114  {
115  return pointProcAddressing_;
116  }
117 
119  {
120  return edgeProcAddressing_;
121  }
122 
124  {
125  return faceProcAddressing_;
126  }
127 
129  {
130  return boundaryProcAddressing_;
131  }
132 };
133 
134 
135 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
136 
137 } // End namespace Foam
138 
139 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
140 
141 #endif
142 
143 // ************************************************************************* //
Foam::processorFaMeshes::meshes
PtrList< faMesh > & meshes()
Definition: processorFaMeshes.H:107
Foam::processorFaMeshes::pointProcAddressing
const PtrList< labelIOList > & pointProcAddressing() const
Definition: processorFaMeshes.H:112
IOobjectList.H
faMesh.H
Foam::processorFaMeshes::meshes
const PtrList< faMesh > & meshes() const
Definition: processorFaMeshes.H:102
Foam::UPtrList
A list of pointers to objects of type <T>, without allocation/deallocation management of the pointers...
Definition: UPtrList.H:62
Foam::PtrList
A list of pointers to objects of type <T>, with allocation/deallocation management of the pointers....
Definition: List.H:59
Foam::processorFaMeshes
Container for finite-area processor mesh addressing.
Definition: processorFaMeshes.H:57
fvMesh.H
Foam
Namespace for OpenFOAM.
Definition: atmBoundaryLayer.C:33
labelIOList.H
Foam::processorFaMeshes::boundaryProcAddressing
const PtrList< labelIOList > & boundaryProcAddressing() const
Definition: processorFaMeshes.H:127
PtrList.H
Foam::processorFaMeshes::faceProcAddressing
const PtrList< labelIOList > & faceProcAddressing() const
Definition: processorFaMeshes.H:122
Foam::processorFaMeshes::edgeProcAddressing
PtrList< labelIOList > & edgeProcAddressing()
Definition: processorFaMeshes.H:117