Nektar++
Loading...
Searching...
No Matches
Classes | Typedefs | Enumerations | Functions | Variables
Nektar::StdRegions Namespace Reference

Classes

class  StdExpansion
 The base class for all shapes. More...
 
class  StdExpansion0D
 
class  StdExpansion1D
 
class  StdExpansion2D
 
class  StdExpansion3D
 
struct  StdFacKey
 
class  StdHexExp
 Class representing a hexehedral element in reference space. More...
 
class  StdMatDataCreator
 
class  StdMatKey
 
class  StdMatrixKey
 
class  StdNodalPrismExp
 
class  StdNodalPyrExp
 
class  StdNodalTetExp
 
class  StdNodalTriExp
 
class  StdPointExp
 
class  StdPrismExp
 Class representing a prismatic element in reference space. More...
 
class  StdPyrExp
 
class  StdQuadExp
 
class  StdSegExp
 Class representing a segment element in reference space All interface of this class sits in StdExpansion class. More...
 
class  StdTetExp
 
class  StdTriExp
 
struct  VarCoeffEntry
 Representation of a variable coefficient. More...
 
struct  VarCoeffList
 

Typedefs

typedef std::shared_ptr< StdExpansion > StdExpansionSharedPtr
 
typedef std::vector< StdExpansionSharedPtr > StdExpansionVector
 
typedef std::shared_ptr< StdExpansion0D > StdExpansion0DSharedPtr
 
using vec_t = tinysimd::scalarT< double >
 
typedef std::shared_ptr< StdExpansion1D > StdExpansion1DSharedPtr
 
typedef std::shared_ptr< StdExpansion2D > StdExpansion2DSharedPtr
 
typedef std::shared_ptr< StdExpansion3D > StdExpansion3DSharedPtr
 
typedef std::shared_ptr< StdHexExp > StdHexExpSharedPtr
 
typedef std::shared_ptr< StdMatrixKey > StdMatrixKeySharedPtr
 
typedef std::shared_ptr< StdNodalPrismExp > StdNodalPrismExpSharedPtr
 
typedef std::shared_ptr< StdNodalPyrExp > StdNodalPyrExpSharedPtr
 
typedef std::shared_ptr< StdNodalTetExp > StdNodalTetExpSharedPtr
 
typedef std::shared_ptr< StdNodalTriExp > StdNodalTriExpSharedPtr
 
typedef std::shared_ptr< StdPointExp > StdPointExpSharedPtr
 
typedef std::shared_ptr< StdPrismExp > StdPrismExpSharedPtr
 
typedef std::shared_ptr< StdPyrExp > StdPyrExpSharedPtr
 
typedef std::shared_ptr< StdQuadExp > StdQuadExpSharedPtr
 
typedef std::map< StdRegions::VarCoeffType, VarCoeffEntry > VarCoeffMap
 
typedef std::map< ConstFactorType, NekDouble > ConstFactorMap
 
typedef ConstFactorMap FactorMap
 
typedef std::map< StdRegions::ConstFactorType, Array< OneD, NekDouble > > VarFactorsMap
 
typedef std::shared_ptr< StdSegExp > StdSegExpSharedPtr
 
typedef std::shared_ptr< StdTetExp > StdTetExpSharedPtr
 
typedef std::shared_ptr< StdTriExp > StdTriExpSharedPtr
 

Enumerations

enum  StdMatType {
  eNoStdMat , eBwdTransStdMat , eBwdTransStdMatTranspose , ePhysDerivStdMat ,
  ePhysDerivStdMatTranspose , eDerivStdMat , eDerivStdMatTranspose , eIProductWRTBaseStdMat ,
  eIProductWRTBaseStdMatTranspose , eIProductWRTDerivBaseStdMat , eIProductWRTDerivBaseStdMatTranspose , ePhysInterpStdMat ,
  ePhysInterpStdMatTranspose , eMassStdMat , eMassStdMatTranspose , eInvMassStdMat ,
  eInvMassStdMatTranspose , eNodalToModal , eNodalToModalTranspose , eModalToNodal ,
  eInvMassInteriorStdMat , eInvMassInteriorStdMatTranspose , eGalerkinProjectStdMat , eGalerkinProjectStdMatTranspose ,
  ePhysProjectStdMat , eInvMassStdMatDiagonal
}
 
enum  StdFacType {
  eWeights1 , eWeights2 , eHalfMultOnePlusZ0 , eHalfMultOnePlusZ1 ,
  eTwoOverOneMinusZ1 , eTwoOverOneMinusZ2
}
 
enum  MatrixType {
  eNoMatrixType , eMass , eMassGJP , eInvMass ,
  eLaplacian , eLaplacian00 , eLaplacian01 , eLaplacian02 ,
  eLaplacian10 , eLaplacian11 , eLaplacian12 , eLaplacian20 ,
  eLaplacian21 , eLaplacian22 , eInvLaplacianWithUnityMean , eWeakDeriv0 ,
  eWeakDeriv1 , eWeakDeriv2 , eWeakDirectionalDeriv , eMassLevelCurvature ,
  eLinearAdvection , eLinearAdvectionReaction , eLinearAdvectionDiffusionReaction , eLinearAdvectionDiffusionReactionGJP ,
  eNBasisTrans , eInvNBasisTrans , eBwdTrans , eInvBwdTrans ,
  eBwdMat , eIProductWRTBase , eInvIProductWRTBase , eIProductWRTDerivBase0 ,
  eIProductWRTDerivBase1 , eIProductWRTDerivBase2 , eDerivBase0 , eDerivBase1 ,
  eDerivBase2 , eHelmholtz , eHelmholtzGJP , eHybridDGHelmholtz ,
  eInvHybridDGHelmholtz , eHybridDGHelmBndLam , eHybridDGLamToQ0 , eHybridDGLamToQ1 ,
  eHybridDGLamToQ2 , eHybridDGLamToU , eFwdTrans , ePreconR ,
  ePreconRMass , ePreconLinearSpace , ePreconLinearSpaceMass , eInterpGauss ,
  eGaussDG , ePhysInterpToEquiSpaced , ePhysInterpToGLL , eCoeffsToEquiSpaced ,
  eEquiSpacedToCoeffs , eCoeffsToGLL , eGLLToCoeffs , eEquiSpacedToPhys ,
  eNormDerivOnTrace , SIZE_MatrixType
}
 
enum  VarCoeffType {
  eVarCoeffMass , eVarCoeffLaplacian , eVarCoeffWeakDeriv , eVarCoeffD00 ,
  eVarCoeffD01 , eVarCoeffD02 , eVarCoeffD10 , eVarCoeffD11 ,
  eVarCoeffD12 , eVarCoeffD20 , eVarCoeffD21 , eVarCoeffD22 ,
  eVarCoeffVelX , eVarCoeffVelY , eVarCoeffVelZ , eVarCoeffMF1x ,
  eVarCoeffMF1y , eVarCoeffMF1z , eVarCoeffMF1Div , eVarCoeffMF1Mag ,
  eVarCoeffMF2x , eVarCoeffMF2y , eVarCoeffMF2z , eVarCoeffMF2Div ,
  eVarCoeffMF2Mag , eVarCoeffMF3x , eVarCoeffMF3y , eVarCoeffMF3z ,
  eVarCoeffMF3Div , eVarCoeffMF3Mag , eVarCoeffMF , eVarCoeffMFDiv ,
  eVarCoeffGmat , eVarCoeffGJPNormVel , SIZE_VarCoeffType
}
 
enum  ConstFactorType {
  eFactorLambda , eFactorCoeffD00 , eFactorCoeffD11 , eFactorCoeffD22 ,
  eFactorCoeffD01 , eFactorCoeffD02 , eFactorCoeffD12 , eFactorTau ,
  eFactorTime , eFactorSVVCutoffRatio , eFactorSVVDiffCoeff , eFactorSVVPowerKerDiffCoeff ,
  eFactorSVVDGKerDiffCoeff , eFactorGaussVertex , eFactorGaussEdge , eFactorGJP ,
  eFactorGJPTraceWeight , eFactorConst , SIZE_ConstFactorType
}
 
