44 namespace NekMeshUtils
55 vector<NodeSharedPtr> pNodeList,
57 :
Element(pConf, GetNumNodes(pConf), pNodeList.size())
65 for (
int i = 0; i < 2; ++i)
72 for (
int j = 0; j < n; ++j)
85 p[0] =
m_vertex[0]->GetGeom(coordDim);
86 p[1] =
m_vertex[1]->GetGeom(coordDim);
88 if (
m_edge[0]->m_edgeNodes.size() > 0)
94 c->m_points.push_back(p[0]);
95 for (
int i = 0; i <
m_edge[0]->m_edgeNodes.size(); ++i)
97 c->m_points.push_back(
m_edge[0]->m_edgeNodes[i]->
GetGeom(coordDim));
99 c->m_points.push_back(p[1]);
149 int nPoints = order + 1;
159 for (
int i = 0; i < coordDim; ++i)
162 xmap->BwdTrans(geom->GetCoeffs(i), phys[i]);
165 int nQuadIntPts = (nPoints - 2) * (nPoints - 2);
168 for (
int i = 1, cnt = 0; i < nPoints-1; ++i)
174 for (
int k = 0; k < coordDim; ++k)
176 x[k] = xmap->PhysEvaluate(xp, phys[k]);
180 new Node(
id++, x[0], x[1], x[2]));
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.
static boost::shared_ptr< DataType > AllocateSharedPtr()
Allocate a shared pointer from the memory pool.
ElementFactory & GetElementFactory()
ElmtConfig m_conf
Contains configuration of the element.
boost::shared_ptr< Curve > CurveSharedPtr
std::vector< int > m_taglist
List of integers specifying properties of the element.
unsigned int m_order
Order of the element.
static NEKMESHUTILS_EXPORT unsigned int GetNumNodes(ElmtConfig pConf)
Return the number of nodes defining a line.
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 ...
boost::shared_ptr< SegGeom > SegGeomSharedPtr
std::vector< EdgeSharedPtr > m_edge
List of element edges.
virtual NEKMESHUTILS_EXPORT void GetCurvedNodes(std::vector< NodeSharedPtr > &nodeList) const
get list of volume interior nodes
unsigned int GetPointsDim() const
PointsManagerT & PointsManager(void)
Defines a specification for a set of points.
std::vector< NodeSharedPtr > m_volumeNodes
List of element volume nodes.
std::string m_tag
Tag character describing the element.
virtual NEKMESHUTILS_EXPORT SpatialDomains::GeometrySharedPtr GetGeom(int coordDim)
Generate a Nektar++ geometry object for this element.
unsigned int m_id
ID of the element.
LibUtilities::PointsType m_curveType
Volume curve type.
virtual NEKMESHUTILS_EXPORT void MakeOrder(int order, SpatialDomains::GeometrySharedPtr geom, LibUtilities::PointsType pType, int coordDim, int &id, bool justConfig=false)
Insert interior (i.e. volume) points into this element to make the geometry an order order representa...
boost::shared_ptr< StdExpansion > StdExpansionSharedPtr
#define ASSERTL1(condition, msg)
Assert Level 1 – Debugging which is used whether in FULLDEBUG or DEBUG compilation mode...
boost::shared_ptr< Geometry > GeometrySharedPtr
boost::shared_ptr< PointGeom > PointGeomSharedPtr
Base class for element definitions.
tKey RegisterCreatorFunction(tKey idKey, CreatorFunction classCreator, tDescription pDesc="")
Register a class with the factory.