1 /*---------------------------------------------------------------------------*\
3 \\ / F ield | OpenFOAM: The Open Source CFD Toolbox
5 \\ / A nd | Copyright (C) 2011 OpenFOAM Foundation
7 -------------------------------------------------------------------------------
9 This file is part of OpenFOAM.
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.
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
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/>.
25 Foam::fieldviewTopology
32 \*---------------------------------------------------------------------------*/
34 #ifndef fieldviewTopology_H
35 #define fieldviewTopology_H
37 #include "labelList.H"
40 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
45 // Forward declaration of classes
49 /*---------------------------------------------------------------------------*\
50 Class fieldviewTopology Declaration
51 \*---------------------------------------------------------------------------*/
53 class fieldviewTopology
57 //- Hexes in fieldview format
60 labelList prismLabels_;
66 //- Number of non-hex/prism/pyr/tet labels
74 //- Quad and tri patch faces in fv format
75 labelListList quadFaceLabels_;
77 //- Number of polyhedral faces per patch
78 labelList nPolyFaces_;
81 // Private Member Functions
83 static labelList calcFaceAddressing
85 const faceList& allFaces, // faces given faceLabels
86 const cellShape& shape,
87 const labelList& faces, // faceLabels for given cell
92 //- Disallow default bitwise copy construct
93 fieldviewTopology(const fieldviewTopology&);
95 //- Disallow default bitwise assignment
96 void operator=(const fieldviewTopology&);
103 //- Construct from components
104 fieldviewTopology(const polyMesh& mesh, const bool setWallInfo);
111 const labelList& hexLabels() const
116 const labelList& prismLabels() const
121 const labelList& pyrLabels() const
126 const labelList& tetLabels() const
133 return hexLabels().size()/9;
138 return prismLabels().size()/7;
143 return pyrLabels().size()/6;
148 return tetLabels().size()/5;
156 const labelListList& quadFaceLabels() const
158 return quadFaceLabels_;
161 const labelList& nPolyFaces() const
168 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
170 } // End namespace Foam
172 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
176 // ************************************************************************* //