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) 2011-2015 OpenFOAM Foundation
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  extrudedMeshTemplates.C
32 
33 \*---------------------------------------------------------------------------*/
34 
35 #ifndef extrudedMesh_H
36 #define extrudedMesh_H
37 
38 #include "polyMesh.H"
39 #include "extrudeModel.H"
40 
41 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
42 
43 namespace Foam
44 {
45 
46 /*---------------------------------------------------------------------------*\
47  Class extrudedMesh Declaration
48 \*---------------------------------------------------------------------------*/
49 
50 class extrudedMesh
51 :
52  public polyMesh
53 {
54  // Private data
55 
56  const extrudeModel& model_;
57 
58 
59  // Private Member Functions
60 
61  //- Do edge and face use points in same order?
62  static bool sameOrder(const face&, const edge&);
63 
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  );
71 
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  );
79 
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  );
87 
88 
89  //- Disallow default bitwise copy construct
90  extrudedMesh(const extrudedMesh&);
91 
92  //- Disallow default bitwise assignment
93  void operator=(const extrudedMesh&);
94 
95 
96 public:
97 
98  // Constructors
99 
100  //- Construct from the primitivePatch to extrude
101  template<class Face, template<class> class FaceList, class PointField>
103  (
104  const IOobject&,
105  const PrimitivePatch<Face, FaceList, PointField>& extrudePatch,
106  const extrudeModel&
107  );
108 };
109 
110 
111 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
112 
113 } // End namespace Foam
114 
115 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
116 
117 #ifdef NoRepository
118  #include "extrudedMeshTemplates.C"
119 #endif
120 
121 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
122 
123 #endif
124 
125 // ************************************************************************* //
Foam::extrudedMesh::extrudedFaces
Xfer< faceList > extrudedFaces(const PrimitivePatch< Face, FaceList, PointField > &extrudePatch, const extrudeModel &)
Construct and return the extruded mesh faces.
polyMesh.H
Foam::extrudedMesh::sameOrder
static bool sameOrder(const face &, const edge &)
Do edge and face use points in same order?
Definition: extrudedMesh.C:30
Foam::extrudedMesh::model_
const extrudeModel & model_
Definition: extrudedMesh.H:55
extrudeModel.H
Foam::extrudedMesh::extrudedMesh
extrudedMesh(const extrudedMesh &)
Disallow default bitwise copy construct.
Foam
Namespace for OpenFOAM.
Definition: combustionModel.C:30
Foam::extrudedMesh::extrudedCells
Xfer< cellList > extrudedCells(const PrimitivePatch< Face, FaceList, PointField > &extrudePatch, const extrudeModel &)
Construct and return the extruded mesh cells.
Foam::IOobject::IOobject
IOobject(const word &name, const fileName &instance, const objectRegistry &registry, readOption r=NO_READ, writeOption w=NO_WRITE, bool registerObject=true)
Construct from name, instance, registry, io options.
Definition: IOobject.C:116
Foam::extrudedMesh::operator=
void operator=(const extrudedMesh &)
Disallow default bitwise assignment.
Foam::extrudedMesh::extrudedPoints
Xfer< pointField > extrudedPoints(const PrimitivePatch< Face, FaceList, PointField > &extrudePatch, const extrudeModel &)
Construct and return the extruded mesh points.