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/>.
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 // ************************************************************************* //