enum  Orientation {
  eNoOrientation , eFwd , eBwd , eForwards ,
  eBackwards , eDir1FwdDir1_Dir2FwdDir2 , eDir1FwdDir1_Dir2BwdDir2 , eDir1BwdDir1_Dir2FwdDir2 ,
  eDir1BwdDir1_Dir2BwdDir2 , eDir1FwdDir2_Dir2FwdDir1 , eDir1FwdDir2_Dir2BwdDir1 , eDir1BwdDir2_Dir2FwdDir1 ,
  eDir1BwdDir2_Dir2BwdDir1 , SIZE_Orientation
}
 

Functions

template LibUtilities::MemoryRegion< double > StdMatDataCreator::Create< NektarSpaces::HostSpace, double > (const StdMatKey< double > &stdMatKey)
 
template LibUtilities::MemoryRegion< float > StdMatDataCreator::Create< NektarSpaces::HostSpace, float > (const StdMatKey< float > &stdMatKey)
 
template LibUtilities::MemoryRegion< tinysimd::scalarT< double > > StdMatDataCreator::Create< NektarSpaces::HostSpace, tinysimd::scalarT< double > > (const StdMatKey< tinysimd::scalarT< double > > &stdMatKey)
 
template LibUtilities::MemoryRegion< tinysimd::scalarT< float > > StdMatDataCreator::Create< NektarSpaces::HostSpace, tinysimd::scalarT< float > > (const StdMatKey< tinysimd::scalarT< float > > &stdMatKey)
 
LibUtilities::BasisKey EvaluateQuadFaceBasisKey (const int facedir, const LibUtilities::BasisSharedPtr &faceDirBasis)
 
LibUtilities::BasisKey EvaluateTriFaceBasisKey (const int facedir, const LibUtilities::BasisSharedPtr &faceDirBasis, bool UseGLL)
 
bool operator< (const StdMatrixKey &lhs, const StdMatrixKey &rhs)
 
bool operator== (const StdMatrixKey &lhs, const StdMatrixKey &rhs)
 
std::ostream & operator<< (std::ostream &os, const StdMatrixKey &rhs)
 
VarCoeffMap RestrictCoeffMap (const VarCoeffMap &m, size_t offset, size_t cnt)
 
template<class InputIterator , class EqualityComparable >
InputIterator find (InputIterator first, InputIterator last, InputIterator startingpoint, const EqualityComparable &value)
 

Variables

const char *const MatrixTypeMap []
 
const char *const VarCoeffTypeMap []
 
constexpr std::array< VarCoeffType, 1 > massVarCoeffs {eVarCoeffMass}
 
constexpr std::array< VarCoeffType, 10 > laplacianVarCoeffs
 
constexpr std::array< VarCoeffType, 3 > advectionVarCoeffs
 
constexpr std::array< std::pair< MatrixType, VarCoeffList >, 3 > MatrixTypeToVarCoeffsMap
 
static VarCoeffMap NullVarCoeffMap
 
const char *const ConstFactorTypeMap []
 
static ConstFactorMap NullConstFactorMap
 
static FactorMap NullFactorMap
 
static VarFactorsMap NullVarFactorsMap
 
const char *const OrientationMap []
 
const int kSVVDGFiltermodesmin = 3
 
const int kSVVDGFiltermodesmax = 11
 
const NekDouble kSVVDGFilter [9][11]
 

Typedef Documentation

◆ ConstFactorMap

Definition at line 457 of file StdRegions.hpp.

◆ FactorMap

Definition at line 461 of file StdRegions.hpp.

◆ StdExpansion0DSharedPtr

Definition at line 74 of file StdExpansion0D.h.

◆ StdExpansion1DSharedPtr

Definition at line 132 of file StdExpansion1D.h.

◆ StdExpansion2DSharedPtr

Definition at line 223 of file StdExpansion2D.h.

◆ StdExpansion3DSharedPtr

Definition at line 45 of file StdExpansion3D.h.

◆ StdExpansionSharedPtr

Definition at line 1855 of file StdExpansion.h.

◆ StdExpansionVector

Definition at line 1856 of file StdExpansion.h.

◆ StdHexExpSharedPtr

Definition at line 193 of file StdHexExp.h.

◆ StdMatrixKeySharedPtr

Definition at line 255 of file StdMatrixKey.h.

◆ StdNodalPrismExpSharedPtr

Definition at line 128 of file StdNodalPrismExp.h.

◆ StdNodalPyrExpSharedPtr

Definition at line 128 of file StdNodalPyrExp.h.

◆ StdNodalTetExpSharedPtr

Definition at line 128 of file StdNodalTetExp.h.

◆ StdNodalTriExpSharedPtr

Definition at line 156 of file StdNodalTriExp.h.

◆ StdPointExpSharedPtr

Definition at line 132 of file StdPointExp.h.

◆ StdPrismExpSharedPtr

Definition at line 184 of file StdPrismExp.h.

◆ StdPyrExpSharedPtr

Definition at line 179 of file StdPyrExp.h.

◆ StdQuadExpSharedPtr

Definition at line 181 of file StdQuadExp.h.

◆ StdSegExpSharedPtr

Definition at line 182 of file StdSegExp.h.

◆ StdTetExpSharedPtr

Definition at line 187 of file StdTetExp.h.

◆ StdTriExpSharedPtr

Definition at line 177 of file StdTriExp.h.

◆ VarCoeffMap

Definition at line 400 of file StdRegions.hpp.

◆ VarFactorsMap

Definition at line 466 of file StdRegions.hpp.

◆ vec_t

Definition at line 47 of file StdExpansion1D.cpp.

Enumeration Type Documentation

◆ ConstFactorType

Enumerator
eFactorLambda 
eFactorCoeffD00 
eFactorCoeffD11 
eFactorCoeffD22 
eFactorCoeffD01 
eFactorCoeffD02 
eFactorCoeffD12 
eFactorTau 
eFactorTime 
eFactorSVVCutoffRatio 
eFactorSVVDiffCoeff 
eFactorSVVPowerKerDiffCoeff 
eFactorSVVDGKerDiffCoeff 
eFactorGaussVertex 
eFactorGaussEdge 
eFactorGJP 
eFactorGJPTraceWeight 
eFactorConst 
SIZE_ConstFactorType 

Definition at line 416 of file StdRegions.hpp.

417{
437};

◆ MatrixType

Todo:
we need to tidy up matrix construction approach probably using a factory type approach
Enumerator
eNoMatrixType 
eMass 
eMassGJP 
eInvMass 
eLaplacian 
eLaplacian00 
eLaplacian01 
eLaplacian02 
eLaplacian10 
eLaplacian11 
eLaplacian12 
eLaplacian20 
eLaplacian21 
eLaplacian22 
eInvLaplacianWithUnityMean 
eWeakDeriv0 
eWeakDeriv1 
eWeakDeriv2 
eWeakDirectionalDeriv 
eMassLevelCurvature 
eLinearAdvection 
eLinearAdvectionReaction 
eLinearAdvectionDiffusionReaction 
eLinearAdvectionDiffusionReactionGJP 
eNBasisTrans 
eInvNBasisTrans 
eBwdTrans 
eInvBwdTrans 
eBwdMat 
eIProductWRTBase 
eInvIProductWRTBase 
eIProductWRTDerivBase0 
eIProductWRTDerivBase1 
eIProductWRTDerivBase2 
eDerivBase0 
eDerivBase1 
eDerivBase2 
eHelmholtz 
eHelmholtzGJP 
eHybridDGHelmholtz 
eInvHybridDGHelmholtz 
eHybridDGHelmBndLam 
eHybridDGLamToQ0 
eHybridDGLamToQ1 
eHybridDGLamToQ2 
eHybridDGLamToU 
eFwdTrans 
ePreconR 
ePreconRMass 
ePreconLinearSpace 
ePreconLinearSpaceMass 
eInterpGauss 
eGaussDG 
ePhysInterpToEquiSpaced 
ePhysInterpToGLL 
eCoeffsToEquiSpaced 
eEquiSpacedToCoeffs 
eCoeffsToGLL 
eGLLToCoeffs 
eEquiSpacedToPhys 
eNormDerivOnTrace 
SIZE_MatrixType 

