Nektar++
Loading...
Searching...
No Matches
Classes | Namespaces | Functions
TestAlignedTraceNormal.cpp File Reference
#include <LibUtilities/Foundations/Interp.h>
#include <LocalRegions/HexExp.h>
#include <LocalRegions/QuadExp.h>
#include <LocalRegions/TetExp.h>
#include <LocalRegions/TriExp.h>
#include <SpatialDomains/Curve.hpp>
#include <SpatialDomains/HexGeom.h>
#include <SpatialDomains/MeshGraph.h>
#include <SpatialDomains/QuadGeom.h>
#include <SpatialDomains/SegGeom.h>
#include <SpatialDomains/TetGeom.h>
#include <SpatialDomains/TriGeom.h>
#include <boost/test/unit_test.hpp>
#include <array>
#include <cmath>
#include <set>
#include <vector>

Go to the source code of this file.

Classes

struct  Nektar::AlignedTraceNormalTests::CurvedTet
 
struct  Nektar::AlignedTraceNormalTests::CurvedHex
 Storage for a hexahedron with curved faces; entities must outlive it. More...
 

Namespaces

namespace  Nektar
 
namespace  Nektar::AlignedTraceNormalTests
 

Functions

static CurvedTet Nektar::AlignedTraceNormalTests::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.
 
 Nektar::AlignedTraceNormalTests::BOOST_AUTO_TEST_CASE (TestDeformedFaceNormalWithDifferentQuadrature)
 
static void Nektar::AlignedTraceNormalTests::CheckAlignedNormals (LocalRegions::Expansion &elmt, const int face, LocalRegions::Expansion &bnd, const std::array< NekDouble, 3 > &centre)
 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 > Nektar::AlignedTraceNormalTests::Centre (LocalRegions::Expansion &elmt)
 
 Nektar::AlignedTraceNormalTests::BOOST_AUTO_TEST_CASE (TestAlignedTriFaceNormals)
 
static void Nektar::AlignedTraceNormalTests::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.
 
 Nektar::AlignedTraceNormalTests::BOOST_AUTO_TEST_CASE (TestAlignedQuadFaceNormals)
 
 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.