Merge branch 'upstream/OpenFOAM' into master
[freefoam.git] / applications / utilities / mesh / generation / extrudeMesh / extrudedMesh / extrudedMesh.H
blobc1f2af370b448faa020d152bf1362b7acf48bb28
1 /*---------------------------------------------------------------------------*\
2   =========                 |
3   \\      /  F ield         | OpenFOAM: The Open Source CFD Toolbox
4    \\    /   O peration     |
5     \\  /    A nd           | Copyright (C) 1991-2009 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 the
13     Free Software Foundation; either version 2 of the License, or (at your
14     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, write to the Free Software Foundation,
23     Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
25 Class
26     Foam::extrudedMesh
28 Description
30 SourceFiles
31     extrudedMesh.C
33 \*---------------------------------------------------------------------------*/
35 #ifndef extrudedMesh_H
36 #define extrudedMesh_H
38 #include <OpenFOAM/polyMesh.H>
39 #include <extrudeModel/extrudeModel.H>
41 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
43 namespace Foam
46 /*---------------------------------------------------------------------------*\
47                            Class extrudedMesh Declaration
48 \*---------------------------------------------------------------------------*/
50 class extrudedMesh
52     public polyMesh
54     // Private data
56         const extrudeModel& model_;
59     // Private Member Functions
61         //- Do edge and face use points in same order?
62         static bool sameOrder(const face&, const edge&);
64         //- Construct and return the extruded mesh points
65         template<class Face, template<class> class FaceList, class PointField>
66         Xfer<pointField> extrudedPoints
67         (
68             const PrimitivePatch<Face, FaceList, PointField>& extrudePatch,
69             const extrudeModel&
70         );
72         //- Construct and return the extruded mesh faces
73         template<class Face, template<class> class FaceList, class PointField>
74         Xfer<faceList> extrudedFaces
75         (
76             const PrimitivePatch<Face, FaceList, PointField>& extrudePatch,
77             const extrudeModel&
78         );
80         //- Construct and return the extruded mesh cells
81         template<class Face, template<class> class FaceList, class PointField>
82         Xfer<cellList> extrudedCells
83         (
84             const PrimitivePatch<Face, FaceList, PointField>& extrudePatch,
85             const extrudeModel&
86         );
89         //- Disallow default bitwise copy construct
90         extrudedMesh(const extrudedMesh&);
92         //- Disallow default bitwise assignment
93         void operator=(const extrudedMesh&);
96 public:
98     // Constructors
100         //- Construct from the primitivePatch to extrude
101         template<class Face, template<class> class FaceList, class PointField>
102         extrudedMesh
103         (
104             const IOobject&,
105             const PrimitivePatch<Face, FaceList, PointField>& extrudePatch,
106             const extrudeModel&
107         );
111 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
113 } // End namespace Foam
115 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
117 #ifdef NoRepository
118 #   include "extrudedMesh.C"
119 #else
120 #   ifdef xlC
121 #   pragma implementation("extrudedMesh.C")
122 #   endif
123 #endif
125 #endif
127 // ************************ vim: set sw=4 sts=4 et: ************************ //