FreeFOAM The Cross-Platform CFD Toolkit
cellSets.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 | Copyright (C) 1991-2010 OpenCFD Ltd.
6  \\/ M anipulation |
7 -------------------------------------------------------------------------------
8 License
9  This file is part of OpenFOAM.
10 
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.
15 
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.
20 
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/>.
23 
24 Class
25  Foam::cellSets
26 
27 Description
28 
29 \*---------------------------------------------------------------------------*/
30 
31 #ifndef cellSets_H
32 #define cellSets_H
33 
34 #include <OpenFOAM/labelList.H>
35 
36 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
37 
38 namespace Foam
39 {
40 
41 /*---------------------------------------------------------------------------*\
42  Class cellSets Declaration
43 \*---------------------------------------------------------------------------*/
44 
45 class cellSets
46 {
47  // Private Member Functions
48 
49  //- Disallow default bitwise copy construct
50  cellSets(const cellSets&);
51 
52  //- Disallow default bitwise assignment
53  void operator=(const cellSets&);
54 
55 
56 public:
57 
58  label nHexesWedges;
59  label nPrisms;
60  label nPyrs;
61  label nTets;
62  label nPolys;
63 
70 
71 
72  // Constructors
73 
74  //- Construct given the number ov cells
75  cellSets(const label nCells)
76  :
77  nHexesWedges(0),
78  nPrisms(0),
79  nPyrs(0),
80  nTets(0),
81  nPolys(0),
82 
83  tets(nCells),
84  pyrs(nCells),
85  prisms(nCells),
86  wedges(nCells),
87  hexes(nCells),
88  polys(nCells)
89  {}
90 };
91 
92 
93 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
94 
95 } // End namespace Foam
96 
97 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
98 
99 #endif
100 
101 // ************************ vim: set sw=4 sts=4 et: ************************ //