Nektar++
|
#include <GaussPoints.h>
Public Member Functions | |
virtual | ~GaussPoints () |
std::shared_ptr< NekMatrix< NekDouble > > | CreateMatrix (const PointsKey &pkey) |
std::shared_ptr< NekMatrix< NekDouble > > | CreateGPMatrix (const PointsKey &pkey) |
GaussPoints (const PointsKey &pkey) | |
![]() | |
virtual | ~Points () |
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 |
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 MatrixSharedPtrType & | GetD (Direction dir=xDir) const |
const MatrixSharedPtrType | GetI (const PointsKey &key) |
const MatrixSharedPtrType | GetI (const Array< OneD, const DataType > &x) |
const MatrixSharedPtrType | GetI (unsigned int 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< Points< NekDouble > > | Create (const PointsKey &pkey) |
Protected Member Functions | |
virtual const std::shared_ptr< NekMatrix< NekDouble > > | v_GetI (const PointsKey &pkey) override |
virtual const std::shared_ptr< NekMatrix< NekDouble > > | v_GetI (const Array< OneD, const NekDouble > &x) override |
virtual const std::shared_ptr< NekMatrix< NekDouble > > | v_GetI (unsigned int numpoints, const Array< OneD, const NekDouble > &x) override |
virtual const std::shared_ptr< NekMatrix< NekDouble > > | v_GetGalerkinProjection (const PointsKey &pkey) override |
![]() | |
virtual void | v_Initialize (void) |
virtual void | v_CalculateBaryWeights () |
This function calculates the barycentric weights used for enhanced interpolation speed. More... | |
Points (const PointsKey &key) | |
virtual const MatrixSharedPtrType | v_GetI (const Array< OneD, const DataType > &x, const Array< OneD, const DataType > &y) |
virtual const MatrixSharedPtrType | v_GetI (const Array< OneD, const DataType > &x, const Array< OneD, const DataType > &y, const Array< OneD, const DataType > &z) |
Private Member Functions | |
GaussPoints () | |
These should not be called. All creation is done using the constructor requiring the key, declared above. More... | |
GaussPoints (const GaussPoints &points) | |
virtual void | v_CalculatePoints () override |
virtual void | v_CalculateWeights () override |
virtual void | v_CalculateDerivMatrix () override |
void | CalculateInterpMatrix (unsigned int npts, const Array< OneD, const NekDouble > &xpoints, Array< OneD, NekDouble > &interp) |
std::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 More... | |
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) |
Static Private Attributes | |
static bool | initPointsManager [] |
Additional Inherited Members | |
![]() | |
typedef NekDouble | DataType |
typedef std::shared_ptr< NekMatrix< DataType > > | MatrixSharedPtrType |
![]() | |
PointsKey | m_pointsKey |
Points type for this points distributions. More... | |
Array< OneD, DataType > | m_points [3] |
Storage for the point locations, allowing for up to a 3D points storage. More... | |
Array< OneD, DataType > | m_weights |
Quadrature weights for the weights. More... | |
Array< OneD, DataType > | m_bcweights |
Barycentric weights. More... | |
MatrixSharedPtrType | m_derivmatrix [3] |
Derivative matrices. More... | |
NekManager< PointsKey, NekMatrix< DataType >, PointsKey::opLess > | m_InterpManager |
NekManager< PointsKey, NekMatrix< DataType >, PointsKey::opLess > | m_GalerkinProjectionManager |
Definition at line 47 of file GaussPoints.h.
|
inlinevirtual |
Definition at line 50 of file GaussPoints.h.
|
inline |
Definition at line 63 of file GaussPoints.h.
References CreateGPMatrix(), CreateMatrix(), Nektar::LibUtilities::eBoundaryLayerPoints, Nektar::LibUtilities::eBoundaryLayerPointsRev, Nektar::LibUtilities::eFourierEvenlySpaced, Nektar::LibUtilities::eGaussGaussChebyshev, Nektar::LibUtilities::eGaussGaussLegendre, Nektar::LibUtilities::eGaussLobattoChebyshev, Nektar::LibUtilities::eGaussLobattoKronrodLegendre, Nektar::LibUtilities::eGaussLobattoLegendre, Nektar::LibUtilities::eGaussRadauKronrodMAlpha1Beta0, Nektar::LibUtilities::eGaussRadauKronrodMLegendre, Nektar::LibUtilities::eGaussRadauMAlpha0Beta1, Nektar::LibUtilities::eGaussRadauMChebyshev, Nektar::LibUtilities::eGaussRadauMLegendre, Nektar::LibUtilities::eGaussRadauPChebyshev, Nektar::LibUtilities::eGaussRadauPLegendre, Nektar::LibUtilities::ePolyEvenlySpaced, Nektar::LibUtilities::Points< NekDouble >::m_GalerkinProjectionManager, and Nektar::LibUtilities::Points< NekDouble >::m_InterpManager.
|
private |
These should not be called. All creation is done using the constructor requiring the key, declared above.
|
private |
|
private |
Definition at line 491 of file GaussPoints.cpp.
References Nektar::LibUtilities::Points< NekDouble >::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 272 of file GaussPoints.cpp.
References Nektar::Array< OneD, DataType >::data(), Nektar::ErrorUtil::efatal, Nektar::LibUtilities::eGaussGaussChebyshev, Nektar::LibUtilities::eGaussGaussLegendre, Nektar::LibUtilities::eGaussLobattoChebyshev, Nektar::LibUtilities::eGaussLobattoKronrodLegendre, Nektar::LibUtilities::eGaussLobattoLegendre, Nektar::LibUtilities::eGaussRadauKronrodMAlpha1Beta0, Nektar::LibUtilities::eGaussRadauKronrodMLegendre, Nektar::LibUtilities::eGaussRadauMAlpha0Beta1, 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 NEKERROR.
Referenced by v_GetI().
|
static |
Definition at line 360 of file GaussPoints.cpp.
std::shared_ptr< NekMatrix< NekDouble > > Nektar::LibUtilities::GaussPoints::CreateGPMatrix | ( | const PointsKey & | pkey | ) |
Definition at line 481 of file GaussPoints.cpp.
References CalculateGalerkinProjectionMatrix().
Referenced by GaussPoints().
std::shared_ptr< NekMatrix< NekDouble > > Nektar::LibUtilities::GaussPoints::CreateMatrix | ( | const PointsKey & | pkey | ) |
Definition at line 370 of file GaussPoints.cpp.
References Nektar::LibUtilities::Points< NekDouble >::GetI(), Nektar::LibUtilities::PointsKey::GetNumPoints(), and Nektar::LibUtilities::PointsManager().
Referenced by GaussPoints().
|
private |
functions used by the Kronrod points
Definition at line 416 of file GaussPoints.cpp.
References LagrangePoly().
|
private |
Definition at line 429 of file GaussPoints.cpp.
Referenced by CalculateInterpMatrix(), and LagrangeInterpolant().
|
private |
|
overrideprivatevirtual |
Reimplemented from Nektar::LibUtilities::Points< NekDouble >.
Definition at line 184 of file GaussPoints.cpp.
References CellMLToNektar.pycml::copy(), Polylib::Dgj(), Polylib::Dglj(), Polylib::Dgrjm(), Polylib::Dgrjp(), Nektar::ErrorUtil::efatal, Nektar::LibUtilities::eGaussGaussChebyshev, Nektar::LibUtilities::eGaussGaussLegendre, Nektar::LibUtilities::eGaussLobattoChebyshev, Nektar::LibUtilities::eGaussLobattoKronrodLegendre, Nektar::LibUtilities::eGaussLobattoLegendre, Nektar::LibUtilities::eGaussRadauKronrodMAlpha1Beta0, Nektar::LibUtilities::eGaussRadauKronrodMLegendre, Nektar::LibUtilities::eGaussRadauMAlpha0Beta1, 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, Nektar::LibUtilities::Points< NekDouble >::m_pointsKey, NEKERROR, and Nektar::LibUtilities::Points< NekDouble >::v_CalculateDerivMatrix().
|
overrideprivatevirtual |
Reimplemented from Nektar::LibUtilities::Points< NekDouble >.
Definition at line 83 of file GaussPoints.cpp.
References Nektar::Array< OneD, DataType >::data(), Nektar::ErrorUtil::efatal, Nektar::LibUtilities::eGaussGaussChebyshev, Nektar::LibUtilities::eGaussGaussLegendre, Nektar::LibUtilities::eGaussLobattoChebyshev, Nektar::LibUtilities::eGaussLobattoKronrodLegendre, Nektar::LibUtilities::eGaussLobattoLegendre, Nektar::LibUtilities::eGaussRadauKronrodMAlpha1Beta0, Nektar::LibUtilities::eGaussRadauKronrodMLegendre, Nektar::LibUtilities::eGaussRadauMAlpha0Beta1, 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, NEKERROR, Nektar::LibUtilities::Points< NekDouble >::v_CalculatePoints(), Nektar::LibUtilities::Points< NekDouble >::v_CalculateWeights(), Polylib::zwgj(), Polylib::zwgk(), Polylib::zwglj(), Polylib::zwgrjm(), Polylib::zwgrjp(), Polylib::zwlk(), and Polylib::zwrk().
|
overrideprivatevirtual |
Reimplemented from Nektar::LibUtilities::Points< NekDouble >.
Definition at line 179 of file GaussPoints.cpp.
|
overrideprotectedvirtual |
Reimplemented from Nektar::LibUtilities::Points< NekDouble >.
Definition at line 475 of file GaussPoints.cpp.
References Nektar::LibUtilities::Points< NekDouble >::m_GalerkinProjectionManager.
|
overrideprotectedvirtual |
Reimplemented from Nektar::LibUtilities::Points< NekDouble >.
Definition at line 391 of file GaussPoints.cpp.
References Nektar::LibUtilities::Points< NekDouble >::GetI().
|
overrideprotectedvirtual |
Reimplemented from Nektar::LibUtilities::Points< NekDouble >.
Definition at line 382 of file GaussPoints.cpp.
References ASSERTL0, Nektar::LibUtilities::PointsKey::GetPointsDim(), and Nektar::LibUtilities::Points< NekDouble >::m_InterpManager.
|
overrideprotectedvirtual |
Reimplemented from Nektar::LibUtilities::Points< NekDouble >.
Definition at line 400 of file GaussPoints.cpp.
References CalculateInterpMatrix(), and Nektar::LibUtilities::Points< NekDouble >::GetNumPoints().
|
staticprivate |
Definition at line 199 of file GaussPoints.h.