Nektar++
|
Describes the specification for a Basis. More...
#include <Basis.h>
Classes | |
struct | opLess |
Public Member Functions | |
BasisKey (const BasisType btype, const int nummodes, const PointsKey pkey) | |
Constructor. | |
BasisKey (const BasisKey &B) | |
Copy constructor. | |
~BasisKey () | |
Destructor. | |
int | GetNumModes () const |
Returns the order of the basis. | |
int | GetTotNumModes () const |
int | GetNumPoints () const |
Return points order at which basis is defined. | |
int | GetTotNumPoints () const |
BasisType | GetBasisType () const |
Return type of expansion basis. | |
PointsKey | GetPointsKey () const |
Return distribution of points. | |
PointsType | GetPointsType () const |
Return type of quadrature. | |
bool | SamePoints (const BasisKey &x) const |
Determine if quadrature of expansion x matches this. | |
bool | SameExp (const BasisKey &x) const |
Determine if basis expansion x matches this. | |
bool | ExactIprodInt () const |
Determine if basis has exact integration for inner product. | |
bool | Collocation () const |
Determine if basis has collocation properties. |
Protected Attributes | |
int | m_nummodes |
Expansion order. | |
BasisType | m_basistype |
Expansion type. | |
PointsKey | m_pointsKey |
Points specification. |
Private Member Functions | |
BasisKey () |
Friends | |
bool | operator== (const BasisKey &x, const BasisKey &y) |
Overloaded Operators. | |
bool | operator== (const BasisKey *x, const BasisKey &y) |
bool | operator== (const BasisKey &x, const BasisKey *y) |
bool | operator!= (const BasisKey &x, const BasisKey &y) |
bool | operator!= (const BasisKey *x, const BasisKey &y) |
bool | operator!= (const BasisKey &x, const BasisKey *y) |
bool | operator< (const BasisKey &lhs, const BasisKey &rhs) |
bool | opLess::operator() (const BasisKey &lhs, const BasisKey &rhs) const |
|
inline |
Copy constructor.
|
inline |
|
inlineprivate |
Definition at line 193 of file Basis.h.
References ErrorUtil::efatal, and NEKERROR.
bool Nektar::LibUtilities::BasisKey::Collocation | ( | ) | const |
Determine if basis has collocation properties.
Determine if basis has collocation property, i.e. GLL_Lagrange with Lobatto integration of appropriate order, Gauss_Lagrange with Gauss integration of appropriate order.
Definition at line 692 of file Basis.cpp.
References Nektar::LibUtilities::eGauss_Lagrange, Nektar::LibUtilities::eGaussGaussLegendre, Nektar::LibUtilities::eGaussLobattoLegendre, Nektar::LibUtilities::eGLL_Lagrange, GetNumModes(), GetNumPoints(), GetPointsType(), and m_basistype.
Referenced by Nektar::LibUtilities::Basis::Collocation().
bool Nektar::LibUtilities::BasisKey::ExactIprodInt | ( | void | ) | const |
Determine if basis has exact integration for inner product.
Determine if polynomial basis can be eactly integrated with itself.
Definition at line 665 of file Basis.cpp.
References Nektar::LibUtilities::eGaussGaussLegendre, Nektar::LibUtilities::eGaussKronrodLegendre, Nektar::LibUtilities::eGaussLobattoKronrodLegendre, Nektar::LibUtilities::eGaussLobattoLegendre, Nektar::LibUtilities::eGaussRadauKronrodMLegendre, Nektar::LibUtilities::eGaussRadauMLegendre, Nektar::LibUtilities::eGaussRadauPLegendre, GetNumModes(), GetNumPoints(), and GetPointsType().
Referenced by Nektar::LibUtilities::Basis::ExactIprodInt().
|
inline |
Return type of expansion basis.
Definition at line 139 of file Basis.h.
References m_basistype.
Referenced by Nektar::LibUtilities::Basis::CalculateInterpMatrix(), Nektar::MultiRegions::ExpList1D::ExpList1D(), Nektar::MultiRegions::ExpList2D::ExpList2D(), Nektar::MultiRegions::ExpList3D::ExpList3D(), Nektar::CoupledLinearNS::GenPressureExp(), Nektar::LibUtilities::Basis::GetBasisType(), Nektar::LibUtilities::InterpCoeff1D(), Nektar::LibUtilities::InterpCoeff2D(), main(), Nektar::LibUtilities::operator<<(), Nektar::SpatialDomains::MeshGraph::SetExpansionsToEvenlySpacedPoints(), and Nektar::LibUtilities::Transposition::Transposition().
|
inline |
Returns the order of the basis.
Definition at line 84 of file Basis.h.
References m_nummodes.
Referenced by Nektar::LibUtilities::Basis::CalculateInterpMatrix(), Collocation(), ExactIprodInt(), Nektar::MultiRegions::ExpList1D::ExpList1D(), Nektar::MultiRegions::ExpList2D::ExpList2D(), Nektar::MultiRegions::ExpList3D::ExpList3D(), Nektar::LibUtilities::Basis::GenBasis(), Nektar::CoupledLinearNS::GenPressureExp(), Nektar::LibUtilities::Basis::GetNumModes(), Nektar::LibUtilities::InterpCoeff1D(), Nektar::LibUtilities::InterpCoeff2D(), Nektar::LibUtilities::InterpCoeff3D(), main(), Nektar::LibUtilities::operator<<(), Nektar::LibUtilities::operator==(), Nektar::SpatialDomains::MeshGraph::SetExpansionsToEvenlySpacedPoints(), Nektar::StdRegions::StdNodalPrismExp::StdNodalPrismExp(), Nektar::StdRegions::StdNodalTetExp::StdNodalTetExp(), Nektar::StdRegions::StdNodalTriExp::StdNodalTriExp(), Nektar::StdRegions::StdPrismExp::StdPrismExp(), Nektar::StdRegions::StdPyrExp::StdPyrExp(), Nektar::StdRegions::StdTetExp::StdTetExp(), Nektar::StdRegions::StdTriExp::StdTriExp(), and Nektar::LibUtilities::Transposition::Transposition().
|
inline |
Return points order at which basis is defined.
Definition at line 128 of file Basis.h.
References Nektar::LibUtilities::PointsKey::GetNumPoints(), and m_pointsKey.
Referenced by Collocation(), ExactIprodInt(), Nektar::MultiRegions::ExpList1D::ExpList1D(), Nektar::MultiRegions::ExpList2D::ExpList2D(), Nektar::MultiRegions::ExpList3D::ExpList3D(), Nektar::LibUtilities::Basis::GetNumPoints(), and Nektar::LibUtilities::Transposition::Transposition().
|
inline |
Return distribution of points.
Definition at line 145 of file Basis.h.
References m_pointsKey.
Referenced by Nektar::MultiRegions::ExpList2D::ExpList2D(), Nektar::LibUtilities::Basis::GenBasis(), Nektar::CoupledLinearNS::GenPressureExp(), Nektar::LibUtilities::Basis::GetI(), Nektar::LibUtilities::Basis::GetPointsKey(), Nektar::LibUtilities::Interp1D(), Nektar::LibUtilities::Interp2D(), Nektar::LibUtilities::Interp3D(), main(), Nektar::LibUtilities::operator<(), Nektar::LibUtilities::operator<<(), Nektar::LibUtilities::operator==(), Nektar::LibUtilities::PhysGalerkinProject1D(), Nektar::LibUtilities::PhysGalerkinProject2D(), Nektar::LibUtilities::PhysGalerkinProject3D(), Nektar::SpatialDomains::QuadGeom::QuadGeom(), and Nektar::SpatialDomains::TriGeom::TriGeom().
|
inline |
Return type of quadrature.
Definition at line 151 of file Basis.h.
References Nektar::LibUtilities::PointsKey::GetPointsType(), and m_pointsKey.
Referenced by Collocation(), ExactIprodInt(), Nektar::MultiRegions::ExpList1D::ExpList1D(), Nektar::MultiRegions::ExpList2D::ExpList2D(), and Nektar::LibUtilities::Basis::GetPointsType().
|
inline |
Definition at line 90 of file Basis.h.
References Nektar::LibUtilities::eChebyshev, ErrorUtil::efatal, Nektar::LibUtilities::eFourier, Nektar::LibUtilities::eFourierHalfModeIm, Nektar::LibUtilities::eFourierHalfModeRe, Nektar::LibUtilities::eFourierSingleMode, Nektar::LibUtilities::eGauss_Lagrange, Nektar::LibUtilities::eGLL_Lagrange, Nektar::LibUtilities::eLegendre, Nektar::LibUtilities::eModified_A, Nektar::LibUtilities::eModified_B, Nektar::LibUtilities::eModified_C, Nektar::LibUtilities::eMonomial, Nektar::LibUtilities::eOrtho_A, Nektar::LibUtilities::eOrtho_B, Nektar::LibUtilities::eOrtho_C, m_basistype, m_nummodes, and NEKERROR.
Referenced by Nektar::LibUtilities::Basis::GetTotNumModes().
|
inline |
Definition at line 133 of file Basis.h.
References Nektar::LibUtilities::PointsKey::GetTotNumPoints(), and m_pointsKey.
Referenced by Nektar::LibUtilities::Basis::GetTotNumPoints().
|
inline |
Determine if basis expansion x matches this.
Definition at line 163 of file Basis.h.
References m_basistype, and m_nummodes.
|
inline |
Determine if quadrature of expansion x matches this.
Definition at line 157 of file Basis.h.
References m_pointsKey.
Definition at line 49 of file Basis.cpp.
|
protected |
Expansion type.
Definition at line 189 of file Basis.h.
Referenced by Collocation(), GetBasisType(), GetTotNumModes(), Nektar::LibUtilities::BasisKey::opLess::operator()(), Nektar::LibUtilities::operator<(), Nektar::LibUtilities::operator==(), and SameExp().
|
protected |
Expansion order.
Definition at line 188 of file Basis.h.
Referenced by GetNumModes(), GetTotNumModes(), Nektar::LibUtilities::operator<(), and SameExp().
|
protected |
Points specification.
Definition at line 190 of file Basis.h.
Referenced by GetNumPoints(), GetPointsKey(), GetPointsType(), GetTotNumPoints(), and SamePoints().