1 /*---------------------------------------------------------------------------*\
3 \\ / F ield | foam-extend: Open Source CFD
4 \\ / O peration | Version: 3.2
5 \\ / A nd | Web: http://www.foam-extend.org
6 \\/ M anipulation | For copyright notice see file Copyright
7 -------------------------------------------------------------------------------
9 This file is part of foam-extend.
11 foam-extend is free software: you can redistribute it and/or modify it
12 under the terms of the GNU General Public License as published by the
13 Free Software Foundation, either version 3 of the License, or (at your
14 option) any later version.
16 foam-extend is distributed in the hope that it will be useful, but
17 WITHOUT ANY WARRANTY; without even the implied warranty of
18 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
19 General Public License for more details.
21 You should have received a copy of the GNU General Public License
22 along with foam-extend. If not, see <http://www.gnu.org/licenses/>.
28 Container for processor mesh addressing.
31 Zeljko Tukovic, FSB Zagreb. All rights reserved
36 \*---------------------------------------------------------------------------*/
38 #ifndef processorFaMeshes_H
39 #define processorFaMeshes_H
44 #include "IOobjectList.H"
45 #include "labelIOList.H"
47 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
53 /*---------------------------------------------------------------------------*\
54 Class processorFaMeshes Declaration
55 \*---------------------------------------------------------------------------*/
57 class processorFaMeshes
61 //- List of processor finite volume meshes
62 const PtrList<fvMesh>& fvMeshes_;
64 //- List of processor finite area meshes
65 PtrList<faMesh> meshes_;
67 //- List of processor point addressing lists
68 PtrList<labelIOList> pointProcAddressing_;
70 //- List of processor face addressing lists
71 PtrList<labelIOList> edgeProcAddressing_;
73 //- List of processor cell addressing lists
74 PtrList<labelIOList> faceProcAddressing_;
76 //- List of processor boundary addressing lists
77 PtrList<labelIOList> boundaryProcAddressing_;
80 // Private Member Functions
85 //- Disallow default bitwise copy construct
86 processorFaMeshes(const processorFaMeshes&);
88 //- Disallow default bitwise assignment
89 void operator=(const processorFaMeshes&);
96 //- Construct from components
97 processorFaMeshes(const PtrList<fvMesh>& processorFvMeshes);
102 //- Update the meshes based on the mesh files saved in
104 // fvMesh::readUpdateState readUpdate();
106 //- Reconstruct point position after motion in parallel
107 // void reconstructPoints(faMesh& mesh);
109 PtrList<faMesh>& meshes()
113 const PtrList<labelIOList>& pointProcAddressing() const
115 return pointProcAddressing_;
117 PtrList<labelIOList>& edgeProcAddressing()
119 return edgeProcAddressing_;
121 const PtrList<labelIOList>& faceProcAddressing() const
123 return faceProcAddressing_;
125 const PtrList<labelIOList>& boundaryProcAddressing() const
127 return boundaryProcAddressing_;
132 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
134 } // End namespace Foam
136 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
140 // ************************************************************************* //