Definition at line 50 of file StdRegions.hpp.

51{
53 eMass,
80 eBwdMat,
104 eGaussDG,
114};
@ eLinearAdvectionDiffusionReactionGJP

◆ Orientation

Enumerator
eNoOrientation 
eFwd 
eBwd 
eForwards 
eBackwards 
eDir1FwdDir1_Dir2FwdDir2 
eDir1FwdDir1_Dir2BwdDir2 
eDir1BwdDir1_Dir2FwdDir2 
eDir1BwdDir1_Dir2BwdDir2 
eDir1FwdDir2_Dir2FwdDir1 
eDir1FwdDir2_Dir2BwdDir1 
eDir1BwdDir2_Dir2FwdDir1 
eDir1BwdDir2_Dir2BwdDir1 
SIZE_Orientation 

Definition at line 469 of file StdRegions.hpp.

470{
472 eFwd,
473 eBwd,
474 eForwards,
476 eDir1FwdDir1_Dir2FwdDir2, // These flags are interpreted as
477 eDir1FwdDir1_Dir2BwdDir2, // taking the first direction to the
478 eDir1BwdDir1_Dir2FwdDir2, // second direction. So Dir1FwdDir2 takes
479 eDir1BwdDir1_Dir2BwdDir2, // direction 1 in the original face and makes it
480 eDir1FwdDir2_Dir2FwdDir1, // backwards to direction 2 in the mapped face.
481 eDir1FwdDir2_Dir2BwdDir1, // Note be careful not to flip this
482 eDir1BwdDir2_Dir2FwdDir1, // convention especially when using
483 eDir1BwdDir2_Dir2BwdDir1, // transposed mappings.
485};

◆ StdFacType

Enumerator
eWeights1 
eWeights2 
eHalfMultOnePlusZ0 
eHalfMultOnePlusZ1 
eTwoOverOneMinusZ1 
eTwoOverOneMinusZ2 

Definition at line 58 of file StdExpansion.h.

◆ StdMatType

Enumerator
eNoStdMat 
eBwdTransStdMat 
eBwdTransStdMatTranspose 
ePhysDerivStdMat 
ePhysDerivStdMatTranspose 
eDerivStdMat 
eDerivStdMatTranspose 
eIProductWRTBaseStdMat 
eIProductWRTBaseStdMatTranspose 
eIProductWRTDerivBaseStdMat 
eIProductWRTDerivBaseStdMatTranspose 
ePhysInterpStdMat 
ePhysInterpStdMatTranspose 
eMassStdMat 
eMassStdMatTranspose 
eInvMassStdMat 
eInvMassStdMatTranspose 
eNodalToModal 
eNodalToModalTranspose 
eModalToNodal 
eInvMassInteriorStdMat 
eInvMassInteriorStdMatTranspose 
eGalerkinProjectStdMat 
eGalerkinProjectStdMatTranspose 
ePhysProjectStdMat 
eInvMassStdMatDiagonal 

Definition at line 44 of file StdMatDataWarehouse.hpp.

45{
68 // Galerkin projection from a fine physical grid to the native grid.
71 // Projection of physical-space inner products onto the expansion,
72 // B M^{-1} B^T, nqTot x nqTot; symmetric, so it is its own transpose.
74 // The diagonal of the standard inverse mass, nmTot values: all of it
75 // that the operators read where the standard mass is diagonal.
77};

◆ VarCoeffType

Enumerator
eVarCoeffMass 
eVarCoeffLaplacian 
eVarCoeffWeakDeriv 
eVarCoeffD00 
eVarCoeffD01 
eVarCoeffD02 
eVarCoeffD10 
eVarCoeffD11 
eVarCoeffD12 
eVarCoeffD20 
eVarCoeffD21 
eVarCoeffD22 
eVarCoeffVelX 
eVarCoeffVelY 
eVarCoeffVelZ 
eVarCoeffMF1x 
eVarCoeffMF1y 
eVarCoeffMF1z 
eVarCoeffMF1Div 
eVarCoeffMF1Mag 
eVarCoeffMF2x 
eVarCoeffMF2y 
eVarCoeffMF2z 
eVarCoeffMF2Div 
eVarCoeffMF2Mag 
eVarCoeffMF3x 
eVarCoeffMF3y 
eVarCoeffMF3z 
eVarCoeffMF3Div 
eVarCoeffMF3Mag 
eVarCoeffMF 
eVarCoeffMFDiv 
eVarCoeffGmat 
eVarCoeffGJPNormVel 
SIZE_VarCoeffType 

Definition at line 179 of file StdRegions.hpp.

180{
216};

Function Documentation

◆ EvaluateQuadFaceBasisKey()

LibUtilities::BasisKey Nektar::StdRegions::EvaluateQuadFaceBasisKey ( const int  facedir,
const LibUtilities::BasisSharedPtr &  faceDirBasis 
)

Definition at line 701 of file StdExpansion3D.cpp.

704{
705 auto faceDirBasisType = faceDirBasis->GetBasisType();
706 auto pointsType = faceDirBasis->GetPointsType();
707 auto nummodes = faceDirBasis->GetNumModes();
708 auto numpoints = faceDirBasis->GetNumPoints();
709
710 switch (faceDirBasisType)
711 {
712 case LibUtilities::eModified_A:
713 case LibUtilities::eModified_B:
714 case LibUtilities::eModified_C:
715 {
717 switch (pointsType)
718 {
719 case LibUtilities::eGaussRadauMLegendre:
720 case LibUtilities::eGaussRadauMAlpha2Beta0:
721 case LibUtilities::eGaussRadauMAlpha1Beta0:
722 {
723 numpoints = numpoints + 1;
724 pType = LibUtilities::eGaussLobattoLegendre;
725 }
726 break;
727 case LibUtilities::eGaussLegendreWithM:
728 {
729 numpoints = numpoints + 1;
730 pType = LibUtilities::eGaussLegendreWithMP;
731 }
732 break;
733 case LibUtilities::eGaussGaussAlpha1Beta0:
734 {
735 pType = LibUtilities::eGaussGaussLegendre;
736 }
737 break;
738 default: // do not change points
739 {
740 pType = faceDirBasis->GetPointsType();
741 }
742 }
743 const LibUtilities::PointsKey pkey(numpoints, pType);
744 return LibUtilities::BasisKey(LibUtilities::eModified_A, nummodes,
745 pkey);
746 }
747 case LibUtilities::eGLL_Lagrange:
748 {
749 const LibUtilities::PointsKey pkey(
750 numpoints, LibUtilities::eGaussLobattoLegendre);
751 return LibUtilities::BasisKey(LibUtilities::eGLL_Lagrange, nummodes,
752 pkey);
753 }
754 case LibUtilities::eOrtho_A:
755 case LibUtilities::eOrtho_B:
756 case LibUtilities::eOrtho_C:
757 {
758 LibUtilities::PointsType pType;
759 switch (pointsType)
760 {
761 case LibUtilities::eGaussRadauMLegendre:
762 case LibUtilities::eGaussRadauMAlpha2Beta0:
763 case LibUtilities::eGaussRadauMAlpha1Beta0:
764 {
765 numpoints = numpoints + 1;
766 pType = LibUtilities::eGaussLobattoLegendre;
767 }
768 break;
769 case LibUtilities::eGaussLegendreWithM:
770 {
771 numpoints = numpoints + 1;
772 pType = LibUtilities::eGaussLegendreWithMP;
773 }
774 break;
775 case LibUtilities::eGaussGaussAlpha1Beta0:
776 {
777 pType = LibUtilities::eGaussGaussLegendre;
778 }
779 break;
780 default: // do not change points
781 {
782 pType = faceDirBasis->GetPointsType();
783 break;
784 }
785 }
786 const LibUtilities::PointsKey pkey(numpoints, pType);
787 return LibUtilities::BasisKey(LibUtilities::eOrtho_A, nummodes,
788 pkey);
789 }
790 default:
791 {
792 NEKERROR(ErrorUtil::efatal, "expansion type unknown");
793 break;
794 }
795 }
796
797 // Keep things happy by returning a value.
798 return LibUtilities::NullBasisKey;
799}
#define NEKERROR(type, msg)
Assert Level 0 – Fundamental assert which is used whether in FULLDEBUG, DEBUG or OPT compilation mode...

