Nektar++
2DGenerator.h
Go to the documentation of this file.
1 ////////////////////////////////////////////////////////////////////////////////
2 //
3 // File: SurfaceMeshing.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 containing all surfacemeshing routines and classes.
32 //
33 ////////////////////////////////////////////////////////////////////////////////
34 
35 #ifndef NEKMESHUTILS_2D_2D
36 #define NEKMESHUTILS_2D_2D
37 
41 
43 
44 namespace Nektar
45 {
46 namespace NekMeshUtils
47 {
48 
49 /**
50  * @brief class containing all surface meshing routines methods and classes
51  */
52 class Generator2D : public ProcessModule
53 {
54 public:
55  /// Creates an instance of this class
56  static std::shared_ptr<Module> create(MeshSharedPtr m)
57  {
59  }
61 
63 
64  virtual ~Generator2D();
65 
66  virtual void Process();
67 
68 private:
69  void FindBLEnds();
70 
71  void MakeBLPrep();
72 
73  void PeriodicPrep();
74 
75  void MakePeriodic();
76 
77  void MakeBL(int faceid);
78 
79  void Report();
80  /// map of individual surface meshes from parametric surfaces
81  std::map<int, FaceMeshSharedPtr> m_facemeshes;
82  /// map of individual curve meshes of the curves in the domain
83  std::map<int, CurveMeshSharedPtr> m_curvemeshes;
84  /// map of periodic curve pairs
85  std::map<unsigned, unsigned> m_periodicPairs;
86  /// list of curves needing a BL
87  std::vector<unsigned int> m_blCurves;
88  /// map of curves and Bl ends: 0, 1 or 2 (for both)
89  std::map<unsigned, unsigned> m_blends;
90  /// list of BL edges
91  std::vector<EdgeSharedPtr> m_blEdges;
92  /// BL thickness expression
94  /// BL thickness expression ID
96  /// map of BL curve nodes to adjacent edges
97  std::map<NodeSharedPtr, std::vector<EdgeSharedPtr>> m_nodesToEdge;
98 };
99 }
100 }
101 
102 #endif
std::vector< unsigned int > m_blCurves
list of curves needing a BL
Definition: 2DGenerator.h:87
std::map< int, FaceMeshSharedPtr > m_facemeshes
map of individual surface meshes from parametric surfaces
Definition: 2DGenerator.h:81
std::shared_ptr< Mesh > MeshSharedPtr
Shared pointer to a mesh.
Definition: Mesh.h:156
std::map< unsigned, unsigned > m_blends
map of curves and Bl ends: 0, 1 or 2 (for both)
Definition: 2DGenerator.h:89
int m_thickness_ID
BL thickness expression ID.
Definition: 2DGenerator.h:95
std::map< unsigned, unsigned > m_periodicPairs
map of periodic curve pairs
Definition: 2DGenerator.h:85
LibUtilities::Interpreter m_thickness
BL thickness expression.
Definition: 2DGenerator.h:93
class containing all surface meshing routines methods and classes
Definition: 2DGenerator.h:52
static std::shared_ptr< DataType > AllocateSharedPtr(const Args &...args)
Allocate a shared pointer from the memory pool.
std::vector< EdgeSharedPtr > m_blEdges
list of BL edges
Definition: 2DGenerator.h:91
Interpreter class for the evaluation of mathematical expressions.
Definition: Interpreter.h:77
Abstract base class for processing modules.
static std::shared_ptr< Module > create(MeshSharedPtr m)
Creates an instance of this class.
Definition: 2DGenerator.h:56
std::map< NodeSharedPtr, std::vector< EdgeSharedPtr > > m_nodesToEdge
map of BL curve nodes to adjacent edges
Definition: 2DGenerator.h:97
std::pair< ModuleType, std::string > ModuleKey
std::map< int, CurveMeshSharedPtr > m_curvemeshes
map of individual curve meshes of the curves in the domain
Definition: 2DGenerator.h:83