Nektar++
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Public Member Functions | Public Attributes | List of all members
Nektar::NekMeshUtils::Mesh Class Reference

#include <Mesh.h>

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

Public Member Functions

NEKMESHUTILS_EXPORT Mesh ()
 
NEKMESHUTILS_EXPORT unsigned int GetNumElements ()
 Returns the total number of elements in the mesh with dimension expDim. More...
 
NEKMESHUTILS_EXPORT unsigned int GetNumBndryElements ()
 Returns the total number of elements in the mesh with dimension < expDim. More...
 
NEKMESHUTILS_EXPORT 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...
 
unsigned int m_nummode
 a order tag to aid output, a bit of a hack More...
 
unsigned int m_numcomp
 
std::vector< NodeSharedPtrm_node
 List of mesh nodes. More...
 
NodeSet m_vertexSet
 Set of element vertices. More...
 
int m_numNodes
 used for meshing purposes to keep trac of ids 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 84 of file Mesh.h.

Constructor & Destructor Documentation

NEKMESHUTILS_EXPORT Nektar::NekMeshUtils::Mesh::Mesh ( )
inline

Definition at line 87 of file Mesh.h.

87  : m_verbose(false), m_nummode(0)
88  {
89  }
unsigned int m_nummode
a order tag to aid output, a bit of a hack
Definition: Mesh.h:98
bool m_verbose
Verbose flag.
Definition: Mesh.h:92

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 57 of file Mesh.cpp.

58 {
59  unsigned int i, nElmt = 0;
60 
61  for (i = 0; i < m_expDim; ++i)
62  nElmt += m_element[i].size();
63 
64  return nElmt;
65 }
unsigned int m_expDim
Dimension of the expansion.
Definition: Mesh.h:94
ElementMap m_element
Map for elements.
Definition: Mesh.h:112
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 48 of file Mesh.cpp.

49 {
50  return m_element[m_expDim].size();
51 }
unsigned int m_expDim
Dimension of the expansion.
Definition: Mesh.h:94
ElementMap m_element
Map for elements.
Definition: Mesh.h:112
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 71 of file Mesh.cpp.

72 {
73  unsigned int nEnt = 0;
74 
75  for (unsigned int d = 0; d <= m_expDim; ++d)
76  {
77  nEnt += m_element[d].size();
78  }
79 
80  return nEnt;
81 }
unsigned int m_expDim
Dimension of the expansion.
Definition: Mesh.h:94
ElementMap m_element
Map for elements.
Definition: Mesh.h:112

Member Data Documentation

CompositeMap Nektar::NekMeshUtils::Mesh::m_composite

Map for composites.

Definition at line 114 of file Mesh.h.

ConditionMap Nektar::NekMeshUtils::Mesh::m_condition

Boundary conditions maps tag to condition.

Definition at line 116 of file Mesh.h.

EdgeSet Nektar::NekMeshUtils::Mesh::m_edgeSet

Set of element edges.

Definition at line 108 of file Mesh.h.

ElementMap Nektar::NekMeshUtils::Mesh::m_element

Map for elements.

Definition at line 112 of file Mesh.h.

unsigned int Nektar::NekMeshUtils::Mesh::m_expDim

Dimension of the expansion.

Definition at line 94 of file Mesh.h.

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

List of face labels for composite annotation.

Definition at line 125 of file Mesh.h.

FaceSet Nektar::NekMeshUtils::Mesh::m_faceSet

Set of element faces.

Definition at line 110 of file Mesh.h.

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

List of fields names.

Definition at line 118 of file Mesh.h.

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

List of mesh nodes.

Definition at line 102 of file Mesh.h.

unsigned int Nektar::NekMeshUtils::Mesh::m_numcomp

Definition at line 100 of file Mesh.h.

unsigned int Nektar::NekMeshUtils::Mesh::m_nummode

a order tag to aid output, a bit of a hack

Definition at line 98 of file Mesh.h.

int Nektar::NekMeshUtils::Mesh::m_numNodes

used for meshing purposes to keep trac of ids

Definition at line 106 of file Mesh.h.

unsigned int Nektar::NekMeshUtils::Mesh::m_spaceDim

Dimension of the space in which the mesh is defined.

Definition at line 96 of file Mesh.h.

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

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

Definition at line 123 of file Mesh.h.

bool Nektar::NekMeshUtils::Mesh::m_verbose

Verbose flag.

Definition at line 92 of file Mesh.h.

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

Map of vertex normals.

Definition at line 120 of file Mesh.h.

NodeSet Nektar::NekMeshUtils::Mesh::m_vertexSet

Set of element vertices.

Definition at line 104 of file Mesh.h.