Nektar++
Public Member Functions | Static Public Member Functions | Private Member Functions | Static Private Attributes | List of all members
Nektar::LibUtilities::NodalTetSPI Class Reference

#include <NodalTetSPI.h>

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

Public Member Functions

 ~NodalTetSPI () override
 
 NodalTetSPI (const PointsKey &key)
 
- Public Member Functions inherited from Nektar::LibUtilities::Points< NekDouble >
virtual ~Points ()
 
void Initialize (void)
 
size_t GetPointsDim () const
 
size_t GetNumPoints () const
 
size_t GetTotNumPoints () const
 
PointsType GetPointsType () const
 
const Array< OneD, const DataType > & GetZ () const
 
const Array< OneD, const DataType > & GetW () const
 
void GetZW (Array< OneD, const DataType > &z, Array< OneD, const DataType > &w) const
 
const Array< OneD, const NekDouble > & GetBaryWeights () const
 
void GetPoints (Array< OneD, const DataType > &x) const
 
void GetPoints (Array< OneD, const DataType > &x, Array< OneD, const DataType > &y) const
 
void GetPoints (Array< OneD, const DataType > &x, Array< OneD, const DataType > &y, Array< OneD, const DataType > &z) const
 
const MatrixSharedPtrTypeGetD (Direction dir=xDir) const
 
const MatrixSharedPtrType GetI (const PointsKey &key)
 
const MatrixSharedPtrType GetI (const Array< OneD, const DataType > &x)
 
const MatrixSharedPtrType GetI (size_t uint, const Array< OneD, const DataType > &x)
 
const MatrixSharedPtrType GetI (const Array< OneD, const DataType > &x, const Array< OneD, const DataType > &y)
 
const MatrixSharedPtrType GetI (const Array< OneD, const DataType > &x, const Array< OneD, const DataType > &y, const Array< OneD, const DataType > &z)
 
const MatrixSharedPtrType GetGalerkinProjection (const PointsKey &pkey)
 

Static Public Member Functions

static std::shared_ptr< PointsBaseTypeCreate (const PointsKey &key)
 

Private Member Functions

 NodalTetSPI ()=delete
 
 NodalTetSPI (const NodalTetSPI &points)=delete
 
void v_CalculatePoints () final
 
void v_CalculateWeights () final
 
void v_CalculateDerivMatrix () final
 

Static Private Attributes

static bool initPointsManager []
 

Additional Inherited Members

- Public Types inherited from Nektar::LibUtilities::Points< NekDouble >
typedef NekDouble DataType
 
typedef std::shared_ptr< NekMatrix< DataType > > MatrixSharedPtrType
 
- Protected Member Functions inherited from Nektar::LibUtilities::Points< NekDouble >
virtual void v_Initialize (void)
 
virtual void v_CalculatePoints ()
 
virtual void v_CalculateWeights ()
 
- Protected Attributes inherited from Nektar::LibUtilities::Points< NekDouble >
PointsKey m_pointsKey
 Points type for this points distributions. More...
 
Array< OneD, DataTypem_points [3]
 Storage for the point locations, allowing for up to a 3D points storage. More...
 
Array< OneD, DataTypem_weights
 Quadrature weights for the weights. More...
 
Array< OneD, DataTypem_bcweights
 Barycentric weights. More...
 
MatrixSharedPtrType m_derivmatrix [3]
 Derivative matrices. More...
 
NekManager< PointsKey, NekMatrix< DataType >, PointsKey::opLessm_InterpManager
 
NekManager< PointsKey, NekMatrix< DataType >, PointsKey::opLessm_GalerkinProjectionManager
 

Detailed Description

Definition at line 45 of file NodalTetSPI.h.

Constructor & Destructor Documentation

◆ ~NodalTetSPI()

Nektar::LibUtilities::NodalTetSPI::~NodalTetSPI ( )
inlineoverride

Definition at line 48 of file NodalTetSPI.h.

49 {
50 }

◆ NodalTetSPI() [1/3]

Nektar::LibUtilities::NodalTetSPI::NodalTetSPI ( const PointsKey key)
inline

Definition at line 55 of file NodalTetSPI.h.

55 : PointsBaseType(key)
56 {
57 }
Points< NekDouble > PointsBaseType

◆ NodalTetSPI() [2/3]

Nektar::LibUtilities::NodalTetSPI::NodalTetSPI ( )
privatedelete

◆ NodalTetSPI() [3/3]

