Nektar++
Loading...
Searching...
No Matches
Public Member Functions | Static Public Member Functions | Protected Member Functions | Protected Attributes | Private Types | List of all members
Nektar::LibUtilities::NodalUtilPyr Class Reference

Specialisation of the NodalUtil class to support nodal pyramidic elements. More...

#include <NodalUtil.h>

Inheritance diagram for Nektar::LibUtilities::NodalUtilPyr:
[legend]

Public Member Functions

 NodalUtilPyr (size_t degree, Array< OneD, NekDouble > r, Array< OneD, NekDouble > s, Array< OneD, NekDouble > t)
 Construct the nodal utility class for a pyramid.
 
 ~NodalUtilPyr () override
 
- Public Member Functions inherited from Nektar::LibUtilities::NodalUtil
virtual ~NodalUtil ()=default
 
NekVector< NekDouble > GetWeights ()
 Obtain the integration weights for the given nodal distribution.
 
SharedMatrix GetVandermonde ()
 Return the Vandermonde matrix for the nodal distribution.
 
SharedMatrix GetVandermondeForDeriv (size_t dir)
 Return the Vandermonde matrix of the derivative of the basis functions for the nodal distribution.
 
SharedMatrix GetDerivMatrix (size_t dir)
 Return the derivative matrix for the nodal distribution.
 
SharedMatrix GetInterpolationMatrix (Array< OneD, Array< OneD, NekDouble > > &xi)
 Construct the interpolation matrix used to evaluate the basis at the points xi inside the element.
 

Static Public Member Functions

static void CartesianOrdering (const int nq, Array< OneD, int > &sorted)
 Set up mapping from point ordering (vert, edge, face, interior) to increasing point ordering in Cartesian type format.
 

Protected Member Functions

NekVector< NekDouble > v_OrthoBasis (const size_t mode) override
 Return the value of the modal functions for the pyramidic element at the nodal points m_xi for a given mode.
 
NekVector< NekDouble > v_OrthoBasisDeriv (const size_t dir, const size_t mode) override
 Return the value of the derivative of the modal functions for the pyramidic element at the nodal points m_xi for a given mode.
 
std::shared_ptr< NodalUtil > v_CreateUtil (Array< OneD, Array< OneD, NekDouble > > &xi) override
 Construct a NodalUtil object of the appropriate element type for a given set of points.
 
NekDouble v_ModeZeroIntegral () override
 Return the value of the integral of the zero-th mode for this element.
 
size_t v_NumModes () override
 Calculate the number of degrees of freedom for this element.
 
- Protected Member Functions inherited from Nektar::LibUtilities::NodalUtil
 NodalUtil (size_t degree, size_t dim)
 Set up the NodalUtil object.
 

Protected Attributes

std::vector< Mode > m_ordering
 Mapping from the \( (i,j,k) \) indexing of the basis to a continuous ordering.
 
Array< OneD, Array< OneD, NekDouble > > m_eta
 Collapsed coordinates \( (\eta_1, \eta_2, \eta_3) \) of the nodal points.
 
- Protected Attributes inherited from Nektar::LibUtilities::NodalUtil
size_t m_dim
 Dimension of the nodal element.
 
size_t m_degree
 Degree of the nodal element.
 
size_t m_numPoints
 Total number of nodal points.
 
Array< OneD, Array< OneD, NekDouble > > m_xi
 Coordinates of the nodal points defining the basis.
 

Private Types

typedef std::tuple< int, int, int > Mode
 

Detailed Description

Specialisation of the NodalUtil class to support nodal pyramidic elements.

The orthogonal basis on the pyramid is constructed using the collapsed coordinate system \( (\eta_1,\eta_2,\eta_3) \), in which both \( \xi_1 \) and \( \xi_2 \) collapse towards the apex as \( \xi_3 \to 1 \). Since the base of the pyramid is a square (rather than the nested triangular collapse seen in the tetrahedron), the appropriate collapsing exponent for a given mode \( (i,j,k) \) is \( m = \max(i,j) \), rather than a cumulative sum of indices. See Bergot, Cohen & Duruflé (2010) or Sherwin & Karniadakis for further details of this basis.

Definition at line 483 of file NodalUtil.h.

Member Typedef Documentation

◆ Mode

typedef std::tuple<int, int, int> Nektar::LibUtilities::NodalUtilPyr::Mode
private

Definition at line 485 of file NodalUtil.h.

Constructor & Destructor Documentation

◆ NodalUtilPyr()