References Nektar::ErrorUtil::efatal, Nektar::LibUtilities::eGaussGaussAlpha1Beta0, Nektar::LibUtilities::eGaussGaussLegendre, Nektar::LibUtilities::eGaussLegendreWithM, Nektar::LibUtilities::eGaussLegendreWithMP, Nektar::LibUtilities::eGaussLobattoLegendre, Nektar::LibUtilities::eGaussRadauMLegendre, Nektar::LibUtilities::eGLL_Lagrange, Nektar::LibUtilities::eModified_A, Nektar::LibUtilities::eModified_B, Nektar::LibUtilities::eModified_C, Nektar::LibUtilities::eOrtho_A, Nektar::LibUtilities::eOrtho_B, Nektar::LibUtilities::eOrtho_C, Nektar::LibUtilities::BasisKey::GetBasisType(), NEKERROR, and Nektar::LibUtilities::NullBasisKey().

Referenced by Nektar::StdRegions::StdHexExp::v_GetTraceBasisKey(), Nektar::StdRegions::StdPrismExp::v_GetTraceBasisKey(), and Nektar::StdRegions::StdPyrExp::v_GetTraceBasisKey().

◆ EvaluateTriFaceBasisKey()

LibUtilities::BasisKey Nektar::StdRegions::EvaluateTriFaceBasisKey ( const int  facedir,
const LibUtilities::BasisSharedPtr &  faceDirBasis,
bool  UseGLL 
)

Definition at line 801 of file StdExpansion3D.cpp.

804{
805 auto faceDirBasisType = faceDirBasis->GetBasisType();
806 auto pointsType = faceDirBasis->GetPointsType();
807 auto nummodes = faceDirBasis->GetNumModes();
808 auto numpoints = faceDirBasis->GetNumPoints();
809
810 switch (faceDirBasisType)
811 {
812 case LibUtilities::eModified_A:
813 case LibUtilities::eModified_B:
814 case LibUtilities::eModified_C:
815 case LibUtilities::eModifiedPyr_C:
816 {
817 LibUtilities::BasisType bType = LibUtilities::eNoBasisType;
818 LibUtilities::PointsKey pkey = LibUtilities::NullPointsKey;
819 switch (facedir) // determine the basis type
820 {
821 case 0:
822 {
823 bType = LibUtilities::eModified_A;
824
825 switch (pointsType) // determine the points type
826 {
827 case LibUtilities::eGaussRadauMLegendre:
828 // case LibUtilities::eGaussRadauMAlpha2Beta0: don't
829 // this this is posssible
830 case LibUtilities::eGaussRadauMAlpha1Beta0:
831 {
833 numpoints + 1,
834 LibUtilities::eGaussLobattoLegendre);
835 }
836 break;
837 case LibUtilities::eGaussLegendreWithM:
838 {
840 numpoints + 1,
841 LibUtilities::eGaussLegendreWithMP);
842 }
843 break;
844 case LibUtilities::eGaussGaussAlpha1Beta0:
845 {
846 pkey = LibUtilities::PointsKey(
847 numpoints, LibUtilities::eGaussGaussLegendre);
848 }
849 break;
850 default: // For other points type, just return the
851 // points key
852 {
853 pkey = faceDirBasis->GetPointsKey();
854 }
855 }
856 }
857 break;
858 case 1: // this never appears together with Modified_A
859 {
860 bType = LibUtilities::eModified_B;
861
862 switch (pointsType) // determine the points type
863 {
864 case LibUtilities::eGaussRadauMLegendre:
865 case LibUtilities::eGaussRadauMAlpha2Beta0:
866 case LibUtilities::eGaussRadauMAlpha1Beta0:
867 {
868 if (UseGLL) // force to use GLL
869 {
870 pkey = LibUtilities::PointsKey(
871 numpoints + 1,
872 LibUtilities::eGaussLobattoLegendre);
873 }
874 else
875 {
876 pkey = LibUtilities::PointsKey(
877 numpoints,
878 LibUtilities::eGaussRadauMAlpha1Beta0);
879 }
880 }
881 break;
882 // A Gauss rule in the collapsed direction: the face
883 // takes the Gauss-Jacobi(1,0) rule of the same count
884 // in its singular direction, as the Radau rules take
885 // Radau(1,0), so every triangular face of a Gauss
886 // tetrahedron, prism or pyramid carries one rule.
887 case LibUtilities::eGaussGaussLegendre:
888 case LibUtilities::eGaussGaussAlpha1Beta0:
889 {
890 pkey = LibUtilities::PointsKey(
891 numpoints,
892 LibUtilities::eGaussGaussAlpha1Beta0);
893 }
894 break;
895 default: // For other points type, just return the
896 // points key
897 {
898 pkey = faceDirBasis->GetPointsKey();
899 }
900 }
901 }
902 break;
903 default:
904 {
905 NEKERROR(ErrorUtil::efatal, "invalid value to flag");
906 break;
907 }
908 }
909 return LibUtilities::BasisKey(bType, nummodes, pkey);
910 }
911
912 case LibUtilities::eGLL_Lagrange:
913 {
914 switch (facedir)
915 {
916 case 0:
917 {
918 const LibUtilities::PointsKey pkey(
919 numpoints, LibUtilities::eGaussLobattoLegendre);
920 return LibUtilities::BasisKey(LibUtilities::eOrtho_A,
921 nummodes, pkey);
922 }
923 break;
924 case 1:
925 {
926 const LibUtilities::PointsKey pkey(
927 numpoints, LibUtilities::eGaussRadauMAlpha1Beta0);
928 return LibUtilities::BasisKey(LibUtilities::eOrtho_B,
929 nummodes, pkey);
930 }
931 break;
932 default:
933 {
934 NEKERROR(ErrorUtil::efatal, "invalid value to flag");
935 break;
936 }
937 }
938 break;
939 }
940
941 case LibUtilities::eOrtho_A:
942 case LibUtilities::eOrtho_B:
943 case LibUtilities::eOrtho_C:
944 case LibUtilities::eOrthoPyr_C:
945 {
946 LibUtilities::BasisType bType = LibUtilities::eNoBasisType;
947 LibUtilities::PointsKey pkey = LibUtilities::NullPointsKey;
948 switch (facedir) // determine the basis type
949 {
950 case 0:
951 {
952 bType = LibUtilities::eOrtho_A;
953
954 switch (pointsType) // determine the points type
955 {
956 case LibUtilities::eGaussRadauMLegendre:
957 case LibUtilities::eGaussRadauMAlpha2Beta0:
958 case LibUtilities::eGaussRadauMAlpha1Beta0:
959 {
960 pkey = LibUtilities::PointsKey(
961 numpoints + 1,
962 LibUtilities::eGaussLobattoLegendre);
963 }
964 break;
965 case LibUtilities::eGaussLegendreWithM:
966 {
967 pkey = LibUtilities::PointsKey(
968 numpoints + 1,
969 LibUtilities::eGaussLegendreWithMP);
970 }
971 break;
972 case LibUtilities::eGaussGaussAlpha1Beta0:
973 {
974 pkey = LibUtilities::PointsKey(
975 numpoints, LibUtilities::eGaussGaussLegendre);
976 }
977 break;
978 default: // For other points type, just return the
979 // points key
980 {
981 pkey = faceDirBasis->GetPointsKey();
982 }
983 }
984 }
985 break;
986 case 1: // this never appears together with Ortho_A
987 {
988 bType = LibUtilities::eOrtho_B;
989
990 switch (pointsType) // determine the points type
991 {
992 case LibUtilities::eGaussRadauMLegendre:
993 case LibUtilities::eGaussRadauMAlpha2Beta0:
994 {
995 pkey = LibUtilities::PointsKey(
996 numpoints,
997 LibUtilities::eGaussRadauMAlpha1Beta0);
998 }
999 break;
1000 // A Gauss rule in the collapsed direction takes the
1001 // Gauss-Jacobi(1,0) rule of the same count, as above.
1002 case LibUtilities::eGaussGaussLegendre:
1003 case LibUtilities::eGaussGaussAlpha1Beta0:
1004 {
1005 pkey = LibUtilities::PointsKey(
1006 numpoints,
1007 LibUtilities::eGaussGaussAlpha1Beta0);
1008 }
1009 break;
1010 default: // For other points type, just return the
1011 // points key
1012 {
1013 pkey = faceDirBasis->GetPointsKey();
1014 }
1015 }
1016 }
1017 break;
1018 default:
1019 {
1020 NEKERROR(ErrorUtil::efatal, "invalid value to flag");
1021 break;
1022 }
1023 }
1024 return LibUtilities::BasisKey(bType, nummodes, pkey);
1025 }
1026 default:
1027 {
1028 NEKERROR(ErrorUtil::efatal, "expansion type unknown");
1029 break;
1030 }
1031 }
1032
1033 // Keep things happy by returning a value.
1034 return LibUtilities::NullBasisKey;
1035}
Defines a specification for a set of points.
Definition Points.h:50

