15 template <ElemType>
struct ShapeFuncImpl;
21 template <
class TPo
int,
class TArray>
25 const t_real _t0 = ((0.5))*xi;
26 v(0, 0) = _t0*(xi - 1);
27 v(0, 1) = _t0*(xi + 1);
28 v(0, 2) = 1 - ((xi) * (xi));
31 template <
class TPo
int,
class TArray>
35 v(0, 0) = xi + (-0.5);
40 template <
class TPo
int,
class TArray>
49 template <
class TPo
int,
class TArray>
80 static constexpr int dim = 1;
86 static constexpr int numVertices = 2;
89 static constexpr int numNodes = 3;
92 static constexpr int numFaces = 0;
98 static constexpr t_real paramSpaceVol = 2.0;
112 static constexpr std::array<t_real, 3 * 3> standardCoords = {
136 static constexpr int numElevNodes = 0;
143 static constexpr int numBisect = 2;
146 static constexpr int numBisectVariants = 1;
162 static constexpr std::array<tBisectSub, 2> bisectElements = {{
171 static constexpr int vtkCellType = 4;
181 static constexpr std::array<int, 3> vtkNodeOrder = {0, 2, 1};
Core type aliases, constants, and metaprogramming utilities for the DNDS framework.
#define DNDS_DEVICE_CALLABLE
static constexpr ElemType GetBisectElemType(t_index)
Get the element type of a sub-element after bisection.
static constexpr ElemType GetFaceType(t_index)
Get the element type of a face.
static DNDS_DEVICE_CALLABLE void Diff2(const TPoint &p, TArray &&v)
static DNDS_DEVICE_CALLABLE void Diff1(const TPoint &p, TArray &&v)
static DNDS_DEVICE_CALLABLE void Diff3(const TPoint &p, TArray &&v)
static DNDS_DEVICE_CALLABLE void Diff0(const TPoint &p, TArray &&v)
Eigen::Matrix< real, 5, 1 > v