Nektar++
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
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.
unsigned int GetNumBndryElements ()
 Returns the total number of elements in the mesh with dimension < expDim.
unsigned int GetNumEntities ()
 Returns the total number of entities in the mesh.

Public Attributes

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

Detailed Description

Definition at line 1163 of file MeshElements.h.

Constructor & Destructor Documentation

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

Definition at line 1166 of file MeshElements.h.

: m_verbose(false) {}

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.

{
unsigned int i, nElmt = 0;
for (i = 0; i < m_expDim; ++i)
nElmt += m_element[i].size();
return nElmt;
}
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.

{
return m_element[m_expDim].size();
}
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.

{
unsigned int nEnt = 0;
for (unsigned int d = 0; d <= m_expDim; ++d)
{
nEnt += m_element[d].size();
}
return nEnt;
}

Member Data Documentation

CompositeMap Nektar::Utilities::Mesh::m_composite

Map for composites.

Definition at line 1185 of file MeshElements.h.

ConditionMap Nektar::Utilities::Mesh::m_condition

Boundary conditions maps tag to condition.

Definition at line 1187 of file MeshElements.h.

EdgeSet Nektar::Utilities::Mesh::m_edgeSet

Set of element edges.

Definition at line 1179 of file MeshElements.h.

ElementMap Nektar::Utilities::Mesh::m_element

Map for elements.

Definition at line 1183 of file MeshElements.h.

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

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

Dimension of the expansion.

Definition at line 1171 of file MeshElements.h.

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

FaceSet Nektar::Utilities::Mesh::m_faceSet

Set of element faces.

Definition at line 1181 of file MeshElements.h.

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

List of fields names.

Definition at line 1189 of file MeshElements.h.

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

List of mesh nodes.

Definition at line 1175 of file MeshElements.h.

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

Dimension of the space in which the mesh is defined.

Definition at line 1173 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 1194 of file MeshElements.h.

bool Nektar::Utilities::Mesh::m_verbose

Verbose flag.

Definition at line 1169 of file MeshElements.h.

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

Map of vertex normals.

Definition at line 1191 of file MeshElements.h.

NodeSet Nektar::Utilities::Mesh::m_vertexSet

Set of element vertices.

Definition at line 1177 of file MeshElements.h.