Nektar++
ElementConfig.h
Go to the documentation of this file.
1 ////////////////////////////////////////////////////////////////////////////////
2 //
3 // File: ElementConfig.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: Mesh elementconfig.
32 //
33 ////////////////////////////////////////////////////////////////////////////////
34 
35 #ifndef NEKMESHUTILS_MESHELEMENTS_ELEMENTCONFIG
36 #define NEKMESHUTILS_MESHELEMENTS_ELEMENTCONFIG
37 
38 namespace Nektar
39 {
40 namespace NekMeshUtils
41 {
42 
43 /**
44  * @brief Basic information about an element.
45  *
46  * ElmtConfig contains four member variables which denote the
47  * properties of an element when it is created.
48  */
49 struct ElmtConfig
50 {
52  unsigned int pOrder,
53  bool pFn,
54  bool pVn,
55  bool pReorient = true,
58  : m_e(pE), m_faceNodes(pFn), m_volumeNodes(pVn), m_order(pOrder),
59  m_reorient(pReorient), m_edgeCurveType(pECt), m_faceCurveType(pFCt)
60  {
61  }
62 
64  : m_e(p.m_e), m_faceNodes(p.m_faceNodes),
68  {
69  }
70 
72  {
73  }
74 
75  ElmtConfig& operator=(const ElmtConfig &) = default;
76 
77  /// Element type (e.g. triangle, quad, etc).
79  /// Denotes whether the element contains face nodes. For 2D elements, if
80  /// this is true then the element contains interior nodes.
82  /// Denotes whether the element contains volume (i.e. interior) nodes. These
83  /// are not supported by either the mesh converter or Nektar++ but are
84  /// included for completeness and are required for some output modules
85  /// (e.g. Gmsh).
87  /// Order of the element.
88  unsigned int m_order;
89  /// Denotes whether the element needs to be re-orientated for a spectral
90  /// element framework.
91  bool m_reorient;
92  /// Distribution of points in edges.
94  /// Distribution of points in faces.
96 };
97 
98 NEKMESHUTILS_EXPORT bool operator==(ElmtConfig const &c1, ElmtConfig const &c2);
99 
100 }
101 }
102 #endif
bool m_faceNodes
Denotes whether the element contains face nodes. For 2D elements, if this is true then the element co...
Definition: ElementConfig.h:81
Basic information about an element.
Definition: ElementConfig.h:49
LibUtilities::PointsType m_faceCurveType
Distribution of points in faces.
Definition: ElementConfig.h:95
ElmtConfig(ElmtConfig const &p)
Definition: ElementConfig.h:63
ElmtConfig & operator=(const ElmtConfig &)=default
bool operator==(ElmtConfig const &c1, ElmtConfig const &c2)
Compares two element config structs.
LibUtilities::PointsType m_edgeCurveType
Distribution of points in edges.
Definition: ElementConfig.h:93
unsigned int m_order
Order of the element.
Definition: ElementConfig.h:88
1D Evenly-spaced points using Lagrange polynomial
Definition: PointsType.h:64
bool m_volumeNodes
Denotes whether the element contains volume (i.e. interior) nodes. These are not supported by either ...
Definition: ElementConfig.h:86
ElmtConfig(LibUtilities::ShapeType pE, unsigned int pOrder, bool pFn, bool pVn, bool pReorient=true, LibUtilities::PointsType pECt=LibUtilities::ePolyEvenlySpaced, LibUtilities::PointsType pFCt=LibUtilities::ePolyEvenlySpaced)
Definition: ElementConfig.h:51
#define NEKMESHUTILS_EXPORT
bool m_reorient
Denotes whether the element needs to be re-orientated for a spectral element framework.
Definition: ElementConfig.h:91
LibUtilities::ShapeType m_e
Element type (e.g. triangle, quad, etc).
Definition: ElementConfig.h:78