Nektar++
|
#include <GaussPoints.h>
Public Member Functions | |
virtual | ~GaussPoints () |
boost::shared_ptr< NekMatrix < NekDouble > > | CreateMatrix (const PointsKey &pkey) |
const boost::shared_ptr < NekMatrix< NekDouble > > | GetI (const PointsKey &pkey) |
const boost::shared_ptr < NekMatrix< NekDouble > > | GetI (const Array< OneD, const NekDouble > &x) |
const boost::shared_ptr < NekMatrix< NekDouble > > | GetI (unsigned int numpoints, const Array< OneD, const NekDouble > &x) |
boost::shared_ptr< NekMatrix < NekDouble > > | CreateGPMatrix (const PointsKey &pkey) |
const boost::shared_ptr < NekMatrix< NekDouble > > | GetGalerkinProjection (const PointsKey &pkey) |
GaussPoints (const PointsKey &pkey) | |
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 MatrixSharedPtrType & | GetD (Direction dir=xDir) const |
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) |
Static Public Member Functions | |
static boost::shared_ptr < Points< NekDouble > > | Create (const PointsKey &pkey) |
Private Member Functions | |
GaussPoints () | |
These should not be called. All creation is done using the constructor requiring the key, declared above. | |
GaussPoints (const GaussPoints &points) | |
void | CalculatePoints () |
void | CalculateWeights () |
void | CalculateDerivMatrix () |
void | CalculateInterpMatrix (unsigned int npts, const Array< OneD, const NekDouble > &xpoints, Array< OneD, NekDouble > &interp) |
boost::shared_ptr< NekMatrix < NekDouble > > | CalculateGalerkinProjectionMatrix (const PointsKey &pkey) |
NekDouble | LagrangeInterpolant (NekDouble x, int npts, const Array< OneD, const NekDouble > &xpts, const Array< OneD, const NekDouble > &funcvals) |
functions used by the Kronrod points | |
NekDouble | LagrangePoly (NekDouble x, int pt, int npts, const Array< OneD, const NekDouble > &xpts) |
NekDouble | LagrangePolyDeriv (NekDouble x, int pt, int npts, const Array< OneD, const NekDouble > &xpts) |
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 > | |
virtual void | CalculatePoints () |
virtual void | CalculateWeights () |
virtual void | CalculateDerivMatrix () |
Points (const PointsKey &key) | |
Protected Attributes inherited from Nektar::LibUtilities::Points< NekDouble > | |
PointsKey | m_pointsKey |
Array< OneD, DataType > | m_points [3] |
Array< OneD, DataType > | m_weights |
MatrixSharedPtrType | m_derivmatrix [3] |
NekManager< PointsKey, NekMatrix< DataType > , PointsKey::opLess > | m_InterpManager |
NekManager< PointsKey, NekMatrix< DataType > , PointsKey::opLess > | m_GalerkinProjectionManager |
Definition at line 50 of file GaussPoints.h.
|
inlinevirtual |
Definition at line 53 of file GaussPoints.h.
|
inline |
Definition at line 71 of file GaussPoints.h.
References CreateGPMatrix(), CreateMatrix(), Nektar::LibUtilities::eBoundaryLayerPoints, Nektar::LibUtilities::eBoundaryLayerPointsRev, Nektar::LibUtilities::eFourierEvenlySpaced, Nektar::LibUtilities::eGaussGaussChebyshev, Nektar::LibUtilities::eGaussGaussLegendre, Nektar::LibUtilities::eGaussKronrodLegendre, Nektar::LibUtilities::eGaussLobattoChebyshev, Nektar::LibUtilities::eGaussLobattoKronrodLegendre, Nektar::LibUtilities::eGaussLobattoLegendre, Nektar::LibUtilities::eGaussRadauKronrodMAlpha1Beta0, Nektar::LibUtilities::eGaussRadauKronrodMLegendre, Nektar::LibUtilities::eGaussRadauMAlpha0Beta1, Nektar::LibUtilities::eGaussRadauMAlpha0Beta2, Nektar::LibUtilities::eGaussRadauMAlpha1Beta0, Nektar::LibUtilities::eGaussRadauMAlpha2Beta0, Nektar::LibUtilities::eGaussRadauMChebyshev, Nektar::LibUtilities::eGaussRadauMLegendre, Nektar::LibUtilities::eGaussRadauPChebyshev, Nektar::LibUtilities::eGaussRadauPLegendre, Nektar::LibUtilities::ePolyEvenlySpaced, Nektar::LibUtilities::Points< NekDouble >::m_GalerkinProjectionManager, Nektar::LibUtilities::Points< NekDouble >::m_InterpManager, and Nektar::LibUtilities::NekManager< KeyType, ValueT, opLessCreator >::RegisterCreator().
|
private |
These should not be called. All creation is done using the constructor requiring the key, declared above.
|
private |
|
private |
Definition at line 135 of file GaussPoints.cpp.
References ASSERTL0, Polylib::Dgj(), Polylib::Dglj(), Polylib::Dgrjm(), Polylib::Dgrjp(), Nektar::LibUtilities::eGaussGaussChebyshev, Nektar::LibUtilities::eGaussGaussLegendre, Nektar::LibUtilities::eGaussKronrodLegendre, Nektar::LibUtilities::eGaussLobattoChebyshev, Nektar::LibUtilities::eGaussLobattoKronrodLegendre, Nektar::LibUtilities::eGaussLobattoLegendre, Nektar::LibUtilities::eGaussRadauKronrodMAlpha1Beta0, Nektar::LibUtilities::eGaussRadauKronrodMLegendre, Nektar::LibUtilities::eGaussRadauMAlpha0Beta1, Nektar::LibUtilities::eGaussRadauMAlpha0Beta2, Nektar::LibUtilities::eGaussRadauMAlpha1Beta0, Nektar::LibUtilities::eGaussRadauMAlpha2Beta0, Nektar::LibUtilities::eGaussRadauMChebyshev, Nektar::LibUtilities::eGaussRadauMLegendre, Nektar::LibUtilities::eGaussRadauPChebyshev, Nektar::LibUtilities::eGaussRadauPLegendre, Nektar::LibUtilities::PointsKey::GetNumPoints(), Nektar::LibUtilities::PointsKey::GetPointsType(), Nektar::LibUtilities::PointsKey::GetTotNumPoints(), LagrangePolyDeriv(), Nektar::LibUtilities::Points< NekDouble >::m_derivmatrix, Nektar::LibUtilities::Points< NekDouble >::m_points, and Nektar::LibUtilities::Points< NekDouble >::m_pointsKey.
|
private |
Definition at line 409 of file GaussPoints.cpp.
References GetI(), Nektar::LibUtilities::PointsKey::GetNumPoints(), Nektar::LibUtilities::Points< NekDouble >::GetNumPoints(), Nektar::LibUtilities::Points< NekDouble >::m_weights, Nektar::LibUtilities::PointsManager(), Vmath::Smul(), and Vmath::Vmul().
Referenced by CreateGPMatrix().
|
private |
Definition at line 218 of file GaussPoints.cpp.
References ASSERTL0, Nektar::Array< OneD, DataType >::data(), Nektar::LibUtilities::eGaussGaussChebyshev, Nektar::LibUtilities::eGaussGaussLegendre, Nektar::LibUtilities::eGaussKronrodLegendre, Nektar::LibUtilities::eGaussLobattoChebyshev, Nektar::LibUtilities::eGaussLobattoKronrodLegendre, Nektar::LibUtilities::eGaussLobattoLegendre, Nektar::LibUtilities::eGaussRadauKronrodMAlpha1Beta0, Nektar::LibUtilities::eGaussRadauKronrodMLegendre, Nektar::LibUtilities::eGaussRadauMAlpha0Beta1, Nektar::LibUtilities::eGaussRadauMAlpha0Beta2, Nektar::LibUtilities::eGaussRadauMAlpha1Beta0, Nektar::LibUtilities::eGaussRadauMAlpha2Beta0, Nektar::LibUtilities::eGaussRadauMChebyshev, Nektar::LibUtilities::eGaussRadauMLegendre, Nektar::LibUtilities::eGaussRadauPChebyshev, Nektar::LibUtilities::eGaussRadauPLegendre, Nektar::LibUtilities::PointsKey::GetNumPoints(), Nektar::LibUtilities::Points< NekDouble >::GetNumPoints(), Nektar::LibUtilities::PointsKey::GetPointsType(), Polylib::Imgj(), Polylib::Imglj(), Polylib::Imgrjm(), Polylib::Imgrjp(), LagrangePoly(), Nektar::LibUtilities::Points< NekDouble >::m_points, Nektar::LibUtilities::Points< NekDouble >::m_pointsKey, and npts.
Referenced by GetI().
|
private |
Definition at line 51 of file GaussPoints.cpp.
References ASSERTL0, CalculateWeights(), Nektar::Array< OneD, DataType >::data(), Nektar::LibUtilities::eGaussGaussChebyshev, Nektar::LibUtilities::eGaussGaussLegendre, Nektar::LibUtilities::eGaussKronrodLegendre, Nektar::LibUtilities::eGaussLobattoChebyshev, Nektar::LibUtilities::eGaussLobattoKronrodLegendre, Nektar::LibUtilities::eGaussLobattoLegendre, Nektar::LibUtilities::eGaussRadauKronrodMAlpha1Beta0, Nektar::LibUtilities::eGaussRadauKronrodMLegendre, Nektar::LibUtilities::eGaussRadauMAlpha0Beta1, Nektar::LibUtilities::eGaussRadauMAlpha0Beta2, Nektar::LibUtilities::eGaussRadauMAlpha1Beta0, Nektar::LibUtilities::eGaussRadauMAlpha2Beta0, Nektar::LibUtilities::eGaussRadauMChebyshev, Nektar::LibUtilities::eGaussRadauMLegendre, Nektar::LibUtilities::eGaussRadauPChebyshev, Nektar::LibUtilities::eGaussRadauPLegendre, Nektar::LibUtilities::PointsKey::GetNumPoints(), Nektar::LibUtilities::PointsKey::GetPointsType(), Nektar::LibUtilities::Points< NekDouble >::m_points, Nektar::LibUtilities::Points< NekDouble >::m_pointsKey, Nektar::LibUtilities::Points< NekDouble >::m_weights, Polylib::zwgj(), Polylib::zwgk(), Polylib::zwglj(), Polylib::zwgrjm(), Polylib::zwgrjp(), Polylib::zwlk(), and Polylib::zwrk().
|
private |
Definition at line 130 of file GaussPoints.cpp.
Referenced by CalculatePoints().
|
static |
Definition at line 290 of file GaussPoints.cpp.
boost::shared_ptr< NekMatrix< NekDouble > > Nektar::LibUtilities::GaussPoints::CreateGPMatrix | ( | const PointsKey & | pkey | ) |
Definition at line 401 of file GaussPoints.cpp.
References CalculateGalerkinProjectionMatrix().
Referenced by GaussPoints().
boost::shared_ptr< NekMatrix< NekDouble > > Nektar::LibUtilities::GaussPoints::CreateMatrix | ( | const PointsKey & | pkey | ) |
Definition at line 299 of file GaussPoints.cpp.
References GetI(), Nektar::LibUtilities::PointsKey::GetNumPoints(), and Nektar::LibUtilities::PointsManager().
Referenced by GaussPoints().
|
virtual |
Reimplemented from Nektar::LibUtilities::Points< NekDouble >.
Definition at line 396 of file GaussPoints.cpp.
References Nektar::LibUtilities::Points< NekDouble >::m_GalerkinProjectionManager.
|
virtual |
Reimplemented from Nektar::LibUtilities::Points< NekDouble >.
Definition at line 311 of file GaussPoints.cpp.
References ASSERTL0, Nektar::LibUtilities::PointsKey::GetPointsDim(), and Nektar::LibUtilities::Points< NekDouble >::m_InterpManager.
Referenced by CalculateGalerkinProjectionMatrix(), CreateMatrix(), and GetI().
|
virtual |
Reimplemented from Nektar::LibUtilities::Points< NekDouble >.
Definition at line 318 of file GaussPoints.cpp.
References GetI().
|
virtual |
Reimplemented from Nektar::LibUtilities::Points< NekDouble >.
Definition at line 326 of file GaussPoints.cpp.
References CalculateInterpMatrix(), and Nektar::LibUtilities::Points< NekDouble >::GetNumPoints().
|
private |
functions used by the Kronrod points
Definition at line 339 of file GaussPoints.cpp.
References LagrangePoly(), and npts.
|
private |
Definition at line 352 of file GaussPoints.cpp.
References npts.
Referenced by CalculateInterpMatrix(), and LagrangeInterpolant().
|
private |
Definition at line 369 of file GaussPoints.cpp.
References npts.
Referenced by CalculateDerivMatrix().