Nektar::LibUtilities::NodalTetSPI::NodalTetSPI ( const NodalTetSPI points)
privatedelete

Member Function Documentation

◆ Create()

std::shared_ptr< PointsBaseType > Nektar::LibUtilities::NodalTetSPI::Create ( const PointsKey key)
static

Definition at line 96 of file NodalTetSPI.cpp.

97{
98 std::shared_ptr<PointsBaseType> returnval(
100 returnval->Initialize();
101 return returnval;
102}
static std::shared_ptr< DataType > AllocateSharedPtr(const Args &...args)
Allocate a shared pointer from the memory pool.

◆ v_CalculateDerivMatrix()

void Nektar::LibUtilities::NodalTetSPI::v_CalculateDerivMatrix ( )
finalprivate

Definition at line 92 of file NodalTetSPI.cpp.

93{
94}

◆ v_CalculatePoints()

void Nektar::LibUtilities::NodalTetSPI::v_CalculatePoints ( )
finalprivatevirtual

Reimplemented from Nektar::LibUtilities::Points< NekDouble >.

Definition at line 44 of file NodalTetSPI.cpp.

45{
46 // Allocate the storage for points
47 size_t numPoints = GetNumPoints();
48
49 for (size_t i = 0; i < 3; i++)
50 {
51 m_points[i] = Array<OneD, DataType>(NodalTetSPINPTS[numPoints - 2]);
52 }
53
54 size_t index = 0;
55
56 // initialize values
57 for (size_t i = 0; i < numPoints - 2; ++i)
58 {
59 index += NodalTetSPINPTS[i];
60 }
61
62 for (size_t i = 0; i < NodalTetSPINPTS[numPoints - 2]; i++)
63 {
64 m_points[0][i] = NodalTetSPIData[index][0];
65 m_points[1][i] = NodalTetSPIData[index][1];
66 m_points[2][i] = NodalTetSPIData[index][2];
67 index++;
68 }
69}
Array< OneD, DataType > m_points[3]
Storage for the point locations, allowing for up to a 3D points storage.
Definition: Points.h:356
static const NekDouble NodalTetSPIData[][4]
static const size_t NodalTetSPINPTS[NodalTetSPIAvailable]

References Nektar::LibUtilities::Points< NekDouble >::GetNumPoints(), Nektar::LibUtilities::Points< NekDouble >::m_points, Nektar::LibUtilities::NodalTetSPIData, and Nektar::LibUtilities::NodalTetSPINPTS.

◆ v_CalculateWeights()

void Nektar::LibUtilities::NodalTetSPI::v_CalculateWeights ( )
finalprivatevirtual

Reimplemented from Nektar::LibUtilities::Points< NekDouble >.

Definition at line 71 of file NodalTetSPI.cpp.

72{
73 size_t numPoints = GetNumPoints();
74
75 m_weights = Array<OneD, DataType>(NodalTetSPINPTS[numPoints - 2]);
76
77 size_t index = 0;
78
79 // initialize values
80 for (size_t i = 0; i < numPoints - 2; ++i)
81 {
82 index += NodalTetSPINPTS[i];
83 }
84
85 for (size_t i = 0; i < NodalTetSPINPTS[numPoints - 2]; i++)
86 {
87 m_weights[i] = NodalTetSPIData[index][3];
88 index++;
89 }
90}
Array< OneD, DataType > m_weights
Quadrature weights for the weights.
Definition: Points.h:358

References Nektar::LibUtilities::Points< NekDouble >::GetNumPoints(), Nektar::LibUtilities::Points< NekDouble >::m_weights, Nektar::LibUtilities::NodalTetSPIData, and Nektar::LibUtilities::NodalTetSPINPTS.

Member Data Documentation

◆ initPointsManager

bool Nektar::LibUtilities::NodalTetSPI::initPointsManager
staticprivate
Initial value:
bool RegisterCreator(const KeyType &key, const CreateFuncType &createFunc)
Register the given function and associate it with the key. The return value is just to facilitate cal...
Definition: NekManager.hpp:168
static std::shared_ptr< PointsBaseType > Create(const PointsKey &key)
Definition: NodalTetSPI.cpp:96
PointsManagerT & PointsManager(void)
@ eNodalTetSPI
3D Nodal Symmetric positive internal tet (Whitherden, Vincent)
Definition: PointsType.h:90

Definition at line 60 of file NodalTetSPI.h.