Nektar++
|
#include <GaussPoints.h>
Public Member Functions | |
~GaussPoints () override | |
std::shared_ptr< NekMatrix< NekDouble > > | CreateMatrix (const PointsKey &pkey) |
std::shared_ptr< NekMatrix< NekDouble > > | CreateGPMatrix (const PointsKey &pkey) |
GaussPoints (const PointsKey &pkey) | |
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 MatrixSharedPtrType & | GetD (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< Points< NekDouble > > | Create (const PointsKey &pkey) |
Protected Member Functions | |
const std::shared_ptr< NekMatrix< NekDouble > > | v_GetI (const PointsKey &pkey) override |
const std::shared_ptr< NekMatrix< NekDouble > > | v_GetI (const Array< OneD, const NekDouble > &x) override |
const std::shared_ptr< NekMatrix< NekDouble > > | v_GetI (size_t numpoints, const Array< OneD, const NekDouble > &x) override |
const std::shared_ptr< NekMatrix< NekDouble > > | v_GetGalerkinProjection (const PointsKey &pkey) override |
Protected Member Functions inherited from Nektar::LibUtilities::Points< NekDouble > | |
virtual void | v_Initialize (void) |
virtual void | v_CalculatePoints () |
virtual void | v_CalculateWeights () |
Private Member Functions | |
GaussPoints ()=delete | |
GaussPoints (const GaussPoints &points)=delete | |
void | v_CalculatePoints () final |
void | v_CalculateWeights () final |
void | v_CalculateDerivMatrix () final |
void | CalculateInterpMatrix (size_t npts, const Array< OneD, const NekDouble > &xpoints, Array< OneD, NekDouble > &interp) |
std::shared_ptr< NekMatrix< NekDouble > > | CalculateGalerkinProjectionMatrix (const PointsKey &pkey) |
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 Attributes inherited from Nektar::LibUtilities::Points< NekDouble > | |
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 42 of file GaussPoints.h.
|
inlineoverride |
Definition at line 45 of file GaussPoints.h.
|
inline |
Definition at line 58 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.
|
privatedelete |
|
privatedelete |
|
private |
Definition at line 425 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 264 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(), Polylib::laginterp(), Nektar::LibUtilities::Points< NekDouble >::m_points, Nektar::LibUtilities::Points< NekDouble >::m_pointsKey, and NEKERROR.
Referenced by v_GetI().
|
static |
Definition at line 353 of file GaussPoints.cpp.
std::shared_ptr< NekMatrix< NekDouble > > Nektar::LibUtilities::GaussPoints::CreateGPMatrix | ( | const PointsKey & | pkey | ) |
Definition at line 415 of file GaussPoints.cpp.
References CalculateGalerkinProjectionMatrix().
Referenced by GaussPoints().
std::shared_ptr< NekMatrix< NekDouble > > Nektar::LibUtilities::GaussPoints::CreateMatrix | ( | const PointsKey & | pkey | ) |
Definition at line 363 of file GaussPoints.cpp.
References Nektar::LibUtilities::Points< NekDouble >::GetI(), Nektar::LibUtilities::PointsKey::GetNumPoints(), and Nektar::LibUtilities::PointsManager().
Referenced by GaussPoints().
|
finalprivate |
Definition at line 176 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(), Polylib::laginterpderiv(), Nektar::LibUtilities::Points< NekDouble >::m_derivmatrix, Nektar::LibUtilities::Points< NekDouble >::m_points, Nektar::LibUtilities::Points< NekDouble >::m_pointsKey, and NEKERROR.
|
finalprivatevirtual |
Reimplemented from Nektar::LibUtilities::Points< NekDouble >.
Definition at line 75 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().
|
finalprivatevirtual |
Reimplemented from Nektar::LibUtilities::Points< NekDouble >.
Definition at line 171 of file GaussPoints.cpp.
|
overrideprotected |
Definition at line 409 of file GaussPoints.cpp.
References Nektar::LibUtilities::Points< NekDouble >::m_GalerkinProjectionManager.
|
overrideprotected |
Definition at line 384 of file GaussPoints.cpp.
References Nektar::LibUtilities::Points< NekDouble >::GetI().
|
overrideprotected |
Definition at line 375 of file GaussPoints.cpp.
References ASSERTL0, Nektar::LibUtilities::PointsKey::GetPointsDim(), and Nektar::LibUtilities::Points< NekDouble >::m_InterpManager.
|
overrideprotected |
Definition at line 393 of file GaussPoints.cpp.
References CalculateInterpMatrix(), and Nektar::LibUtilities::Points< NekDouble >::GetNumPoints().
|
staticprivate |
Definition at line 194 of file GaussPoints.h.