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-2022 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 FaceList, class PointField>
66  pointField extrudedPoints
67  (
68  const PrimitivePatch<FaceList, PointField>& extrudePatch,
69  const extrudeModel&
70  );
71 
72  //- Construct and return the extruded mesh faces
73  template<class FaceList, class PointField>
74  faceList extrudedFaces
75  (
76  const PrimitivePatch<FaceList, PointField>& extrudePatch,
77  const extrudeModel&
78  );
79 
80  //- Construct and return the extruded mesh cells
81  template<class FaceList, class PointField>
82  cellList extrudedCells
83  (
84  const PrimitivePatch<FaceList, PointField>& extrudePatch,
85  const extrudeModel&
86  );
87 
88 
89 public:
90 
91  // Constructors
92 
93  //- Construct from the primitivePatch to extrude
94  template<class FaceList, class PointField>
96  (
97  const IOobject&,
98  const PrimitivePatch<FaceList, PointField>& extrudePatch,
99  const extrudeModel&
100  );
101 
102  //- Disallow default bitwise copy construction
103  extrudedMesh(const extrudedMesh&) = delete;
104 
105 
106  // Member Operators
107 
108  //- Disallow default bitwise assignment
109  void operator=(const extrudedMesh&) = delete;
110 };
111 
112 
113 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
114 
115 } // End namespace Foam
116 
117 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
118 
119 #ifdef NoRepository
120  #include "extrudedMeshTemplates.C"
121 #endif
122 
123 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
124 
125 #endif
126 
127 // ************************************************************************* //
IOobject defines the attributes of an object for which implicit objectRegistry management is supporte...
Definition: IOobject.H:99
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:61
Top level extrusion model class.
Definition: extrudeModel.H:52
extrudedMesh(const IOobject &, const PrimitivePatch< FaceList, PointField > &extrudePatch, const extrudeModel &)
Construct from the primitivePatch to extrude.
void operator=(const extrudedMesh &)=delete
Disallow default bitwise assignment.
A face is a list of labels corresponding to mesh vertices.
Definition: face.H:76
Mesh consisting of general polyhedral cells.
Definition: polyMesh.H:80
Namespace for OpenFOAM.