Nektar++
Public Member Functions | Public Attributes | List of all members
Nektar::Utilities::Mesh Class Reference

#include <MeshElements.h>

Collaboration diagram for Nektar::Utilities::Mesh:
Collaboration graph
[legend]

Public Member Functions

 Mesh ()
 
unsigned int GetNumElements ()
 Returns the total number of elements in the mesh with dimension expDim. More...
 
unsigned int GetNumBndryElements ()
 Returns the total number of elements in the mesh with dimension < expDim. More...
 
unsigned int GetNumEntities ()
 Returns the total number of entities in the mesh. More...
 

Public Attributes

bool m_verbose
 Verbose flag. More...
 
unsigned int m_expDim
 Dimension of the expansion. More...
 
unsigned int m_spaceDim
 Dimension of the space in which the mesh is defined. More...
 
std::vector< NodeSharedPtrm_node
 List of mesh nodes. More...
 
NodeSet m_vertexSet
 Set of element vertices. More...
 
EdgeSet m_edgeSet
 Set of element edges. More...
 
FaceSet m_faceSet
 Set of element faces. More...
 
ElementMap m_element
 Map for elements. More...
 
CompositeMap m_composite
 Map for composites. More...
 
ConditionMap m_condition
 Boundary conditions maps tag to condition. More...
 
std::vector< std::string > m_fields
 List of fields names. More...
 
boost::unordered_map< int, Nodem_vertexNormals
 Map of vertex normals. More...
 
set< pair< int, int > > m_spherigonSurfs
 Set of all pairs of element ID and edge/face number on which to apply spherigon surface smoothing. More...
 
map< int, string > m_faceLabels
 List of face labels for composite annotation. More...
 

Detailed Description

Definition at line 1101 of file MeshElements.h.

Constructor & Destructor Documentation

Nektar::Utilities::Mesh::Mesh ( )
inline

Definition at line 1104 of file MeshElements.h.

1104 : m_verbose(false) {}
bool m_verbose
Verbose flag.

Member Function Documentation

unsigned int Mesh::GetNumBndryElements ( )

Returns the total number of elements in the mesh with dimension < expDim.

Return the number of boundary elements (i.e. one below the expansion dimension).

Definition at line 96 of file MeshElements.cpp.

References m_element, and m_expDim.

97  {
98  unsigned int i, nElmt = 0;
99 
100  for (i = 0; i < m_expDim; ++i)
101  nElmt += m_element[i].size();
102 
103  return nElmt;
104  }
ElementMap m_element
Map for elements.
unsigned int m_expDim
Dimension of the expansion.
unsigned int Mesh::GetNumElements ( )

Returns the total number of elements in the mesh with dimension expDim.

Return the number of elements of the expansion dimension.

Definition at line 87 of file MeshElements.cpp.

References m_element, and m_expDim.

88  {
89  return m_element[m_expDim].size();
90  }
ElementMap m_element
Map for elements.
unsigned int m_expDim
Dimension of the expansion.
unsigned int Mesh::GetNumEntities ( )

Returns the total number of entities in the mesh.

Return the total number of entities in the mesh (i.e. all elements, regardless of dimension).

Definition at line 110 of file MeshElements.cpp.

References m_element, and m_expDim.

111  {
112  unsigned int nEnt = 0;
113 
114  for (unsigned int d = 0; d <= m_expDim; ++d)
115  {
116  nEnt += m_element[d].size();
117  }
118 
119  return nEnt;
120  }
ElementMap m_element
Map for elements.
unsigned int m_expDim
Dimension of the expansion.

Member Data Documentation

CompositeMap Nektar::Utilities::Mesh::m_composite

Map for composites.

Definition at line 1123 of file MeshElements.h.

ConditionMap Nektar::Utilities::Mesh::m_condition

Boundary conditions maps tag to condition.

Definition at line 1125 of file MeshElements.h.

EdgeSet Nektar::Utilities::Mesh::m_edgeSet

Set of element edges.

Definition at line 1117 of file MeshElements.h.

ElementMap Nektar::Utilities::Mesh::m_element

Map for elements.

Definition at line 1121 of file MeshElements.h.

Referenced by GetNumBndryElements(), GetNumElements(), and GetNumEntities().

unsigned int Nektar::Utilities::Mesh::m_expDim

Dimension of the expansion.

Definition at line 1109 of file MeshElements.h.

Referenced by GetNumBndryElements(), GetNumElements(), and GetNumEntities().

map<int,string> Nektar::Utilities::Mesh::m_faceLabels

List of face labels for composite annotation.

Definition at line 1134 of file MeshElements.h.

FaceSet Nektar::Utilities::Mesh::m_faceSet

Set of element faces.

Definition at line 1119 of file MeshElements.h.

std::vector<std::string> Nektar::Utilities::Mesh::m_fields

List of fields names.

Definition at line 1127 of file MeshElements.h.

std::vector<NodeSharedPtr> Nektar::Utilities::Mesh::m_node

List of mesh nodes.

Definition at line 1113 of file MeshElements.h.

unsigned int Nektar::Utilities::Mesh::m_spaceDim

Dimension of the space in which the mesh is defined.

Definition at line 1111 of file MeshElements.h.

set<pair<int,int> > Nektar::Utilities::Mesh::m_spherigonSurfs

Set of all pairs of element ID and edge/face number on which to apply spherigon surface smoothing.

Definition at line 1132 of file MeshElements.h.

bool Nektar::Utilities::Mesh::m_verbose

Verbose flag.

Definition at line 1107 of file MeshElements.h.

boost::unordered_map<int, Node> Nektar::Utilities::Mesh::m_vertexNormals

Map of vertex normals.

Definition at line 1129 of file MeshElements.h.

NodeSet Nektar::Utilities::Mesh::m_vertexSet

Set of element vertices.

Definition at line 1115 of file MeshElements.h.