Nektar::LibUtilities::NodalUtilPyr::NodalUtilPyr ( size_t  degree,
Array< OneD, NekDouble >  r,
Array< OneD, NekDouble >  s,
Array< OneD, NekDouble >  t 
)

Construct the nodal utility class for a pyramid.

The constructor of this class sets up two member variables used in the evaluation of the orthogonal basis:

  • NodalUtilPyr::m_eta is used to construct the collapsed coordinate locations of the nodal points \( (\eta_1, \eta_2, \eta_3) \) inside the cube \([-1,1]^3\) on which the orthogonal basis functions are defined.
  • NodalUtilPyr::m_ordering constructs a mapping from the index set \( I = \{ (i,j,k)\ |\ 0\leq i,j \leq P, 0 \leq k \leq P - \max(i,j) \}\) to an ordering \( 0 \leq m(ijk) \leq (P+1)(P+2)(2P+3)/6 \) that defines the monomials \( \xi_1^i \xi_2^j \xi_3^k \) that span the pyramidic space. This is then used to calculate which \( (i,j,k) \) triple (represented as a tuple) corresponding to a column of the Vandermonde matrix when calculating the orthogonal polynomials.

Note that unlike the tetrahedron – where the collapsing exponents for the second and third coordinate directions accumulate as \( i \) and \( i+j \) respectively, owing to the nested triangular collapse – the pyramid's base is a square and both \( \xi_1 \) and \( \xi_2 \) collapse independently and symmetrically towards the apex as \( \xi_3 \to 1 \). The correct collapsing exponent for a mode \( (i,j,k) \) is therefore \( m = \max(i,j) \); see Bergot, Cohen & Duruflé, "Higher-order finite elements for hybrid meshes using new nodal pyramidal elements" (2010), or Sherwin & Karniadakis.

Parameters
degreePolynomial order of this nodal pyramid.
r\( \xi_1 \)-coordinates of nodal points in the standard element.
s\( \xi_2 \)-coordinates of nodal points in the standard element.
t\( \xi_3 \)-coordinates of nodal points in the standard element.

Definition at line 847 of file NodalUtil.cpp.

849 : NodalUtil(degree, 3), m_eta(3)
850{
851 m_numPoints = r.size();
852 m_xi[0] = r;
853 m_xi[1] = s;
854 m_xi[2] = t;
855
856 for (size_t i = 0; i <= m_degree; ++i)
857 {
858 for (size_t j = 0; j <= m_degree; ++j)
859 {
860 size_t m = std::max(i, j);
861 for (size_t k = 0; k <= m_degree - m; ++k)
862 {
863 m_ordering.push_back(Mode(i, j, k));
864 }
865 }
866 }
867
868 // Calculate collapsed coordinates from r/s/t values
869 m_eta[0] = Array<OneD, NekDouble>(m_numPoints);
870 m_eta[1] = Array<OneD, NekDouble>(m_numPoints);
871 m_eta[2] = Array<OneD, NekDouble>(m_numPoints);
872
873 for (size_t i = 0; i < m_numPoints; ++i)
874 {
875 if (fabs(m_xi[2][i] - 1.0) < NekConstants::kNekZeroTol)
876 {
877 // Apex of the pyramid: both eta_1 and eta_2 collapse to -1.
878 m_eta[0][i] = -1.0;
879 m_eta[1][i] = -1.0;
880 m_eta[2][i] = m_xi[2][i];
881 }
882 else
883 {
884 m_eta[0][i] = 2.0 * (1.0 + m_xi[0][i]) / (1.0 - m_xi[2][i]) - 1.0;
885 m_eta[1][i] = 2.0 * (1.0 + m_xi[1][i]) / (1.0 - m_xi[2][i]) - 1.0;
886 m_eta[2][i] = m_xi[2][i];
887 }
888 }
889}
Array< OneD, Array< OneD, NekDouble > > m_xi
Coordinates of the nodal points defining the basis.
Definition NodalUtil.h:107
size_t m_degree
Degree of the nodal element.
Definition NodalUtil.h:103
size_t m_numPoints
Total number of nodal points.
Definition NodalUtil.h:105
NodalUtil(size_t degree, size_t dim)
Set up the NodalUtil object.
Definition NodalUtil.h:95
Array< OneD, Array< OneD, NekDouble > > m_eta
Collapsed coordinates of the nodal points.
Definition NodalUtil.h:644
std::vector< Mode > m_ordering
Mapping from the indexing of the basis to a continuous ordering.
Definition NodalUtil.h:640
std::tuple< int, int, int > Mode
Definition NodalUtil.h:485
static const NekDouble kNekZeroTol