References Nektar::ErrorUtil::efatal, Nektar::LibUtilities::eGaussGaussAlpha1Beta0, Nektar::LibUtilities::eGaussGaussLegendre, Nektar::LibUtilities::eGaussLegendreWithM, Nektar::LibUtilities::eGaussLegendreWithMP, Nektar::LibUtilities::eGaussLobattoLegendre, Nektar::LibUtilities::eGaussRadauMLegendre, Nektar::LibUtilities::eGLL_Lagrange, Nektar::LibUtilities::eModified_A, Nektar::LibUtilities::eModified_B, Nektar::LibUtilities::eModified_C, Nektar::LibUtilities::eModifiedPyr_C, Nektar::LibUtilities::eNoBasisType, Nektar::LibUtilities::eOrtho_A, Nektar::LibUtilities::eOrtho_B, Nektar::LibUtilities::eOrtho_C, Nektar::LibUtilities::eOrthoPyr_C, Nektar::LibUtilities::BasisKey::GetBasisType(), NEKERROR, Nektar::LibUtilities::NullBasisKey(), and Nektar::LibUtilities::NullPointsKey().

Referenced by Nektar::StdRegions::StdPrismExp::v_GetTraceBasisKey(), Nektar::StdRegions::StdPyrExp::v_GetTraceBasisKey(), and Nektar::StdRegions::StdTetExp::v_GetTraceBasisKey().

◆ find()

template<class InputIterator , class EqualityComparable >
InputIterator Nektar::StdRegions::find ( InputIterator  first,
InputIterator  last,
InputIterator  startingpoint,
const EqualityComparable &  value 
)

Definition at line 507 of file StdRegions.hpp.

509{
510 InputIterator val;
511
512 if (startingpoint == first)
513 {
514 val = find(first, last, value);
515 }
516 else
517 {
518 val = find(startingpoint, last, value);
519 if (val == last)
520 {
521 val = find(first, startingpoint, value);
522 if (val == startingpoint)
523 {
524 val = last;
525 }
526 }
527 }
528 return val;
529}
InputIterator find(InputIterator first, InputIterator last, InputIterator startingpoint, const EqualityComparable &value)

References find().

Referenced by find().

◆ operator<()

bool Nektar::StdRegions::operator< ( const StdMatrixKey &  lhs,
const StdMatrixKey &  rhs 
)

Definition at line 110 of file StdMatrixKey.cpp.

111{
112 if (lhs.m_matrixType < rhs.m_matrixType)
113 {
114 return true;
115 }
116
117 if (lhs.m_matrixType > rhs.m_matrixType)
118 {
119 return false;
120 }
121
122 if (lhs.m_ncoeffs < rhs.m_ncoeffs) // probably do not need this check since
123 // checking the m_base below?
124 {
125 return true;
126 }
127
128 if (lhs.m_ncoeffs > rhs.m_ncoeffs)
129 {
130 return false;
131 }
132
133 if (LibUtilities::ShapeTypeDimMap[lhs.m_shapeType] <
134 LibUtilities::ShapeTypeDimMap[rhs.m_shapeType])
135 {
136 return true;
137 }
138
139 if (LibUtilities::ShapeTypeDimMap[lhs.m_shapeType] >
140 LibUtilities::ShapeTypeDimMap[rhs.m_shapeType])
141 {
142 return false;
143 }
144
145 for (unsigned int i = 0; i < LibUtilities::ShapeTypeDimMap[lhs.m_shapeType];
146 ++i)
147 {
148 if (lhs.m_base[i].get() < rhs.m_base[i].get())
149 {
150 return true;
151 }
152
153 if (lhs.m_base[i].get() > rhs.m_base[i].get())
154 {
155 return false;
156 }
157 }
158
159 if (lhs.m_factors.size() < rhs.m_factors.size())
160 {
161 return true;
162 }
163 else if (lhs.m_factors.size() > rhs.m_factors.size())
164 {
165 return false;
166 }
167 else
168 {
169 for (auto x = lhs.m_factors.begin(), y = rhs.m_factors.begin();
170 x != lhs.m_factors.end(); ++x, ++y)
171 {
172 if (x->second < y->second)
173 {
174 return true;
175 }
176 if (x->second > y->second)
177 {
178 return false;
179 }
180 }
181 }
182
183 if (lhs.m_varfactors.size() < rhs.m_varfactors.size())
184 {
185 return true;
186 }
187
188 if (lhs.m_varfactors.size() > rhs.m_varfactors.size())
189 {
190 return false;
191 }
192
193 for (unsigned int i = 0; i < lhs.m_varfactor_hashes.size(); ++i)
194 {
195 if (lhs.m_varfactor_hashes[i] < rhs.m_varfactor_hashes[i])
196 {
197 return true;
198 }
199 if (lhs.m_varfactor_hashes[i] > rhs.m_varfactor_hashes[i])
200 {
201 return false;
202 }
203 }
204
205 if (lhs.m_varcoeffs.size() < rhs.m_varcoeffs.size())
206 {
207 return true;
208 }
209
210 if (lhs.m_varcoeffs.size() > rhs.m_varcoeffs.size())
211 {
212 return false;
213 }
214
215 for (unsigned int i = 0; i < lhs.m_varcoeff_hashes.size(); ++i)
216 {
217 if (lhs.m_varcoeff_hashes[i] < rhs.m_varcoeff_hashes[i])
218 {
219 return true;
220 }
221 if (lhs.m_varcoeff_hashes[i] > rhs.m_varcoeff_hashes[i])
222 {
223 return false;
224 }
225 }
226
228 {
229 return true;
230 }
231
233 {
234 return false;
235 }
236
237 return false;
238}
LibUtilities::PointsType m_nodalPointsType
Array< OneD, const LibUtilities::BasisSharedPtr > m_base
std::vector< std::size_t > m_varfactor_hashes
LibUtilities::ShapeType m_shapeType
std::vector< std::size_t > m_varcoeff_hashes

◆ operator<<()

std::ostream & Nektar::StdRegions::operator<< ( std::ostream &  os,
const StdMatrixKey &  rhs 
)

Definition at line 329 of file StdMatrixKey.cpp.

