Nektar++
TetMesh.h
Go to the documentation of this file.
1 ////////////////////////////////////////////////////////////////////////////////
2 //
3 // File: TetMesh.h
4 //
5 // For more information, please see: http://www.nektar.info/
6 //
7 // The MIT License
8 //
9 // Copyright (c) 2006 Division of Applied Mathematics, Brown University (USA),
10 // Department of Aeronautics, Imperial College London (UK), and Scientific
11 // Computing and Imaging Institute, University of Utah (USA).
12 //
13 // Permission is hereby granted, free of charge, to any person obtaining a
14 // copy of this software and associated documentation files (the "Software"),
15 // to deal in the Software without restriction, including without limitation
16 // the rights to use, copy, modify, merge, publish, distribute, sublicense,
17 // and/or sell copies of the Software, and to permit persons to whom the
18 // Software is furnished to do so, subject to the following conditions:
19 //
20 // The above copyright notice and this permission notice shall be included
21 // in all copies or substantial portions of the Software.
22 //
23 // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
24 // OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
25 // FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
26 // THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
27 // LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
28 // FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
29 // DEALINGS IN THE SOFTWARE.
30 //
31 // Description: class for tet meshing
32 //
33 ////////////////////////////////////////////////////////////////////////////////
34 
35 #ifndef NEKTAR_MESHUTILS_TETMESHING_TETMESH_H
36 #define NEKTAR_MESHUTILS_TETMESHING_TETMESH_H
37 
40 
42 
44 
45 namespace Nektar
46 {
47 namespace NekMeshUtils
48 {
49 
50 /**
51  * @brief class for taking surface mesh and octree spec and making a 3d tet mesh
52  */
53 class TetMesh
54 {
55 public:
56  friend class MemoryManager<TetMesh>;
57 
58  /**
59  * @brief default constructor
60  */
62  std::vector<ElementSharedPtr> e = std::vector<ElementSharedPtr>())
63  : m_mesh(m), m_surface(e), m_id(id)
64  {
65  };
66 
67  /**
68  *@brief execute tet meshing
69  */
70  void Mesh();
71 
72 private:
73 
75  std::vector<ElementSharedPtr> m_surface;
76  /// number of tetrahedra
77  int m_numtet;
78  int m_id;
79  /// conncetivity of the tets from the interface
80  std::vector<Array<OneD, int> > m_tetconnect;
81 
83 
84 };
85 
86 typedef std::shared_ptr<TetMesh> TetMeshSharedPtr;
87 
88 }
89 }
90 
91 #endif
std::vector< Array< OneD, int > > m_tetconnect
conncetivity of the tets from the interface
Definition: TetMesh.h:80
TetGenInterfaceSharedPtr tetgen
Definition: TetMesh.h:82
General purpose memory allocation routines with the ability to allocate from thread specific memory p...
std::shared_ptr< Mesh > MeshSharedPtr
Shared pointer to a mesh.
Definition: Mesh.h:156
std::shared_ptr< TetGenInterface > TetGenInterfaceSharedPtr
TetMesh(MeshSharedPtr m, int id, std::vector< ElementSharedPtr > e=std::vector< ElementSharedPtr >())
default constructor
Definition: TetMesh.h:61
int m_numtet
number of tetrahedra
Definition: TetMesh.h:77
std::shared_ptr< TetMesh > TetMeshSharedPtr
Definition: TetMesh.h:86
class for taking surface mesh and octree spec and making a 3d tet mesh
Definition: TetMesh.h:53
std::vector< ElementSharedPtr > m_surface
Definition: TetMesh.h:75
void Mesh()
execute tet meshing
Definition: TetMesh.cpp:44