References Nektar::NekConstants::kNekZeroTol, Nektar::LibUtilities::NodalUtil::m_degree, m_eta, Nektar::LibUtilities::NodalUtil::m_numPoints, m_ordering, and Nektar::LibUtilities::NodalUtil::m_xi.

◆ ~NodalUtilPyr()

Nektar::LibUtilities::NodalUtilPyr::~NodalUtilPyr ( )
inlineoverride

Definition at line 492 of file NodalUtil.h.

493 {
494 }

Member Function Documentation

◆ CartesianOrdering()

static void Nektar::LibUtilities::NodalUtilPyr::CartesianOrdering ( const int  nq,
Array< OneD, int > &  sorted 
)
inlinestatic

Set up mapping from point ordering (vert, edge, face, interior) to increasing point ordering in Cartesian type format.

This is the ordering constructed by NodalPyrEvenlySpaced::NodalPointReorder3d: 5 vertices, 8 edges (01, 12, 23, 30 around the base; 04, 14, 24, 34 to the apex), 5 faces (0123 the quadrilateral base; 014, 124, 234, 034 the triangular sides), then interior (volume) points. Unlike the tetrahedron and prism, none of the edge or face blocks need to be traversed in reverse here, since – by construction – both this routine and the nodal point generator walk the standard element in the same (z outer, y middle, x inner) raster order.

Definition at line 509 of file NodalUtil.h.

511 {
512 sorted = Array<OneD, int>(nq * (nq + 1) * (2 * nq + 1) / 6, -1);
513
514 // Block sizes: 8 edges of (nq-2) interior points each, one
515 // quadrilateral base face of (nq-2)^2 interior points, and four
516 // triangular faces of (nq-2)(nq-3)/2 interior points each.
517 const int edgeLen = nq - 2 > 0 ? nq - 2 : 0;
518 const int faceBaseLen = edgeLen * edgeLen;
519 const int faceTriLen = edgeLen * (nq - 3 > 0 ? nq - 3 : 0) / 2;
520
521 const int edge01Start = 5;
522 const int edge12Start = edge01Start + edgeLen;
523 const int edge23Start = edge12Start + edgeLen;
524 const int edge30Start = edge23Start + edgeLen;
525 const int edge04Start = edge30Start + edgeLen;
526 const int edge14Start = edge04Start + edgeLen;
527 const int edge24Start = edge14Start + edgeLen;
528 const int edge34Start = edge24Start + edgeLen;
529 const int faceBaseStart = edge34Start + edgeLen;
530 const int face014Start = faceBaseStart + faceBaseLen;
531 const int face124Start = face014Start + faceTriLen;
532 const int face234Start = face124Start + faceTriLen;
533 const int face034Start = face234Start + faceTriLen;
534 const int interiorStart = face034Start + faceTriLen;
535
536 int cntEdge01 = 0, cntEdge12 = 0, cntEdge23 = 0, cntEdge30 = 0;
537 int cntEdge04 = 0, cntEdge14 = 0, cntEdge24 = 0, cntEdge34 = 0;
538 int cntFaceBase = 0, cntFace014 = 0, cntFace124 = 0, cntFace234 = 0,
539 cntFace034 = 0;
540 int cntInterior = 0;
541
542 int cnt = 0;
543 for (int z = 0; z < nq; ++z)
544 {
545 for (int y = 0; y < nq - z; ++y)
546 {
547 for (int x = 0; x < nq - z; ++x, ++cnt)
548 {
549 // Vertices
550 if (x == 0 && y == 0 && z == 0)
551 {
552 sorted[cnt] = 0;
553 }
554 else if (x == nq - 1 && y == 0 && z == 0)
555 {
556 sorted[cnt] = 1;
557 }
558 else if (x == 0 && y == nq - 1 && z == 0)
559 {
560 sorted[cnt] = 3;
561 }
562 else if (x == nq - 1 && y == nq - 1 && z == 0)
563 {
564 sorted[cnt] = 2;
565 }
566 else if (x == 0 && y == 0 && z == nq - 1)
567 {
568 sorted[cnt] = 4;
569 }
570 // Edges
571 else if (y == 0 && z == 0)
572 {
573 sorted[cnt] = edge01Start + cntEdge01++;
574 }
575 else if (x == nq - 1 && z == 0)
576 {
577 sorted[cnt] = edge12Start + cntEdge12++;
578 }
579 else if (y == nq - 1 && z == 0)
580 {
581 sorted[cnt] = edge23Start + cntEdge23++;
582 }
583 else if (x == 0 && z == 0)
584 {
585 sorted[cnt] = edge30Start + cntEdge30++;
586 }
587 else if (x == 0 && y == 0)
588 {
589 sorted[cnt] = edge04Start + cntEdge04++;
590 }
591 else if (y == 0 && (x + z) == (nq - 1))
592 {
593 sorted[cnt] = edge14Start + cntEdge14++;
594 }
595 else if ((x + z) == (nq - 1) && (y + z) == (nq - 1))
596 {
597 sorted[cnt] = edge24Start + cntEdge24++;
598 }
599 else if (x == 0 && (y + z) == (nq - 1))
600 {
601 sorted[cnt] = edge34Start + cntEdge34++;
602 }
603 // Faces
604 else if (z == 0)
605 {
606 sorted[cnt] = faceBaseStart + cntFaceBase++;
607 }
608 else if (y == 0)
609 {
610 sorted[cnt] = face014Start + cntFace014++;
611 }
612 else if ((x + z) == (nq - 1))
613 {
614 sorted[cnt] = face124Start + cntFace124++;
615 }
616 else if ((y + z) == (nq - 1))
617 {
618 sorted[cnt] = face234Start + cntFace234++;
619 }
620 else if (x == 0)
621 {
622 sorted[cnt] = face034Start + cntFace034++;
623 }
624 // Interior
625 else
626 {
627 sorted[cnt] = interiorStart + cntInterior++;
628 }
629 }
630 }
631 }
632
633 ASSERTL1(cnt == nq * (nq + 1) * (2 * nq + 1) / 6,
634 "No of sorted points not the same as number in expansion");
635 }
#define ASSERTL1(condition, msg)
Assert Level 1 – Debugging which is used whether in FULLDEBUG or DEBUG compilation mode....