330{
331 os << "MatrixType: " << MatrixTypeMap[rhs.GetMatrixType()]
332 << ", ShapeType: " << LibUtilities::ShapeTypeMap[rhs.GetShapeType()]
333 << ", Ncoeffs: " << rhs.GetNcoeffs() << std::endl;
334
335 if (rhs.GetConstFactors().size())
336 {
337 os << "Constants: " << endl;
338 for (auto &x : rhs.GetConstFactors())
339 {
340 os << "\t value " << ConstFactorTypeMap[x.first] << " : "
341 << x.second << endl;
342 }
343 }
344 if (rhs.GetVarCoeffs().size())
345 {
346 os << "Variable coefficients: " << endl;
347 unsigned int i = 0;
348 for (auto &x : rhs.GetVarCoeffs())
349 {
350 os << "\t Coeff defined: " << VarCoeffTypeMap[x.first] << endl;
351 os << "\t Hash: " << rhs.GetVarCoeffHashes()[i++] << endl;
352 }
353 }
354
355 for (unsigned int i = 0;
356 i < LibUtilities::ShapeTypeDimMap[rhs.GetShapeType()]; ++i)
357 {
358 os << rhs.GetBase()[i]->GetBasisKey();
359 }
360
361 return os;
362}
const Array< OneD, const LibUtilities::BasisSharedPtr > & GetBase() const
LibUtilities::ShapeType GetShapeType() const
const VarCoeffMap & GetVarCoeffs() const
MatrixType GetMatrixType() const
const ConstFactorMap & GetConstFactors() const
std::vector< std::size_t > GetVarCoeffHashes() const
const char *const ConstFactorTypeMap[]
const char *const MatrixTypeMap[]

References ConstFactorTypeMap, Nektar::StdRegions::StdMatrixKey::GetBase(), Nektar::StdRegions::StdMatrixKey::GetConstFactors(), Nektar::StdRegions::StdMatrixKey::GetMatrixType(), Nektar::StdRegions::StdMatrixKey::GetNcoeffs(), Nektar::StdRegions::StdMatrixKey::GetShapeType(), Nektar::StdRegions::StdMatrixKey::GetVarCoeffHashes(), Nektar::StdRegions::StdMatrixKey::GetVarCoeffs(), MatrixTypeMap, Nektar::LibUtilities::ShapeTypeDimMap, Nektar::LibUtilities::ShapeTypeMap, and VarCoeffTypeMap.

◆ operator==()

bool Nektar::StdRegions::operator== ( const StdMatrixKey &  lhs,
const StdMatrixKey &  rhs 
)

Definition at line 240 of file StdMatrixKey.cpp.

241{
242 if (lhs.m_matrixType != rhs.m_matrixType)
243 {
244 return false;
245 }
246
247 if (lhs.m_ncoeffs != rhs.m_ncoeffs)
248 {
249 return false;
250 }
251
252 for (unsigned int i = 0; i < LibUtilities::ShapeTypeDimMap[lhs.m_shapeType];
253 ++i)
254 {
255 if (lhs.m_base[i].get() != rhs.m_base[i].get())
256 {
257 return false;
258 }
259 }
260
261 if (lhs.m_factors.size() != rhs.m_factors.size())
262 {
263 return false;
264 }
265
266 if (!std::equal(lhs.m_factors.begin(), lhs.m_factors.end(),
267 rhs.m_factors.begin()))
268 {
269 return false;
270 }
271
273 {
274 return false;
275 }
276
277 if (lhs.m_varcoeffs.size() != rhs.m_varcoeffs.size())
278 {
279 return false;
280 }
281
282 if (lhs.m_varfactors.size() != rhs.m_varfactors.size())
283 {
284 return false;
285 }
286
287 for (unsigned int i = 0; i < lhs.m_varfactor_hashes.size(); ++i)
288 {
289 if (lhs.m_varfactor_hashes[i] != rhs.m_varfactor_hashes[i])
290 {
291 return false;
292 }
293 }
294
295 for (unsigned int i = 0; i < lhs.m_varcoeff_hashes.size(); ++i)
296 {
297 if (lhs.m_varcoeff_hashes[i] != rhs.m_varcoeff_hashes[i])
298 {
299 return false;
300 }
301 }
302
303 for (auto &x : lhs.m_varcoeffs)
304 {
305 auto y = rhs.m_varcoeffs.find(x.first);
306 // Check var coeff is found
307 if (y == rhs.m_varcoeffs.end())
308 {
309 return false;
310 }
311
312 if (x.second.GetValue() != y->second.GetValue())
313 {
314 return false;
315 }
316 }
317
318 for (unsigned int i = 0; i < lhs.m_varcoeffs.size(); ++i)
319 {
320 if (lhs.m_varcoeff_hashes[i] != rhs.m_varcoeff_hashes[i])
321 {
322 return false;
323 }
324 }
325
326 return true;
327}

◆ RestrictCoeffMap()

VarCoeffMap Nektar::StdRegions::RestrictCoeffMap ( const VarCoeffMap &  m,
size_t  offset,
size_t  cnt 
)
inline

Definition at line 403 of file StdRegions.hpp.

405{
406 VarCoeffMap ret;
407
408 for (auto &x : m)
409 {
410 ret[x.first] = x.second.restrict(offset, cnt);
411 }
412
413 return ret;
414}
std::map< StdRegions::VarCoeffType, VarCoeffEntry > VarCoeffMap

Referenced by Nektar::MultiRegions::GlobalLinSys::GetBlockMatrixKey(), Nektar::Collections::Helmholtz_NoCollection::operator()(), and Nektar::Collections::LinearAdvectionDiffusionReaction_NoCollection::operator()().

◆ StdMatDataCreator::Create< NektarSpaces::HostSpace, double >()

◆ StdMatDataCreator::Create< NektarSpaces::HostSpace, float >()

◆ StdMatDataCreator::Create< NektarSpaces::HostSpace, tinysimd::scalarT< double > >()

◆ StdMatDataCreator::Create< NektarSpaces::HostSpace, tinysimd::scalarT< float > >()

Variable Documentation

◆ advectionVarCoeffs

constexpr std::array<VarCoeffType, 3> Nektar::StdRegions::advectionVarCoeffs
constexpr
Initial value:

Definition at line 261 of file StdRegions.hpp.

◆ ConstFactorTypeMap

const char* const Nektar::StdRegions::ConstFactorTypeMap[]
Initial value:
= {"FactorLambda",
"FactorCoeffD00",
"FactorCoeffD11",
"FactorCoeffD22",
"FactorCoeffD01",
"FactorCoeffD02",
"FactorCoeffD12",
"FactorTau",
"FactorTime",
"FactorSVVCutoffRatio",
"FactorSVVDiffCoeff",
"FactorSVVPowerKerDiffCoeff",
"FactorSVVDGKerDiffCoeff",
"FactorGaussVertex",
"FactorGaussEdge",
"FactorGJP",
"FactorGJPTraceWeight",
"FactorConstant"}

Definition at line 439 of file StdRegions.hpp.

439 {"FactorLambda",
440 "FactorCoeffD00",
441 "FactorCoeffD11",
442 "FactorCoeffD22",
443 "FactorCoeffD01",
444 "FactorCoeffD02",
445 "FactorCoeffD12",
446 "FactorTau",
447 "FactorTime",
448 "FactorSVVCutoffRatio",
449 "FactorSVVDiffCoeff",
450 "FactorSVVPowerKerDiffCoeff",
451 "FactorSVVDGKerDiffCoeff",
452 "FactorGaussVertex",
453 "FactorGaussEdge",
454 "FactorGJP",
455 "FactorGJPTraceWeight",
456 "FactorConstant"};

Referenced by export_StdMatrixKey(), Nektar::StdRegions::StdMatrixKey::GetConstFactor(), Nektar::StdRegions::StdMatrixKey::GetVarFactors(), Nektar::MultiRegions::operator<<(), Nektar::MultiRegions::operator<<(), operator<<(), Nektar::Collections::Helmholtz_IterPerExp::UpdateFactors(), Nektar::Collections::Helmholtz_MatrixFree::UpdateFactors(), Nektar::Collections::LinearAdvectionDiffusionReaction_IterPerExp::UpdateFactors(), Nektar::Collections::LinearAdvectionDiffusionReaction_MatrixFree::UpdateFactors(), Nektar::Collections::PhysInterp1DScaled_Helper::UpdateFactors(), and Nektar::Collections::PhysInterp1DScaled_MatrixFree::UpdateFactors().

◆ kSVVDGFilter

