43 namespace NekMeshUtils
 
   54                        vector<NodeSharedPtr> pNodeList,
 
   56     : 
Element(pConf, GetNumNodes(pConf), pNodeList.size())
 
   65     map<pair<int, int>, 
int> edgeNodeMap;
 
   67     edgeNodeMap[pair<int, int>(1, 2)] = 9;
 
   68     edgeNodeMap[pair<int, int>(2, 3)] = 9 + n;
 
   69     edgeNodeMap[pair<int, int>(3, 4)] = 9 + 2 * n;
 
   70     edgeNodeMap[pair<int, int>(4, 1)] = 9 + 3 * n;
 
   71     edgeNodeMap[pair<int, int>(1, 5)] = 9 + 4 * n;
 
   72     edgeNodeMap[pair<int, int>(2, 6)] = 9 + 5 * n;
 
   73     edgeNodeMap[pair<int, int>(3, 7)] = 9 + 6 * n;
 
   74     edgeNodeMap[pair<int, int>(4, 8)] = 9 + 7 * n;
 
   75     edgeNodeMap[pair<int, int>(5, 6)] = 9 + 8 * n;
 
   76     edgeNodeMap[pair<int, int>(6, 7)] = 9 + 9 * n;
 
   77     edgeNodeMap[pair<int, int>(7, 8)] = 9 + 10 * n;
 
   78     edgeNodeMap[pair<int, int>(8, 5)] = 9 + 11 * n;
 
   81     for (
int i = 0; i < 8; ++i)
 
   87     for (it = edgeNodeMap.begin(); it != edgeNodeMap.end(); ++it)
 
   89         vector<NodeSharedPtr> edgeNodes;
 
   92             for (
int j = it->second; j < it->second + n; ++j)
 
   94                 edgeNodes.push_back(pNodeList[j - 1]);
 
   98                                                 pNodeList[it->first.second - 1],
 
  104     int face_edges[6][4];
 
  105     int face_ids[6][4] = {{0, 1, 2, 3},
 
  111     for (
int j = 0; j < 6; ++j)
 
  113         vector<NodeSharedPtr> faceVertices;
 
  114         vector<EdgeSharedPtr> faceEdges;
 
  115         vector<NodeSharedPtr> faceNodes;
 
  116         for (
int k = 0; k < 4; ++k)
 
  118             faceVertices.push_back(
m_vertex[face_ids[j][k]]);
 
  121             for (
unsigned int i = 0; i < 
m_edge.size(); ++i)
 
  123                 if (((*(
m_edge[i]->m_n1) == *a) &&
 
  124                      (*(
m_edge[i]->m_n2) == *b)) ||
 
  125                     ((*(
m_edge[i]->m_n1) == *b) && (*(
m_edge[i]->m_n2) == *a)))
 
  127                     face_edges[j][k] = i;
 
  128                     faceEdges.push_back(
m_edge[i]);
 
  136             int N = 8 + 12 * n + j * n * n;
 
  137             for (
int i = 0; i < n * n; ++i)
 
  139                 faceNodes.push_back(pNodeList[N + i]);
 
  147     vector<EdgeSharedPtr> tmp(12);
 
  148     tmp[0]  = 
m_edge[face_edges[0][0]];
 
  149     tmp[1]  = 
m_edge[face_edges[0][1]];
 
  150     tmp[2]  = 
m_edge[face_edges[0][2]];
 
  151     tmp[3]  = 
m_edge[face_edges[0][3]];
 
  152     tmp[4]  = 
m_edge[face_edges[1][3]];
 
  153     tmp[5]  = 
m_edge[face_edges[1][1]];
 
  154     tmp[6]  = 
m_edge[face_edges[2][1]];
 
  155     tmp[7]  = 
m_edge[face_edges[4][1]];
 
  156     tmp[8]  = 
m_edge[face_edges[5][0]];
 
  157     tmp[9]  = 
m_edge[face_edges[5][1]];
 
  158     tmp[10] = 
m_edge[face_edges[5][2]];
 
  159     tmp[11] = 
m_edge[face_edges[5][3]];
 
  168     for (
int i = 0; i < 6; ++i)
 
  171             m_face[i]->GetGeom(coordDim));
 
  186         return (n + 1) * (n + 1) * (n + 1);
 
  188         return 6 * (n + 1) * (n + 1) - 12 * (n + 1) + 8;
 
  190         return 12 * (n + 1) - 16;
 
bool m_faceNodes
Denotes whether the element contains face nodes. For 2D elements, if this is true then the element co...
 
Basic information about an element. 
 
LibUtilities::PointsType m_faceCurveType
Distribution of points in faces. 
 
Represents an edge which joins two points. 
 
static boost::shared_ptr< DataType > AllocateSharedPtr()
Allocate a shared pointer from the memory pool. 
 
boost::shared_ptr< QuadGeom > QuadGeomSharedPtr
 
Represents a face comprised of three or more edges. 
 
boost::shared_ptr< HexGeom > HexGeomSharedPtr
 
ElementFactory & GetElementFactory()
 
ElmtConfig m_conf
Contains configuration of the element. 
 
std::vector< int > m_taglist
List of integers specifying properties of the element. 
 
LibUtilities::PointsType m_edgeCurveType
Distribution of points in edges. 
 
unsigned int m_order
Order of the element. 
 
std::vector< NodeSharedPtr > m_vertex
List of element vertex nodes. 
 
unsigned int m_dim
Dimension of the element. 
 
bool m_volumeNodes
Denotes whether the element contains volume (i.e. interior) nodes. These are not supported by either ...
 
std::vector< EdgeSharedPtr > m_edge
List of element edges. 
 
boost::shared_ptr< Node > NodeSharedPtr
 
static NEKMESHUTILS_EXPORT unsigned int GetNumNodes(ElmtConfig pConf)
Return the number of nodes defining a hexahedron. 
 
std::string m_tag
Tag character describing the element. 
 
boost::shared_ptr< Edge > EdgeSharedPtr
Shared pointer to an edge. 
 
StandardMatrixTag boost::call_traits< LhsDataType >::const_reference rhs typedef NekMatrix< LhsDataType, StandardMatrixTag >::iterator iterator
 
std::vector< FaceSharedPtr > m_face
List of element faces. 
 
boost::shared_ptr< Face > FaceSharedPtr
Shared pointer to a face. 
 
virtual NEKMESHUTILS_EXPORT SpatialDomains::GeometrySharedPtr GetGeom(int coordDim)
Generate a Nektar++ geometry object for this element. 
 
boost::shared_ptr< Geometry > GeometrySharedPtr
 
Base class for element definitions. 
 
tKey RegisterCreatorFunction(tKey idKey, CreatorFunction classCreator, tDescription pDesc="")
Register a class with the factory.