References ASSERTL1.

Referenced by Nektar::QuadEquiSpaced::BOOST_AUTO_TEST_CASE().

◆ v_CreateUtil()

std::shared_ptr< NodalUtil > Nektar::LibUtilities::NodalUtilPyr::v_CreateUtil ( Array< OneD, Array< OneD, NekDouble > > &  xi)
inlineoverrideprotectedvirtual

Construct a NodalUtil object of the appropriate element type for a given set of points.

This function is used inside NodalUtil::GetInterpolationMatrix so that the (potentially non-square) Vandermonde matrix can be constructed to create the interpolation matrix at an arbitrary set of points in the domain.

Parameters
xiDistribution of nodal points to create utility with.

Implements Nektar::LibUtilities::NodalUtil.

Definition at line 650 of file NodalUtil.h.

652 {
654 xi[1], xi[2]);
655 }
static std::shared_ptr< DataType > AllocateSharedPtr(const Args &...args)
Allocate a shared pointer from the memory pool.

References Nektar::MemoryManager< DataType >::AllocateSharedPtr(), and Nektar::LibUtilities::NodalUtil::m_degree.

◆ v_ModeZeroIntegral()

NekDouble Nektar::LibUtilities::NodalUtilPyr::v_ModeZeroIntegral ( )
inlineoverrideprotectedvirtual

Return the value of the integral of the zero-th mode for this element.

Note that for the orthogonal basis under consideration, all modes integrate to zero asides from the zero-th mode. This function is used in NodalUtil::GetWeights to determine integration weights.

Implements Nektar::LibUtilities::NodalUtil.

Definition at line 657 of file NodalUtil.h.

658 {
659 return 16.0 * sqrt(2.0) / 3.0;
660 }
scalarT< T > sqrt(scalarT< T > in)
Definition scalar.hpp:289

References tinysimd::sqrt().

◆ v_NumModes()

size_t Nektar::LibUtilities::NodalUtilPyr::v_NumModes ( )
inlineoverrideprotectedvirtual

Calculate the number of degrees of freedom for this element.

Implements Nektar::LibUtilities::NodalUtil.

Definition at line 662 of file NodalUtil.h.

663 {
664 return (m_degree + 1) * (m_degree + 2) * (2 * m_degree + 3) / 6;
665 }

References Nektar::LibUtilities::NodalUtil::m_degree.

◆ v_OrthoBasis()

NekVector< NekDouble > Nektar::LibUtilities::NodalUtilPyr::v_OrthoBasis ( const size_t  mode)
overrideprotectedvirtual