const NekDouble Nektar::StdRegions::kSVVDGFilter[9][11]
Initial value:
= {
{0, 0.36212, 1, 0, 0, 0, 0, 0, 0, 0, 0},
{0, 0.70546, 0.078836, 1, 0, 0, 0, 0, 0, 0, 0},
{0, 0, 0.49411, 0.072394, 1, 0, 0, 0, 0, 0, 0},
{0, 0, 0.000073566, 0.40506, 0.094122, 1, 0, 0, 0, 0, 0},
{0, 0, 0, 0.0001422, 0.36863, 0.11815, 1, 0, 0, 0, 0},
{0, 0, 0, 0, 0.00019497, 0.41397, 0.16927, 1, 0, 0, 0},
{0, 0, 0, 0, 0, 0.0009762, 0.12747, 0.13763, 1, 0, 0},
{0, 0, 0, 0, 0, 0, 0.0023592, 0.23683, 0.17196, 1, 0},
{0, 0, 0, 0, 0, 0, 0, 0.0026055, 0.28682, 0.22473, 1}}

Definition at line 535 of file StdRegions.hpp.

535 {
536 {0, 0.36212, 1, 0, 0, 0, 0, 0, 0, 0, 0},
537 {0, 0.70546, 0.078836, 1, 0, 0, 0, 0, 0, 0, 0},
538 {0, 0, 0.49411, 0.072394, 1, 0, 0, 0, 0, 0, 0},
539 {0, 0, 0.000073566, 0.40506, 0.094122, 1, 0, 0, 0, 0, 0},
540 {0, 0, 0, 0.0001422, 0.36863, 0.11815, 1, 0, 0, 0, 0},
541 {0, 0, 0, 0, 0.00019497, 0.41397, 0.16927, 1, 0, 0, 0},
542 {0, 0, 0, 0, 0, 0.0009762, 0.12747, 0.13763, 1, 0, 0},
543 {0, 0, 0, 0, 0, 0, 0.0023592, 0.23683, 0.17196, 1, 0},
544 {0, 0, 0, 0, 0, 0, 0, 0.0026055, 0.28682, 0.22473, 1}};

Referenced by Nektar::StdRegionsUnitTests::DGKernelWeight(), Nektar::StdRegions::StdHexExp::v_SVVLaplacianFilter(), Nektar::StdRegions::StdPrismExp::v_SVVLaplacianFilter(), Nektar::StdRegions::StdPyrExp::v_SVVLaplacianFilter(), Nektar::StdRegions::StdQuadExp::v_SVVLaplacianFilter(), Nektar::StdRegions::StdTetExp::v_SVVLaplacianFilter(), and Nektar::StdRegions::StdTriExp::v_SVVLaplacianFilter().

◆ kSVVDGFiltermodesmax

const int Nektar::StdRegions::kSVVDGFiltermodesmax = 11

◆ kSVVDGFiltermodesmin

const int Nektar::StdRegions::kSVVDGFiltermodesmin = 3

◆ laplacianVarCoeffs

constexpr std::array<VarCoeffType, 10> Nektar::StdRegions::laplacianVarCoeffs
constexpr

◆ massVarCoeffs

constexpr std::array<VarCoeffType, 1> Nektar::StdRegions::massVarCoeffs {eVarCoeffMass}
constexpr

Definition at line 252 of file StdRegions.hpp.

◆ MatrixTypeMap

const char* const Nektar::StdRegions::MatrixTypeMap[]

Definition at line 116 of file StdRegions.hpp.

116 {
117 "NoMatrixType",
118 "Mass",
119 "Mass with Diagonal GJP",
120 "InvMass",
121 "Laplacian",
122 "Laplacian00",
123 "Laplacian01",
124 "Laplacian02",
125 "Laplacian10",
126 "Laplacian11",
127 "Laplacian12",
128 "Laplacian20",
129 "Laplacian21",
130 "Laplacian22",
131 "InvLaplacianWithUnityMean",
132 "WeakDeriv0",
133 "WeakDeriv1",
134 "WeakDeriv2",
135 "WeakDirectionalDeriv",
136 "MassLevelCurvature",
137 "LinearAdvection",
138 "LinearAdvectionReaction",
139 "LinearAdvectionDiffusionReaction",
140 "LinearAdvectionDiffusionReaction with Diagonal GJP",
141 "NBasisTrans",
142 "InvNBasisTrans",
143 "BwdTrans",
144 "InvBwdTrans",
145 "BwdMat",
146 "IProductWRTBase",
147 "InvIProductWRTBase",
148 "IProductWRTDerivBase0",
149 "IProductWRTDerivBase1",
150 "IProductWRTDerivBase2",
151 "DerivBase0",
152 "DerivBase1",
153 "DerivBase2",
154 "Helmholtz",
155 "Helmholtz with Diagonal GJP",
156 "HybridDGHelmholz",
157 "InvHybridDGHelmholtz",
158 "HybridDGHelmBndLam",
159 "HybridDGLamToQ0",
160 "HybridDGLamToQ1",
161 "HybridDGLamToQ2",
162 "HybridDGLamToU",
163 "FwdTrans",
164 "PreconR",
165 "PreconRMass",
166 "PreconLinearSpace",
167 "PreconLinearSpaceMass",
168 "InterpGauss",
169 "GaussDG",
170 "PhysInterpToEquiSpaced",
171 "PhysInterpToGLL",
172 "CoeffsToEquiSpaced",
173 "EquiSpacedToCoeffs",
174 "CoeffsToGLL",
175 "GLLToCoeffs",
176 "EquiSpacedToPhys",
177 "NormDerivOnTrace"};

Referenced by Nektar::StdRegions::StdExpansion::CreateGeneralMatrix(), export_StdMatrixKey(), Nektar::MultiRegions::operator<<(), and operator<<().

◆ MatrixTypeToVarCoeffsMap

