FreeFOAM The Cross-Platform CFD Toolkit
extrudedMesh.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::extrudedMesh
26 
27 Description
28 
29 SourceFiles
30  extrudedMesh.C
31 
32 \*---------------------------------------------------------------------------*/
33 
34 #ifndef extrudedMesh_H
35 #define extrudedMesh_H
36 
37 #include <OpenFOAM/polyMesh.H>
39 
40 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
41 
42 namespace Foam
43 {
44 
45 /*---------------------------------------------------------------------------*\
46  Class extrudedMesh Declaration
47 \*---------------------------------------------------------------------------*/
48 
50 :
51  public polyMesh
52 {
53  // Private data
54 
55  const extrudeModel& model_;
56 
57 
58  // Private Member Functions
59 
60  //- Do edge and face use points in same order?
61  static bool sameOrder(const face&, const edge&);
62 
63  //- Construct and return the extruded mesh points
64  template<class Face, template<class> class FaceList, class PointField>
65  Xfer<pointField> extrudedPoints
66  (
68  const extrudeModel&
69  );
70 
71  //- Construct and return the extruded mesh faces
72  template<class Face, template<class> class FaceList, class PointField>
73  Xfer<faceList> extrudedFaces
74  (
76  const extrudeModel&
77  );
78 
79  //- Construct and return the extruded mesh cells
80  template<class Face, template<class> class FaceList, class PointField>
81  Xfer<cellList> extrudedCells
82  (
84  const extrudeModel&
85  );
86 
87 
88  //- Disallow default bitwise copy construct
89  extrudedMesh(const extrudedMesh&);
90 
91  //- Disallow default bitwise assignment
92  void operator=(const extrudedMesh&);
93 
94 
95 public:
96 
97  // Constructors
98 
99  //- Construct from the primitivePatch to extrude
100  template<class Face, template<class> class FaceList, class PointField>
102  (
103  const IOobject&,
104  const PrimitivePatch<Face, FaceList, PointField>& extrudePatch,
105  const extrudeModel&
106  );
107 };
108 
109 
110 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
111 
112 } // End namespace Foam
113 
114 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
115 
116 #ifdef NoRepository
117 # include "extrudedMesh.C"
118 #else
119 # ifdef xlC
120 # pragma implementation("extrudedMesh.C")
121 # endif
122 #endif
123 
124 #endif
125 
126 // ************************ vim: set sw=4 sts=4 et: ************************ //
127