Nektar++
|
Represents an edge which joins two points. More...
#include <MeshElements.h>
Public Member Functions | |
Edge (NodeSharedPtr pVertex1, NodeSharedPtr pVertex2, std::vector< NodeSharedPtr > pEdgeNodes, LibUtilities::PointsType pCurveType) | |
Creates a new edge. More... | |
Edge (const Edge &pSrc) | |
Copies an existing edge. More... | |
~Edge () | |
unsigned int | GetNodeCount () const |
Returns the total number of nodes defining the edge. More... | |
std::string | GetXmlCurveString () const |
Creates a Nektar++ string listing the coordinates of all the nodes. More... | |
SpatialDomains::SegGeomSharedPtr | GetGeom (int coordDim) |
Generate a SpatialDomains::SegGeom object for this edge. More... | |
Public Attributes | |
unsigned int | m_id |
ID of edge. More... | |
NodeSharedPtr | m_n1 |
First vertex node. More... | |
NodeSharedPtr | m_n2 |
Second vertex node. More... | |
std::vector< NodeSharedPtr > | m_edgeNodes |
List of control nodes between the first and second vertices. More... | |
LibUtilities::PointsType | m_curveType |
Distributions of points along edge. More... | |
vector< pair< ElementSharedPtr, int > > | m_elLink |
Element(s) which are linked to this edge. More... | |
Private Attributes | |
SpatialDomains::SegGeomSharedPtr | m_geom |
Represents an edge which joins two points.
An edge is defined by two nodes (vertices) and, for high-order edges, a set of control nodes defining the shape of the edge.
Definition at line 227 of file MeshElements.h.
|
inline |
Creates a new edge.
Definition at line 230 of file MeshElements.h.
|
inline |
Copies an existing edge.
Definition at line 236 of file MeshElements.h.
|
inline |
Definition at line 239 of file MeshElements.h.
|
inline |
Generate a SpatialDomains::SegGeom object for this edge.
Definition at line 266 of file MeshElements.h.
References Nektar::MemoryManager< DataType >::AllocateSharedPtr(), m_curveType, m_edgeNodes, m_id, m_n1, and m_n2.
|
inline |
Returns the total number of nodes defining the edge.
Definition at line 242 of file MeshElements.h.
References m_edgeNodes.
|
inline |
Creates a Nektar++ string listing the coordinates of all the nodes.
Definition at line 249 of file MeshElements.h.
References m_edgeNodes, m_n1, and m_n2.
LibUtilities::PointsType Nektar::Utilities::Edge::m_curveType |
Distributions of points along edge.
Definition at line 310 of file MeshElements.h.
Referenced by GetGeom().
std::vector<NodeSharedPtr> Nektar::Utilities::Edge::m_edgeNodes |
List of control nodes between the first and second vertices.
Definition at line 308 of file MeshElements.h.
Referenced by GetGeom(), GetNodeCount(), and GetXmlCurveString().
vector<pair<ElementSharedPtr, int> > Nektar::Utilities::Edge::m_elLink |
Element(s) which are linked to this edge.
Definition at line 312 of file MeshElements.h.
|
private |
Definition at line 315 of file MeshElements.h.
unsigned int Nektar::Utilities::Edge::m_id |
NodeSharedPtr Nektar::Utilities::Edge::m_n1 |
First vertex node.
Definition at line 304 of file MeshElements.h.
Referenced by GetGeom(), and GetXmlCurveString().
NodeSharedPtr Nektar::Utilities::Edge::m_n2 |
Second vertex node.
Definition at line 306 of file MeshElements.h.
Referenced by GetGeom(), and GetXmlCurveString().