|
Nektar++
|
Typedefs | |
| using | ModeLabels = std::vector< std::array< int, 3 > > |
| Mode indices (p, q, r) of an orthogonal expansion, in storage order. | |
Functions | |
| void | CheckInvBwdTrans (const StdRegions::StdExpansionSharedPtr &exp) |
| BOOST_AUTO_TEST_CASE (TestQuadInvBwdTransPseudoInverse) | |
| BOOST_AUTO_TEST_CASE (TestHexInvBwdTransPseudoInverse) | |
| static StdRegions::StdPyrExpSharedPtr | MakeOrthoPyr (const unsigned int P, const unsigned int np) |
The orthogonal pyramid of order P on np points per direction of the default orthogonal rule: Gauss-Legendre, Gauss-Legendre and Gauss-Jacobi(1,0) in the collapsed direction. | |
| static std::vector< NekDouble > | Solve (std::vector< NekDouble > A, std::vector< NekDouble > b, const unsigned int n) |
Solve the dense system A x = b in place by Gaussian elimination with partial pivoting; A is row major, n by n. | |
| static DNekMatSharedPtr | Mass (const StdRegions::StdPyrExpSharedPtr &e) |
| BOOST_AUTO_TEST_CASE (TestPyrOrthoMassDiagonal) | |
| BOOST_AUTO_TEST_CASE (TestPyrOrthoPolynomials) | |
| Every monomial x^a y^b z^c of total degree at most P is in the span: its projection reproduces it at the quadrature points. | |
| BOOST_AUTO_TEST_CASE (TestPyrOrthoTriFaceTrace) | |
| BOOST_AUTO_TEST_CASE (TestPyrModifiedInOrthoSpan) | |
| void | CheckReduceOrderCoeffs (const StdRegions::StdExpansionSharedPtr &exp, const StdRegions::StdExpansionSharedPtr &ortho, const std::vector< int > °ree, const int numMin) |
| Check ReduceOrderCoeffs mode by mode. | |
| BOOST_AUTO_TEST_CASE (TestSegReduceOrderCoeffs) | |
| void | CheckQuad (const int nm0, const int nm1, const int numMin) |
| BOOST_AUTO_TEST_CASE (TestQuadReduceOrderCoeffs) | |
| void | CheckTri (const int nm, const int numMin) |
| BOOST_AUTO_TEST_CASE (TestTriReduceOrderCoeffs) | |
| void | CheckTet (const int nm, const int numMin) |
| BOOST_AUTO_TEST_CASE (TestTetReduceOrderCoeffs) | |
| BOOST_AUTO_TEST_CASE (TestPrismReduceOrderCoeffs) | |
| void | CheckSVVLaplacianFilter (const StdRegions::StdExpansionSharedPtr &ortho, const StdRegions::ConstFactorMap &factors, const std::vector< NekDouble > &weight) |
| Check SVVLaplacianFilter mode by mode. | |
| NekDouble | DGKernelWeight (const std::vector< int > &nmodes, const std::array< int, 3 > &label, const NekDouble diffCoeff) |
DG kernel weight of the mode label of an expansion with nmodes. | |
| NekDouble | PowerKernelWeight (const std::vector< int > &nmodes, const std::array< int, 3 > &label, const NekDouble cutoff, const NekDouble diffCoeff) |
Power kernel weight of the mode label of an expansion with nmodes. | |
| void | CheckKernels (const StdRegions::StdExpansionSharedPtr &ortho, const std::vector< int > &nmodes, const ModeLabels &labels) |
| Check the DG and power kernels of SVVLaplacianFilter. | |
| StdRegions::StdExpansionSharedPtr | OrthoQuad (const int nm0, const int nm1, ModeLabels &labels) |
| Orthogonal quadrilateral; modes stored with p fastest. | |
| StdRegions::StdExpansionSharedPtr | OrthoHex (const int nm0, const int nm1, const int nm2, ModeLabels &labels) |
| Orthogonal hexahedron; modes stored with p fastest, then q, then r. | |
| BOOST_AUTO_TEST_CASE (TestSegSVVLaplacianFilter) | |
| BOOST_AUTO_TEST_CASE (TestQuadSVVLaplacianFilter) | |
| BOOST_AUTO_TEST_CASE (TestHexSVVLaplacianFilter) | |
| BOOST_AUTO_TEST_CASE (TestTriSVVLaplacianFilter) | |
| BOOST_AUTO_TEST_CASE (TestTetSVVLaplacianFilter) | |
| BOOST_AUTO_TEST_CASE (TestPrismSVVLaplacianFilter) | |
| BOOST_AUTO_TEST_CASE (TestPyrSVVLaplacianFilter) | |
| static StdRegions::StdTetExpSharedPtr | MakeTet (const unsigned int np, const PointsType p0, const PointsType p1, const PointsType p2) |
The P3 orthogonal tet on np points per direction of the given types. | |
| static NekDouble | MassDifference (const StdRegions::StdTetExpSharedPtr &a, const StdRegions::StdTetExpSharedPtr &b) |
The largest entry of the difference between the mass matrices of a and b. | |
| BOOST_AUTO_TEST_CASE (TestTetExactMassRules) | |
| using Nektar::StdRegionsUnitTests::ModeLabels = typedef std::vector<std::array<int, 3> > |
Mode indices (p, q, r) of an orthogonal expansion, in storage order.
Definition at line 55 of file TestSVVLaplacianFilter.cpp.
| Nektar::StdRegionsUnitTests::BOOST_AUTO_TEST_CASE | ( | TestHexInvBwdTransPseudoInverse | ) |
Definition at line 99 of file TestInvBwdTrans.cpp.
References Nektar::MemoryManager< DataType >::AllocateSharedPtr(), CheckInvBwdTrans(), Nektar::LibUtilities::eGaussLobattoLegendre, and Nektar::LibUtilities::eModified_A.
| Nektar::StdRegionsUnitTests::BOOST_AUTO_TEST_CASE | ( | TestHexSVVLaplacianFilter | ) |
Definition at line 270 of file TestSVVLaplacianFilter.cpp.
References CheckKernels(), CheckSVVLaplacianFilter(), Nektar::StdRegions::eFactorSVVCutoffRatio, Nektar::StdRegions::eFactorSVVDiffCoeff, and OrthoHex().
| Nektar::StdRegionsUnitTests::BOOST_AUTO_TEST_CASE | ( | TestPrismReduceOrderCoeffs | ) |
Definition at line 217 of file StdRegions/TestReduceOrderCoeffs.cpp.
References Nektar::MemoryManager< DataType >::AllocateSharedPtr(), CheckReduceOrderCoeffs(), Nektar::LibUtilities::eGaussLobattoLegendre, Nektar::LibUtilities::eModified_A, Nektar::LibUtilities::eModified_B, Nektar::LibUtilities::eOrtho_A, and Nektar::LibUtilities::eOrtho_B.
| Nektar::StdRegionsUnitTests::BOOST_AUTO_TEST_CASE | ( | TestPrismSVVLaplacianFilter | ) |
Definition at line 361 of file TestSVVLaplacianFilter.cpp.
References Nektar::MemoryManager< DataType >::AllocateSharedPtr(), CheckKernels(), Nektar::LibUtilities::eGaussLobattoLegendre, Nektar::LibUtilities::eOrtho_A, and Nektar::LibUtilities::eOrtho_B.
| Nektar::StdRegionsUnitTests::BOOST_AUTO_TEST_CASE | ( | TestPyrModifiedInOrthoSpan | ) |
The modified (C0) pyramid against the orthogonal span, which spectral vanishing viscosity and other modal operations transform to. Its five vertex modes, rational functions of (x, y, z), lie in the span for every order, where with the old p+q exponent four of them did not even at P = 1. Up to P = 2 every modified mode lies in it. From P = 3 the modified quadrilateral-face and interior modes whose exponent p+q-2 exceeds max(p,q) do not; they carry the same mismatch the orthogonal pyramid had.
Definition at line 289 of file TestPyrExactMass.cpp.
References Nektar::MemoryManager< DataType >::AllocateSharedPtr(), Nektar::LibUtilities::eGaussLobattoLegendre, Nektar::LibUtilities::eModified_A, Nektar::LibUtilities::eModifiedPyr_C, Nektar::LibUtilities::eOrtho_A, Nektar::LibUtilities::eOrthoPyr_C, and Nektar::LibUtilities::P.
| Nektar::StdRegionsUnitTests::BOOST_AUTO_TEST_CASE | ( | TestPyrOrthoMassDiagonal | ) |
With the default NUMPOINTS = NUMMODES the mass matrix is diagonal, and its diagonal is that of the mass matrix on an over-integrated rule: every mode has degree at most P in the collapsed direction, so the products the rule integrates have degree at most 2P + 1, its exactness.
Definition at line 115 of file TestPyrExactMass.cpp.
References MakeOrthoPyr(), Mass(), and Nektar::LibUtilities::P.
| Nektar::StdRegionsUnitTests::BOOST_AUTO_TEST_CASE | ( | TestPyrOrthoPolynomials | ) |
Every monomial x^a y^b z^c of total degree at most P is in the span: its projection reproduces it at the quadrature points.
Definition at line 151 of file TestPyrExactMass.cpp.
References MakeOrthoPyr(), and Nektar::LibUtilities::P.
| Nektar::StdRegionsUnitTests::BOOST_AUTO_TEST_CASE | ( | TestPyrOrthoTriFaceTrace | ) |
On the triangular face y = -1 every mode is a polynomial of total degree at most P in (x, z), as on a tetrahedron's face. Each mode is interpolated from a degree-P fit on a lattice of the face and checked at other face points.
Definition at line 193 of file TestPyrExactMass.cpp.
References MakeOrthoPyr(), Nektar::LibUtilities::P, Solve(), and V.
| Nektar::StdRegionsUnitTests::BOOST_AUTO_TEST_CASE | ( | TestPyrSVVLaplacianFilter | ) |
Definition at line 384 of file TestSVVLaplacianFilter.cpp.
References Nektar::MemoryManager< DataType >::AllocateSharedPtr(), CheckKernels(), Nektar::LibUtilities::eGaussLobattoLegendre, Nektar::LibUtilities::eOrtho_A, and Nektar::LibUtilities::eOrthoPyr_C.
| Nektar::StdRegionsUnitTests::BOOST_AUTO_TEST_CASE | ( | TestQuadInvBwdTransPseudoInverse | ) |
Definition at line 86 of file TestInvBwdTrans.cpp.
References Nektar::MemoryManager< DataType >::AllocateSharedPtr(), CheckInvBwdTrans(), Nektar::LibUtilities::eGaussLobattoLegendre, and Nektar::LibUtilities::eModified_A.
| Nektar::StdRegionsUnitTests::BOOST_AUTO_TEST_CASE | ( | TestQuadReduceOrderCoeffs | ) |
Definition at line 139 of file StdRegions/TestReduceOrderCoeffs.cpp.
References CheckQuad().
| Nektar::StdRegionsUnitTests::BOOST_AUTO_TEST_CASE | ( | TestQuadSVVLaplacianFilter | ) |
Definition at line 236 of file TestSVVLaplacianFilter.cpp.
References CheckKernels(), CheckSVVLaplacianFilter(), Nektar::StdRegions::eFactorSVVCutoffRatio, Nektar::StdRegions::eFactorSVVDiffCoeff, and OrthoQuad().
| Nektar::StdRegionsUnitTests::BOOST_AUTO_TEST_CASE | ( | TestSegReduceOrderCoeffs | ) |
Definition at line 95 of file StdRegions/TestReduceOrderCoeffs.cpp.
References Nektar::MemoryManager< DataType >::AllocateSharedPtr(), CheckReduceOrderCoeffs(), Nektar::LibUtilities::eGaussLobattoLegendre, Nektar::LibUtilities::eModified_A, and Nektar::LibUtilities::eOrtho_A.
| Nektar::StdRegionsUnitTests::BOOST_AUTO_TEST_CASE | ( | TestSegSVVLaplacianFilter | ) |
Definition at line 210 of file TestSVVLaplacianFilter.cpp.
References Nektar::MemoryManager< DataType >::AllocateSharedPtr(), CheckSVVLaplacianFilter(), Nektar::StdRegions::eFactorSVVCutoffRatio, Nektar::StdRegions::eFactorSVVDiffCoeff, Nektar::LibUtilities::eGaussLobattoLegendre, and Nektar::LibUtilities::eOrtho_A.
| Nektar::StdRegionsUnitTests::BOOST_AUTO_TEST_CASE | ( | TestTetExactMassRules | ) |
Definition at line 84 of file TestTetExactMass.cpp.
References Nektar::LibUtilities::eGaussGaussAlpha1Beta0, Nektar::LibUtilities::eGaussGaussLegendre, Nektar::LibUtilities::eGaussLobattoLegendre, MakeTet(), and MassDifference().
| Nektar::StdRegionsUnitTests::BOOST_AUTO_TEST_CASE | ( | TestTetReduceOrderCoeffs | ) |
Definition at line 211 of file StdRegions/TestReduceOrderCoeffs.cpp.
References CheckTet().
| Nektar::StdRegionsUnitTests::BOOST_AUTO_TEST_CASE | ( | TestTetSVVLaplacianFilter | ) |
Definition at line 331 of file TestSVVLaplacianFilter.cpp.
References Nektar::MemoryManager< DataType >::AllocateSharedPtr(), CheckKernels(), Nektar::LibUtilities::eGaussLobattoLegendre, Nektar::LibUtilities::eOrtho_A, Nektar::LibUtilities::eOrtho_B, and Nektar::LibUtilities::eOrtho_C.
| Nektar::StdRegionsUnitTests::BOOST_AUTO_TEST_CASE | ( | TestTriReduceOrderCoeffs | ) |
Definition at line 172 of file StdRegions/TestReduceOrderCoeffs.cpp.
References CheckTri().
| Nektar::StdRegionsUnitTests::BOOST_AUTO_TEST_CASE | ( | TestTriSVVLaplacianFilter | ) |
Definition at line 311 of file TestSVVLaplacianFilter.cpp.
References Nektar::MemoryManager< DataType >::AllocateSharedPtr(), CheckKernels(), Nektar::LibUtilities::eGaussLobattoLegendre, Nektar::LibUtilities::eOrtho_A, and Nektar::LibUtilities::eOrtho_B.
| void Nektar::StdRegionsUnitTests::CheckInvBwdTrans | ( | const StdRegions::StdExpansionSharedPtr & | exp | ) |
Definition at line 44 of file TestInvBwdTrans.cpp.
References Nektar::StdRegions::eBwdTrans, Nektar::StdRegions::eInvBwdTrans, and Nektar::StdRegions::eInvIProductWRTBase.
Referenced by BOOST_AUTO_TEST_CASE(), and BOOST_AUTO_TEST_CASE().
| void Nektar::StdRegionsUnitTests::CheckKernels | ( | const StdRegions::StdExpansionSharedPtr & | ortho, |
| const std::vector< int > & | nmodes, | ||
| const ModeLabels & | labels | ||
| ) |
Check the DG and power kernels of SVVLaplacianFilter.
The weight of a mode depends only on its indices (p, q, r) and the mode counts, so a mode filtered under the wrong indices, or not at all, shows as a coefficient scaled by the wrong weight.
Definition at line 139 of file TestSVVLaplacianFilter.cpp.
References CheckSVVLaplacianFilter(), DGKernelWeight(), Nektar::StdRegions::eFactorSVVCutoffRatio, Nektar::StdRegions::eFactorSVVDGKerDiffCoeff, Nektar::StdRegions::eFactorSVVDiffCoeff, Nektar::StdRegions::eFactorSVVPowerKerDiffCoeff, and PowerKernelWeight().
Referenced by BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), and BOOST_AUTO_TEST_CASE().
| void Nektar::StdRegionsUnitTests::CheckQuad | ( | const int | nm0, |
| const int | nm1, | ||
| const int | numMin | ||
| ) |
Definition at line 115 of file StdRegions/TestReduceOrderCoeffs.cpp.
References Nektar::MemoryManager< DataType >::AllocateSharedPtr(), CheckReduceOrderCoeffs(), Nektar::LibUtilities::eGaussLobattoLegendre, Nektar::LibUtilities::eModified_A, and Nektar::LibUtilities::eOrtho_A.
Referenced by BOOST_AUTO_TEST_CASE().
| void Nektar::StdRegionsUnitTests::CheckReduceOrderCoeffs | ( | const StdRegions::StdExpansionSharedPtr & | exp, |
| const StdRegions::StdExpansionSharedPtr & | ortho, | ||
| const std::vector< int > & | degree, | ||
| const int | numMin | ||
| ) |
Check ReduceOrderCoeffs mode by mode.
Each mode of the orthogonal expansion ortho, of the same shape, order and points as exp, is expressed in exp's basis and reduced to numMin. A mode whose degree, in the sense the shape truncates, is below numMin must come back unchanged; every other mode must vanish.
Definition at line 57 of file StdRegions/TestReduceOrderCoeffs.cpp.
Referenced by BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), CheckQuad(), CheckTet(), and CheckTri().
| void Nektar::StdRegionsUnitTests::CheckSVVLaplacianFilter | ( | const StdRegions::StdExpansionSharedPtr & | ortho, |
| const StdRegions::ConstFactorMap & | factors, | ||
| const std::vector< NekDouble > & | weight | ||
| ) |
Check SVVLaplacianFilter mode by mode.
Each mode of the orthogonal expansion ortho is transformed to physical space and filtered with factors. The filter acts diagonally on the orthogonal coefficients, so the result must be the same mode scaled by weight, and every other coefficient must vanish.
Definition at line 65 of file TestSVVLaplacianFilter.cpp.
References Nektar::StdRegions::eLaplacian.
Referenced by BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), and CheckKernels().
| void Nektar::StdRegionsUnitTests::CheckTet | ( | const int | nm, |
| const int | numMin | ||
| ) |
Definition at line 179 of file StdRegions/TestReduceOrderCoeffs.cpp.
References Nektar::MemoryManager< DataType >::AllocateSharedPtr(), CheckReduceOrderCoeffs(), Nektar::LibUtilities::eGaussLobattoLegendre, Nektar::LibUtilities::eModified_A, Nektar::LibUtilities::eModified_B, Nektar::LibUtilities::eModified_C, Nektar::LibUtilities::eOrtho_A, Nektar::LibUtilities::eOrtho_B, and Nektar::LibUtilities::eOrtho_C.
Referenced by BOOST_AUTO_TEST_CASE().
| void Nektar::StdRegionsUnitTests::CheckTri | ( | const int | nm, |
| const int | numMin | ||
| ) |
Definition at line 148 of file StdRegions/TestReduceOrderCoeffs.cpp.
References Nektar::MemoryManager< DataType >::AllocateSharedPtr(), CheckReduceOrderCoeffs(), Nektar::LibUtilities::eGaussLobattoLegendre, Nektar::LibUtilities::eModified_A, Nektar::LibUtilities::eModified_B, Nektar::LibUtilities::eOrtho_A, and Nektar::LibUtilities::eOrtho_B.
Referenced by BOOST_AUTO_TEST_CASE().
| NekDouble Nektar::StdRegionsUnitTests::DGKernelWeight | ( | const std::vector< int > & | nmodes, |
| const std::array< int, 3 > & | label, | ||
| const NekDouble | diffCoeff | ||
| ) |
DG kernel weight of the mode label of an expansion with nmodes.
Definition at line 101 of file TestSVVLaplacianFilter.cpp.
References Nektar::StdRegions::kSVVDGFilter, Nektar::StdRegions::kSVVDGFiltermodesmax, and Nektar::StdRegions::kSVVDGFiltermodesmin.
Referenced by CheckKernels().
|
static |
The orthogonal pyramid of order P on np points per direction of the default orthogonal rule: Gauss-Legendre, Gauss-Legendre and Gauss-Jacobi(1,0) in the collapsed direction.
Definition at line 52 of file TestPyrExactMass.cpp.
References Nektar::MemoryManager< DataType >::AllocateSharedPtr(), Nektar::LibUtilities::eGaussGaussAlpha1Beta0, Nektar::LibUtilities::eGaussGaussLegendre, Nektar::LibUtilities::eOrtho_A, Nektar::LibUtilities::eOrthoPyr_C, and Nektar::LibUtilities::P.
Referenced by BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), and BOOST_AUTO_TEST_CASE().
|
static |
The P3 orthogonal tet on np points per direction of the given types.
Definition at line 48 of file TestTetExactMass.cpp.
References Nektar::MemoryManager< DataType >::AllocateSharedPtr(), Nektar::LibUtilities::eOrtho_A, Nektar::LibUtilities::eOrtho_B, and Nektar::LibUtilities::eOrtho_C.
Referenced by BOOST_AUTO_TEST_CASE().
|
static |
Definition at line 103 of file TestPyrExactMass.cpp.
References Nektar::StdRegions::eMass, and Nektar::LibUtilities::ePyramid.
Referenced by BOOST_AUTO_TEST_CASE().
|
static |
The largest entry of the difference between the mass matrices of a and b.
Definition at line 62 of file TestTetExactMass.cpp.
References Nektar::StdRegions::eMass, and Nektar::LibUtilities::eTetrahedron.
Referenced by BOOST_AUTO_TEST_CASE().
| StdRegions::StdExpansionSharedPtr Nektar::StdRegionsUnitTests::OrthoHex | ( | const int | nm0, |
| const int | nm1, | ||
| const int | nm2, | ||
| ModeLabels & | labels | ||
| ) |
Orthogonal hexahedron; modes stored with p fastest, then q, then r.
Definition at line 189 of file TestSVVLaplacianFilter.cpp.
References Nektar::MemoryManager< DataType >::AllocateSharedPtr(), Nektar::LibUtilities::eGaussLobattoLegendre, and Nektar::LibUtilities::eOrtho_A.
Referenced by BOOST_AUTO_TEST_CASE().
| StdRegions::StdExpansionSharedPtr Nektar::StdRegionsUnitTests::OrthoQuad | ( | const int | nm0, |
| const int | nm1, | ||
| ModeLabels & | labels | ||
| ) |
Orthogonal quadrilateral; modes stored with p fastest.
Definition at line 171 of file TestSVVLaplacianFilter.cpp.
References Nektar::MemoryManager< DataType >::AllocateSharedPtr(), Nektar::LibUtilities::eGaussLobattoLegendre, and Nektar::LibUtilities::eOrtho_A.
Referenced by BOOST_AUTO_TEST_CASE().
| NekDouble Nektar::StdRegionsUnitTests::PowerKernelWeight | ( | const std::vector< int > & | nmodes, |
| const std::array< int, 3 > & | label, | ||
| const NekDouble | cutoff, | ||
| const NekDouble | diffCoeff | ||
| ) |
Power kernel weight of the mode label of an expansion with nmodes.
Definition at line 119 of file TestSVVLaplacianFilter.cpp.
Referenced by CheckKernels().
|
static |
Solve the dense system A x = b in place by Gaussian elimination with partial pivoting; A is row major, n by n.
Definition at line 63 of file TestPyrExactMass.cpp.
Referenced by BOOST_AUTO_TEST_CASE().