extrudedMesh.H
Go to the documentation of this file.
1 /*---------------------------------------------------------------------------*\
2  ========= |
3  \\ / F ield | OpenFOAM: The Open Source CFD Toolbox
4  \\ / O peration | Website: https://openfoam.org
5  \\ / A nd | Copyright (C) 2011-2018 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  (
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  (
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  (
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 // ************************************************************************* //
A simple container for copying or transferring objects of type <T>.
Definition: Xfer.H:85
A face is a list of labels corresponding to mesh vertices.
Definition: face.H:75
Top level extrusion model class.
Definition: extrudeModel.H:51
A list of faces which address into the list of points.
An edge is a list of two point labels. The functionality it provides supports the discretisation on a...
Definition: edge.H:58
Mesh consisting of general polyhedral cells.
Definition: polyMesh.H:74
IOobject defines the attributes of an object for which implicit objectRegistry management is supporte...
Definition: IOobject.H:92
Namespace for OpenFOAM.