Initial commit for version 2.0.x patch release
[OpenFOAM-2.0.x.git] / applications / utilities / postProcessing / dataConversion / foamToEnsight / cellSets.H
blobc2eefea5d8ae290dfe5d0b98a19711ee2193ada7
1 /*---------------------------------------------------------------------------*\
2   =========                 |
3   \\      /  F ield         | OpenFOAM: The Open Source CFD Toolbox
4    \\    /   O peration     |
5     \\  /    A nd           | Copyright (C) 2004-2010 OpenCFD Ltd.
6      \\/     M anipulation  |
7 -------------------------------------------------------------------------------
8 License
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
19     for more details.
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/>.
24 Class
25     Foam::cellSets
27 Description
29 \*---------------------------------------------------------------------------*/
31 #ifndef cellSets_H
32 #define cellSets_H
34 #include "labelList.H"
36 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
38 namespace Foam
41 /*---------------------------------------------------------------------------*\
42                            Class cellSets Declaration
43 \*---------------------------------------------------------------------------*/
45 class cellSets
47 public:
49         label nTets;
50         label nPyrs;
51         label nPrisms;
52         label nHexesWedges;
53         label nPolys;
55         labelList tets;
56         labelList pyrs;
57         labelList prisms;
58         labelList wedges;
59         labelList hexes;
60         labelList polys;
63     // Constructors
65         //- Construct given the number ov cells
66         cellSets(const label nCells)
67         :
68             nTets(0),
69             nPyrs(0),
70             nPrisms(0),
71             nHexesWedges(0),
72             nPolys(0),
74             tets(nCells),
75             pyrs(nCells),
76             prisms(nCells),
77             wedges(nCells),
78             hexes(nCells),
79             polys(nCells)
80         {}
84 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
86 } // End namespace Foam
88 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
90 #endif
92 // ************************************************************************* //