Return the value of the modal functions for the pyramidic element at the nodal points m_xi for a given mode.

In a pyramid, we use the orthogonal basis

\[ \psi_{m(ijk)} = \sqrt{8} P^{(0,0)}_i(\eta_1) P_j^{(0,0)}(\eta_2) P_k^{(2m+2,0)}(\eta_3) (1-\eta_3)^{m}, \qquad m = \max(i,j) \]

where \( m(ijk) \) is the mapping defined in m_ordering and \( J_n^{(\alpha,\beta)}(z) \) denotes the standard Jacobi polynomial.

Parameters
modeThe mode of the orthogonal basis to evaluate.
Returns
Vector containing orthogonal basis evaluated at the points m_xi.

Implements Nektar::LibUtilities::NodalUtil.

Definition at line 907 of file NodalUtil.cpp.

908{
909 std::vector<NekDouble> jacA(m_numPoints), jacB(m_numPoints);
910 std::vector<NekDouble> jacC(m_numPoints);
911
912 size_t I, J, K;
913 std::tie(I, J, K) = m_ordering[mode];
914 size_t M = std::max(I, J);
915
916 // Calculate Jacobi polynomials
917 Polylib::jacobfd(m_numPoints, &m_eta[0][0], &jacA[0], nullptr, I, 0.0, 0.0);
918 Polylib::jacobfd(m_numPoints, &m_eta[1][0], &jacB[0], nullptr, J, 0.0, 0.0);
919 Polylib::jacobfd(m_numPoints, &m_eta[2][0], &jacC[0], nullptr, K,
920 2.0 * M + 2.0, 0.0);
921
922 NekVector<NekDouble> ret(m_numPoints);
923 NekDouble sqrt8 = sqrt(8.0);
924
925 for (size_t i = 0; i < m_numPoints; ++i)
926 {
927 ret[i] =
928 sqrt8 * jacA[i] * jacB[i] * jacC[i] * pow(1.0 - m_eta[2][i], M);
929 }
930
931 return ret;
932}
void jacobfd(const int np, const double *z, double *poly_in, double *polyd, const int n, const double alpha, const double beta)
Routine to calculate Jacobi polynomials, , and their first derivative, .
Definition Polylib.cpp:1249

References Polylib::jacobfd(), m_eta, Nektar::LibUtilities::NodalUtil::m_numPoints, m_ordering, and tinysimd::sqrt().

◆ v_OrthoBasisDeriv()

NekVector< NekDouble > Nektar::LibUtilities::NodalUtilPyr::v_OrthoBasisDeriv ( const size_t  dir,
const size_t  mode 
)
overrideprotectedvirtual

Return the value of the derivative of the modal functions for the pyramidic element at the nodal points m_xi for a given mode.

Note that this routine must use the chain rule combined with the collapsed coordinate derivatives, in a similar fashion to the tetrahedral and prismatic cases. However, since both \( \xi_1 \) and \( \xi_2 \) collapse independently through \( \xi_3 \) (rather than \( \xi_2 \) collapsing through \( \xi_3 \) alone, as in the tetrahedron), the derivative in the \( \xi_3 \) direction picks up chain-rule contributions from both the \( \eta_1 \) and \( \eta_2 \) directions.

Parameters
dirCoordinate direction in which to evaluate the derivative.
modeThe mode of the orthogonal basis to evaluate.
Returns
Vector containing the derivative of the orthogonal basis evaluated at the points m_xi.

Implements Nektar::LibUtilities::NodalUtil.

Definition at line 952 of file NodalUtil.cpp.