constexpr std::array<std::pair<MatrixType, VarCoeffList>, 3> Nektar::StdRegions::MatrixTypeToVarCoeffsMap
constexpr
Initial value:
{
std::pair{eMass,
VarCoeffList{massVarCoeffs.data(), massVarCoeffs.size()}},
std::pair{eLaplacian, VarCoeffList{laplacianVarCoeffs.data(),
laplacianVarCoeffs.size()}},
std::pair{eLinearAdvection, VarCoeffList{advectionVarCoeffs.data(),
constexpr std::array< VarCoeffType, 1 > massVarCoeffs
constexpr std::array< VarCoeffType, 3 > advectionVarCoeffs

Definition at line 265 of file StdRegions.hpp.

265 {
266 std::pair{eMass,
268 std::pair{eLaplacian, VarCoeffList{laplacianVarCoeffs.data(),
269 laplacianVarCoeffs.size()}},
270 std::pair{eLinearAdvection, VarCoeffList{advectionVarCoeffs.data(),
271 advectionVarCoeffs.size()}}};

Referenced by Nektar::StdRegions::StdMatrixKey::HasVarCoeffForMatrixType().

◆ NullConstFactorMap

ConstFactorMap Nektar::StdRegions::NullConstFactorMap
static

Definition at line 458 of file StdRegions.hpp.

Referenced by Nektar::LocalRegions::Expansion2D::AddHDGHelmholtzEdgeTerms(), Nektar::LocalRegions::Expansion3D::AddHDGHelmholtzFaceTerms(), Nektar::StdRegions::StdMatDataCreator::Create(), Nektar::StdRegions::StdExpansion::CreateGeneralMatrix(), Nektar::LocalRegions::Expansion2D::CreateMatrix(), export_ExpList(), export_MatrixKey(), export_StdMatrixKey(), Nektar::StdRegions::StdNodalPrismExp::ModalToNodal(), Nektar::StdRegions::StdNodalPyrExp::ModalToNodal(), Nektar::StdRegions::StdNodalTetExp::ModalToNodal(), Nektar::StdRegions::StdNodalTriExp::ModalToNodal(), Nektar::StdRegions::StdNodalPrismExp::NodalToModal(), Nektar::StdRegions::StdNodalPyrExp::NodalToModal(), Nektar::StdRegions::StdNodalTetExp::NodalToModal(), Nektar::StdRegions::StdNodalPrismExp::NodalToModalTranspose(), Nektar::StdRegions::StdNodalPyrExp::NodalToModalTranspose(), Nektar::StdRegions::StdNodalTetExp::NodalToModalTranspose(), Nektar::StdRegions::StdNodalTriExp::NodalToModalTranspose(), Nektar::MultiRegions::detail::RobBndCondOpImpl< ExecSpace, TData >::RobBndCondOpImpl(), Nektar::LocalRegions::Expansion2D::v_AddRobinMassMatrix(), Nektar::LocalRegions::Expansion3D::v_AddRobinMassMatrix(), Nektar::LocalRegions::Expansion2D::v_AddRobinTraceContribution(), Nektar::StdRegions::StdExpansion::v_FwdTrans(), Nektar::LocalRegions::Expansion::v_FwdTrans(), Nektar::LocalRegions::Expansion2D::v_GenMatrix(), Nektar::LocalRegions::Expansion3D::v_GenMatrix(), and Nektar::StdRegions::StdNodalTriExp::v_NodalToModal().

◆ NullFactorMap

FactorMap Nektar::StdRegions::NullFactorMap
static

◆ NullVarCoeffMap

VarCoeffMap Nektar::StdRegions::NullVarCoeffMap
static

Definition at line 401 of file StdRegions.hpp.

Referenced by Nektar::StdRegions::StdMatDataCreator::Create(), Nektar::StdRegions::StdExpansion::CreateGeneralMatrix(), Nektar::LocalRegions::Expansion2D::CreateMatrix(), Nektar::LocalRegions::Expansion3D::CreateMatrix(), Nektar::LocalRegions::SegExp::CreateMatrix(), export_ExpList(), export_MatrixKey(), export_StdMatrixKey(), Nektar::Collections::Helmholtz_IterPerExp::Helmholtz_IterPerExp(), Nektar::Collections::Helmholtz_MatrixFree::Helmholtz_MatrixFree(), Nektar::Collections::Helmholtz_NoCollection::Helmholtz_NoCollection(), Nektar::Collections::LinearAdvectionDiffusionReaction_IterPerExp::LinearAdvectionDiffusionReaction_IterPerExp(), Nektar::Collections::LinearAdvectionDiffusionReaction_MatrixFree::LinearAdvectionDiffusionReaction_MatrixFree(), Nektar::Collections::LinearAdvectionDiffusionReaction_NoCollection::LinearAdvectionDiffusionReaction_NoCollection(), Nektar::StdRegions::StdNodalPrismExp::ModalToNodal(), Nektar::StdRegions::StdNodalPyrExp::ModalToNodal(), Nektar::StdRegions::StdNodalTetExp::ModalToNodal(), Nektar::StdRegions::StdNodalTriExp::ModalToNodal(), Nektar::StdRegions::StdNodalPrismExp::NodalToModal(), Nektar::StdRegions::StdNodalPyrExp::NodalToModal(), Nektar::StdRegions::StdNodalTetExp::NodalToModal(), Nektar::StdRegions::StdNodalPrismExp::NodalToModalTranspose(), Nektar::StdRegions::StdNodalPyrExp::NodalToModalTranspose(), Nektar::StdRegions::StdNodalTetExp::NodalToModalTranspose(), Nektar::StdRegions::StdNodalTriExp::NodalToModalTranspose(), Nektar::Collections::Helmholtz_NoCollection::operator()(), Nektar::Collections::LinearAdvectionDiffusionReaction_NoCollection::operator()(), Nektar::VCSLevelSet::SolveLevelSet(), Nektar::StdRegions::StdExpansion::v_FwdTrans(), Nektar::LocalRegions::Expansion::v_FwdTrans(), Nektar::StdRegions::StdNodalTriExp::v_NodalToModal(), Nektar::VCSImplicit::v_SolvePressure(), Nektar::VCSLevelSet::v_SolvePressure(), Nektar::VCSWeakPressure::v_SolvePressure(), Nektar::VelocityCorrectionScheme::v_SolveViscous(), and Nektar::VCSLevelSet::v_SolveViscous().

◆ NullVarFactorsMap

VarFactorsMap Nektar::StdRegions::NullVarFactorsMap
static

◆ OrientationMap

const char* const Nektar::StdRegions::OrientationMap[]
Initial value:
= {"NoOrientation",
"Fwd",
"Bwd",
"Forwards",
"Backwards",
"Dir1FwdDir1_Dir2FwdDir2",
"Dir1FwdDir1_Dir2BwdDir2",
"Dir1BwdDir1_Dir2FwdDir2",
"Dir1BwdDir1_Dir2BwdDir2",
"Dir1FwdDir2_Dir2FwdDir1",
"Dir1FwdDir2_Dir2BwdDir1",
"Dir1BwdDir2_Dir2FwdDir1",
"Dir1BwdDir2_Dir2BwdDir1"}

Definition at line 487 of file StdRegions.hpp.

487 {"NoOrientation",
488 "Fwd",
489 "Bwd",
490 "Forwards",
491 "Backwards",
492 "Dir1FwdDir1_Dir2FwdDir2",
493 "Dir1FwdDir1_Dir2BwdDir2",
494 "Dir1BwdDir1_Dir2FwdDir2",
495 "Dir1BwdDir1_Dir2BwdDir2",
496 "Dir1FwdDir2_Dir2FwdDir1",
497 "Dir1FwdDir2_Dir2BwdDir1",
498 "Dir1BwdDir2_Dir2FwdDir1",
499 "Dir1BwdDir2_Dir2BwdDir1"};

Referenced by Nektar::FaceOrientationTests::CheckElement().

◆ VarCoeffTypeMap

const char* const Nektar::StdRegions::VarCoeffTypeMap[]
Initial value:
= {
"VarCoeffMass", "VarCoeffLaplacian", "VarCoeffWeakDeriv",
"VarCoeffD00", "VarCoeffD01", "VarCoeffD02",
"VarCoeffD10", "VarCoeffD11", "VarCoeffD12",
"VarCoeffD20", "VarCoeffD21", "VarCoeffD22",
"VarCoeffVelX", "VarCoeffVelY", "VarCoeffVelZ",
"VarCoeffMF1x", "VarCoeffMF1y", "VarCoeffMF1z",
"VarCoeffMF1Div", "VarCoeffMF1Mag", "VarCoeffMF2x",
"VarCoeffMF2y", "VarCoeffMF2z", "VarCoeffMF2Div",
"VarCoeffMF2Mag", "VarCoeffMF3x", "VarCoeffMF3y",
"VarCoeffMF3z", "VarCoeffMF3Div", "VarCoeffMF3Mag",
"VarCoeffMF", "VarCoeffMFDiv", "VarCoeffGmat",
"VarCoeffGJPNormVel", "VarCoeffTraceWeight"}

Definition at line 218 of file StdRegions.hpp.

218 {
219 "VarCoeffMass", "VarCoeffLaplacian", "VarCoeffWeakDeriv",
220 "VarCoeffD00", "VarCoeffD01", "VarCoeffD02",
221 "VarCoeffD10", "VarCoeffD11", "VarCoeffD12",
222 "VarCoeffD20", "VarCoeffD21", "VarCoeffD22",
223 "VarCoeffVelX", "VarCoeffVelY", "VarCoeffVelZ",
224 "VarCoeffMF1x", "VarCoeffMF1y", "VarCoeffMF1z",
225 "VarCoeffMF1Div", "VarCoeffMF1Mag", "VarCoeffMF2x",
226 "VarCoeffMF2y", "VarCoeffMF2z", "VarCoeffMF2Div",
227 "VarCoeffMF2Mag", "VarCoeffMF3x", "VarCoeffMF3y",
228 "VarCoeffMF3z", "VarCoeffMF3Div", "VarCoeffMF3Mag",
229 "VarCoeffMF", "VarCoeffMFDiv", "VarCoeffGmat",
230 "VarCoeffGJPNormVel", "VarCoeffTraceWeight"};

Referenced by export_StdMatrixKey(), Nektar::StdRegions::StdMatrixKey::GetVarCoeff(), Nektar::StdRegions::StdMatrixKey::GetVarCoeffAsMap(), and operator<<().