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::NodalQuadElec Class Reference

#include <NodalQuadElec.h>

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

Public Member Functions

virtual ~NodalQuadElec ()
 
 NodalQuadElec (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

 NodalQuadElec ()
 
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 NodalQuadElec.h.

Constructor & Destructor Documentation

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

Definition at line 54 of file NodalQuadElec.h.

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

Definition at line 61 of file NodalQuadElec.h.

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

Definition at line 66 of file NodalQuadElec.h.

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

Member Function Documentation

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

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

Definition at line 86 of file NodalQuadElec.cpp.

87 {
88 }
void Nektar::LibUtilities::NodalQuadElec::CalculatePoints ( )
privatevirtual

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

Definition at line 47 of file NodalQuadElec.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 < 2; i++)
57  {
58  m_points[i] = Array<OneD, DataType>(numPoints * numPoints);
59  }
60 
61  for (int j = 0, ct = 0; j < numPoints; j++)
62  {
63  for (int i = 0; i < numPoints; i++, ct++)
64  {
65  m_points[0][ct] = m_e0[i];
66  m_points[1][ct] = m_e0[j];
67  }
68  }
69 }
Array< OneD, DataType > m_points[3]
Definition: Points.h:371
unsigned int GetNumPoints() const
Definition: Points.h:268
PointsManagerT & PointsManager(void)
Array< OneD, NekDouble > m_ew
1D GLL weights
Definition: NodalQuadElec.h:73
Array< OneD, NekDouble > m_e0
1D GLL points
Definition: NodalQuadElec.h:71
1D Gauss-Lobatto-Legendre quadrature points
Definition: PointsType.h:52
void Nektar::LibUtilities::NodalQuadElec::CalculateWeights ( )
privatevirtual

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

Definition at line 71 of file NodalQuadElec.cpp.

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

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

Definition at line 90 of file NodalQuadElec.cpp.

91 {
92  boost::shared_ptr<PointsBaseType> returnval(
93  MemoryManager<NodalQuadElec>::AllocateSharedPtr(key));
94  returnval->Initialize();
95  return returnval;
96 }

Member Data Documentation

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

1D GLL points

Definition at line 71 of file NodalQuadElec.h.

Referenced by CalculatePoints().

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

1D GLL weights

Definition at line 73 of file NodalQuadElec.h.

Referenced by CalculatePoints(), and CalculateWeights().