|
Nektar++
|
Classes | |
| struct | CurvedHex |
| Storage for a hexahedron with curved faces; entities must outlive it. More... | |
| struct | CurvedTet |
Functions | |
| static CurvedTet | MakeCurvedTet (const int flip=0) |
Build a tetrahedron with a curved face 0. Setting bit i of flip traverses face i (1-3) the other way round, keeping its first edge on face 0 as TetGeom requires, which changes the orientation the element sees. | |
| BOOST_AUTO_TEST_CASE (TestDeformedFaceNormalWithDifferentQuadrature) | |
| static void | CheckAlignedNormals (LocalRegions::Expansion &elmt, const int face, LocalRegions::Expansion &bnd, const std::array< NekDouble, 3 > ¢re) |
Check that the normals of face, sampled on bnd, are unit vectors orthogonal to the boundary expansion's own tangents and point from centre towards the face. A normal assigned to the wrong point of a curved face fails the orthogonality check. | |
| static std::array< NekDouble, 3 > | Centre (LocalRegions::Expansion &elmt) |
| BOOST_AUTO_TEST_CASE (TestAlignedTriFaceNormals) | |
| static void | MakeCurvedHex (CurvedHex &p, const int rot, const bool reverse) |
Build a hexahedron whose faces are numbered rot steps around (and optionally reversed), so that the element sees non-trivial and transposed face orientations, then curve every edge and face with an asymmetric perturbation of their high-order nodes. | |
| BOOST_AUTO_TEST_CASE (TestAlignedQuadFaceNormals) | |
| BOOST_AUTO_TEST_CASE (TestDeformedQuadEdgeNormals) | |
| The edge normals of a straight-sided quadrilateral that is not a parallelogram, and so deformed, are the constant outward normals of its sides, on Gauss points of every count, one point per direction included. | |
| Nektar::AlignedTraceNormalTests::BOOST_AUTO_TEST_CASE | ( | TestAlignedQuadFaceNormals | ) |
Definition at line 432 of file TestAlignedTraceNormal.cpp.
References Nektar::MemoryManager< DataType >::AllocateSharedPtr(), Centre(), CheckAlignedNormals(), Nektar::SpatialDomains::eDeformed, Nektar::StdRegions::eDir1FwdDir2_Dir2FwdDir1, Nektar::LibUtilities::eGaussLobattoLegendre, Nektar::LibUtilities::eModified_A, Nektar::AlignedTraceNormalTests::CurvedHex::hex, and MakeCurvedHex().
| Nektar::AlignedTraceNormalTests::BOOST_AUTO_TEST_CASE | ( | TestAlignedTriFaceNormals | ) |
Definition at line 277 of file TestAlignedTraceNormal.cpp.
References Nektar::MemoryManager< DataType >::AllocateSharedPtr(), Centre(), CheckAlignedNormals(), Nektar::LibUtilities::eGaussLobattoLegendre, Nektar::LibUtilities::eModified_A, Nektar::LibUtilities::eModified_B, Nektar::LibUtilities::eModified_C, MakeCurvedTet(), and Nektar::AlignedTraceNormalTests::CurvedTet::tet.
| Nektar::AlignedTraceNormalTests::BOOST_AUTO_TEST_CASE | ( | TestDeformedFaceNormalWithDifferentQuadrature | ) |
Definition at line 157 of file TestAlignedTraceNormal.cpp.
References Nektar::MemoryManager< DataType >::AllocateSharedPtr(), Nektar::SpatialDomains::eDeformed, Nektar::LibUtilities::eGaussLobattoLegendre, Nektar::LibUtilities::eModified_A, Nektar::LibUtilities::eModified_B, Nektar::LibUtilities::eModified_C, Nektar::AlignedTraceNormalTests::CurvedTet::faces, Nektar::LibUtilities::Interp2D(), MakeCurvedTet(), and Nektar::AlignedTraceNormalTests::CurvedTet::tet.
| Nektar::AlignedTraceNormalTests::BOOST_AUTO_TEST_CASE | ( | TestDeformedQuadEdgeNormals | ) |
The edge normals of a straight-sided quadrilateral that is not a parallelogram, and so deformed, are the constant outward normals of its sides, on Gauss points of every count, one point per direction included.
Definition at line 498 of file TestAlignedTraceNormal.cpp.
References Nektar::MemoryManager< DataType >::AllocateSharedPtr(), Nektar::SpatialDomains::eDeformed, Nektar::LibUtilities::eGaussGaussLegendre, and Nektar::LibUtilities::eOrtho_A.
|
static |
Definition at line 268 of file TestAlignedTraceNormal.cpp.
References Nektar::StdRegions::StdExpansion::GetCoords(), Nektar::StdRegions::StdExpansion::GetTotPoints(), and Vmath::Vsum().
Referenced by BOOST_AUTO_TEST_CASE(), and BOOST_AUTO_TEST_CASE().
|
static |
Check that the normals of face, sampled on bnd, are unit vectors orthogonal to the boundary expansion's own tangents and point from centre towards the face. A normal assigned to the wrong point of a curved face fails the orthogonality check.
Definition at line 220 of file TestAlignedTraceNormal.cpp.
References Nektar::LocalRegions::Expansion::GetAlignedTraceNormal(), and Vmath::Vsum().
Referenced by BOOST_AUTO_TEST_CASE(), and BOOST_AUTO_TEST_CASE().
|
static |
Build a hexahedron whose faces are numbered rot steps around (and optionally reversed), so that the element sees non-trivial and transposed face orientations, then curve every edge and face with an asymmetric perturbation of their high-order nodes.
Definition at line 322 of file TestAlignedTraceNormal.cpp.
References Nektar::LibUtilities::ePolyEvenlySpaced, Nektar::SpatialDomains::Geometry::FillGeom(), Nektar::SpatialDomains::Geometry::GetGlobalID(), and Nektar::SpatialDomains::Geometry::MakeOrder().
Referenced by BOOST_AUTO_TEST_CASE().
|
static |
Build a tetrahedron with a curved face 0. Setting bit i of flip traverses face i (1-3) the other way round, keeping its first edge on face 0 as TetGeom requires, which changes the orientation the element sees.
Definition at line 72 of file TestAlignedTraceNormal.cpp.
References Nektar::LibUtilities::eNodalTriEvenlySpaced, Nektar::LibUtilities::ePolyEvenlySpaced, and Nektar::SpatialDomains::PointGeom::UpdatePosition().
Referenced by BOOST_AUTO_TEST_CASE(), and BOOST_AUTO_TEST_CASE().