954{
955 std::vector<NekDouble> jacA(m_numPoints), jacB(m_numPoints);
956 std::vector<NekDouble> jacC(m_numPoints);
957 std::vector<NekDouble> jacDerivA(m_numPoints), jacDerivB(m_numPoints);
958 std::vector<NekDouble> jacDerivC(m_numPoints);
959
960 size_t I, J, K;
961 std::tie(I, J, K) = m_ordering[mode];
962 size_t M = std::max(I, J);
963
964 // Calculate Jacobi polynomials and their derivatives. Note that we use both
965 // jacobfd and jacobd since jacobfd is only valid for derivatives in the
966 // open interval (-1,1).
967 Polylib::jacobfd(m_numPoints, &m_eta[0][0], &jacA[0], nullptr, I, 0.0, 0.0);
968 Polylib::jacobfd(m_numPoints, &m_eta[1][0], &jacB[0], nullptr, J, 0.0, 0.0);
969 Polylib::jacobfd(m_numPoints, &m_eta[2][0], &jacC[0], nullptr, K,
970 2.0 * M + 2.0, 0.0);
971 Polylib::jacobd(m_numPoints, &m_eta[0][0], &jacDerivA[0], I, 0.0, 0.0);
972 Polylib::jacobd(m_numPoints, &m_eta[1][0], &jacDerivB[0], J, 0.0, 0.0);
973 Polylib::jacobd(m_numPoints, &m_eta[2][0], &jacDerivC[0], K, 2.0 * M + 2.0,
974 0.0);
975
976 NekVector<NekDouble> ret(m_numPoints);
977 NekDouble sqrt8 = sqrt(8.0);
978
979 if (dir == 0)
980 {
981 // d/d(xi_1) = 2/(1-eta_3) d/d(eta_1)
982 for (size_t i = 0; i < m_numPoints; ++i)
983 {
984 ret[i] = 2.0 * sqrt8 * jacDerivA[i] * jacB[i] * jacC[i];
985 if (M > 0)
986 {
987 ret[i] *= pow(1.0 - m_eta[2][i], M - 1.0);
988 }
989 }
990 }
991 else if (dir == 1)
992 {
993 // d/d(xi_2) = 2/(1-eta_3) d/d(eta_2)
994 for (size_t i = 0; i < m_numPoints; ++i)
995 {
996 ret[i] = 2.0 * sqrt8 * jacA[i] * jacDerivB[i] * jacC[i];
997 if (M > 0)
998 {
999 ret[i] *= pow(1.0 - m_eta[2][i], M - 1.0);
1000 }
1001 }
1002 }
1003 else
1004 {
1005 // d/d(xi_3) = (1+eta_1)/(1-eta_3) d/d(eta_1)
1006 // + (1+eta_2)/(1-eta_3) d/d(eta_2) + d/d(eta_3)
1007 for (size_t i = 0; i < m_numPoints; ++i)
1008 {
1009 // Contribution from the eta_1 collapsed-coordinate chain rule.
1010 NekDouble termA = 2.0 * sqrt8 * jacDerivA[i] * jacB[i] * jacC[i];
1011 if (M > 0)
1012 {
1013 termA *= pow(1.0 - m_eta[2][i], M - 1.0);
1014 }
1015 termA *= 0.5 * (1.0 + m_eta[0][i]);
1016
1017 // Contribution from the eta_2 collapsed-coordinate chain rule.
1018 NekDouble termB = 2.0 * sqrt8 * jacA[i] * jacDerivB[i] * jacC[i];
1019 if (M > 0)
1020 {
1021 termB *= pow(1.0 - m_eta[2][i], M - 1.0);
1022 }
1023 termB *= 0.5 * (1.0 + m_eta[1][i]);
1024
1025 // Direct partial derivative with respect to eta_3.
1026 NekDouble termC = jacDerivC[i] * pow(1.0 - m_eta[2][i], M);
1027 if (M > 0)
1028 {
1029 termC -= M * jacC[i] * pow(1.0 - m_eta[2][i], M - 1.0);
1030 }
1031 termC *= sqrt8 * jacA[i] * jacB[i];
1032
1033 ret[i] = termA + termB + termC;
1034 }
1035 }
1036
1037 return ret;
1038}
void jacobd(const int np, const double *z, double *polyd, const int n, const double alpha, const double beta)
Calculate the derivative of Jacobi polynomials.
Definition Polylib.cpp:1379

References Polylib::jacobd(), Polylib::jacobfd(), m_eta, Nektar::LibUtilities::NodalUtil::m_numPoints, m_ordering, and tinysimd::sqrt().

Member Data Documentation

◆ m_eta

Array<OneD, Array<OneD, NekDouble> > Nektar::LibUtilities::NodalUtilPyr::m_eta
protected

Collapsed coordinates \( (\eta_1, \eta_2, \eta_3) \) of the nodal points.

Definition at line 644 of file NodalUtil.h.

Referenced by NodalUtilPyr(), v_OrthoBasis(), and v_OrthoBasisDeriv().

◆ m_ordering

std::vector<Mode> Nektar::LibUtilities::NodalUtilPyr::m_ordering
protected

Mapping from the \( (i,j,k) \) indexing of the basis to a continuous ordering.

Definition at line 640 of file NodalUtil.h.

Referenced by NodalUtilPyr(), v_OrthoBasis(), and v_OrthoBasisDeriv().