Nektar++
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
Public Member Functions | Static Public Member Functions | Private Member Functions | Private Attributes | List of all members
Nektar::LibUtilities::NodalHexElec Class Reference

#include <NodalHexElec.h>

Inheritance diagram for Nektar::LibUtilities::NodalHexElec:
Inheritance graph
[legend]
Collaboration diagram for Nektar::LibUtilities::NodalHexElec:
Collaboration graph
[legend]

Public Member Functions

virtual ~NodalHexElec ()
 
 NodalHexElec (const PointsKey &key)
 
- Public Member Functions inherited from Nektar::LibUtilities::Points< NekDouble >
virtual ~Points ()
 
virtual void Initialize (void)
 
unsigned int GetPointsDim () const
 
unsigned int GetNumPoints () const
 
unsigned int 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
 
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
 
virtual const MatrixSharedPtrType GetI (const PointsKey &pkey)
 
virtual const MatrixSharedPtrType GetI (const Array< OneD, const DataType > &x)
 
virtual const MatrixSharedPtrType GetI (unsigned int numpoints, const Array< OneD, const DataType > &x)
 
virtual const MatrixSharedPtrType GetI (const Array< OneD, const DataType > &x, const Array< OneD, const DataType > &y)
 
virtual const MatrixSharedPtrType GetI (const Array< OneD, const DataType > &x, const Array< OneD, const DataType > &y, const Array< OneD, const DataType > &z)
 
virtual const MatrixSharedPtrType GetGalerkinProjection (const PointsKey &pkey)
 

Static Public Member Functions

static boost::shared_ptr
< PointsBaseType
Create (const PointsKey &key)
 

Private Member Functions

 NodalHexElec ()
 
void CalculatePoints ()
 
void CalculateWeights ()
 
void CalculateDerivMatrix ()
 

Private Attributes

Array< OneD, NekDoublem_e0
 1D GLL points. More...
 
Array< OneD, NekDoublem_ew
 1D GLL weights. More...
 

Additional Inherited Members

- Public Types inherited from Nektar::LibUtilities::Points< NekDouble >
typedef NekDouble DataType
 
typedef boost::shared_ptr
< NekMatrix< DataType > > 
MatrixSharedPtrType
 
- Protected Member Functions inherited from Nektar::LibUtilities::Points< NekDouble >
 Points (const PointsKey &key)
 
- Protected Attributes inherited from Nektar::LibUtilities::Points< NekDouble >
PointsKey m_pointsKey
 
Array< OneD, DataTypem_points [3]
 
Array< OneD, DataTypem_weights
 
MatrixSharedPtrType m_derivmatrix [3]
 
NekManager< PointsKey,
NekMatrix< DataType >
, PointsKey::opLess
m_InterpManager
 
NekManager< PointsKey,
NekMatrix< DataType >
, PointsKey::opLess
m_GalerkinProjectionManager
 

Detailed Description

Definition at line 51 of file NodalHexElec.h.

Constructor & Destructor Documentation

virtual Nektar::LibUtilities::NodalHexElec::~NodalHexElec ( )
inlinevirtual

Definition at line 54 of file NodalHexElec.h.

55  {
56  }
Nektar::LibUtilities::NodalHexElec::NodalHexElec ( const PointsKey key)
inline

Definition at line 61 of file NodalHexElec.h.

61  : PointsBaseType(key)
62  {
63  }
Points< NekDouble > PointsBaseType
Nektar::LibUtilities::NodalHexElec::NodalHexElec ( )
inlineprivate

Definition at line 66 of file NodalHexElec.h.

67  {
68  }
static const PointsKey NullPointsKey(0, eNoPointsType)
Points< NekDouble > PointsBaseType

Member Function Documentation

void Nektar::LibUtilities::NodalHexElec::CalculateDerivMatrix ( )
privatevirtual

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

Definition at line 93 of file NodalHexElec.cpp.

94 {
95 }
void Nektar::LibUtilities::NodalHexElec::CalculatePoints ( )
privatevirtual

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

Definition at line 47 of file NodalHexElec.cpp.

References Nektar::LibUtilities::eGaussLobattoLegendre, Nektar::LibUtilities::Points< NekDouble >::GetNumPoints(), m_e0, m_ew, Nektar::LibUtilities::Points< NekDouble >::m_points, and Nektar::LibUtilities::PointsManager().

48 {
49  // Allocate the storage for points
50  unsigned int numPoints = GetNumPoints();
51 
52  PointsKey e(numPoints, eGaussLobattoLegendre);
53  PointsManager()[e]->GetPoints(m_e0);
54  m_ew = PointsManager()[e]->GetW();
55 
56  for (int i = 0; i < 3; i++)
57  {
58  m_points[i] = Array<OneD, DataType>(numPoints * numPoints * numPoints);
59  }
60 
61  for (int k = 0, ct = 0; k < numPoints; k++)
62  {
63  for (int j = 0; j < numPoints; j++)
64  {
65  for (int i = 0; i < numPoints; i++, ct++)
66  {
67  m_points[0][ct] = m_e0[i];
68  m_points[1][ct] = m_e0[j];
69  m_points[2][ct] = m_e0[k];
70  }
71  }
72  }
73 }
Array< OneD, DataType > m_points[3]
Definition: Points.h:371
Array< OneD, NekDouble > m_e0
1D GLL points.
Definition: NodalHexElec.h:71
Array< OneD, NekDouble > m_ew
1D GLL weights.
Definition: NodalHexElec.h:73
unsigned int GetNumPoints() const
Definition: Points.h:268
PointsManagerT & PointsManager(void)
1D Gauss-Lobatto-Legendre quadrature points
Definition: PointsType.h:52
void Nektar::LibUtilities::NodalHexElec::CalculateWeights ( )
privatevirtual

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

Definition at line 75 of file NodalHexElec.cpp.

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

76 {
77  unsigned int numPoints = GetNumPoints();
78 
79  m_weights = Array<OneD, DataType>(numPoints * numPoints * numPoints);
80 
81  for (int k = 0, ct = 0; k < numPoints; k++)
82  {
83  for (int j = 0; j < numPoints; j++)
84  {
85  for (int i = 0; i < numPoints; i++, ct++)
86  {
87  m_weights[ct] = m_ew[i] * m_ew[j] * m_ew[k];
88  }
89  }
90  }
91 }
Array< OneD, NekDouble > m_ew
1D GLL weights.
Definition: NodalHexElec.h:73
unsigned int GetNumPoints() const
Definition: Points.h:268
Array< OneD, DataType > m_weights
Definition: Points.h:372
boost::shared_ptr< PointsBaseType > Nektar::LibUtilities::NodalHexElec::Create ( const PointsKey key)
static

Definition at line 97 of file NodalHexElec.cpp.

98 {
99  boost::shared_ptr<PointsBaseType> returnval(
100  MemoryManager<NodalHexElec>::AllocateSharedPtr(key));
101  returnval->Initialize();
102  return returnval;
103 }

Member Data Documentation

Array<OneD, NekDouble> Nektar::LibUtilities::NodalHexElec::m_e0
private

1D GLL points.

Definition at line 71 of file NodalHexElec.h.

Referenced by CalculatePoints().

Array<OneD, NekDouble> Nektar::LibUtilities::NodalHexElec::m_ew
private

1D GLL weights.

Definition at line 73 of file NodalHexElec.h.

Referenced by CalculatePoints(), and CalculateWeights().