Nektar++
Loading...
Searching...
No Matches
Classes | Namespaces | Typedefs | Functions | Variables
TestFaceOrientation.cpp File Reference
#include <SpatialDomains/HexGeom.h>
#include <SpatialDomains/MeshGraph.h>
#include <SpatialDomains/PrismGeom.h>
#include <SpatialDomains/PyrGeom.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 <map>
#include <set>
#include <sstream>
#include <vector>

Go to the source code of this file.

Classes

struct  Nektar::FaceOrientationTests::ShapeDef
 A shape, as the vertices of each of its faces and of each of its edges. The edge table is only needed by the shapes that can be built with their vertices stated outright. More...
 
struct  Nektar::FaceOrientationTests::Parts
 Storage for one built element; the parts must outlive it. More...
 

Namespaces

namespace  Nektar
 
namespace  Nektar::FaceOrientationTests
 

Typedefs

typedef std::array< NekDouble, 3 > Nektar::FaceOrientationTests::Pt
 

Functions

static StdRegions::Orientation Nektar::FaceOrientationTests::ReferenceOrient (const std::vector< Pt > &ev, const std::vector< Pt > &fv, int base)
 The orientation of a face, recovered from coordinates.
 
static void Nektar::FaceOrientationTests::Build (Parts &p, const ShapeDef &shape, const std::vector< Pt > &x, const std::vector< int > &rot, bool statedVerts=false)
 Build shape, with the vertices of face f started at its rot[f]'th vertex.
 
static void Nektar::FaceOrientationTests::CheckElement (const ShapeDef &shape, const std::vector< Pt > &x, const std::vector< int > &rot, std::set< StdRegions::Orientation > &seen, bool statedVerts)
 Check every face of one built element against the reference algorithm.
 
static void Nektar::FaceOrientationTests::SweepRotations (const ShapeDef &shape, const std::vector< Pt > &x, bool statedVerts=false)
 Check every way of starting each face at a different one of its vertices.
 
 Nektar::FaceOrientationTests::BOOST_AUTO_TEST_CASE (TestTetFaceOrientation)
 
 Nektar::FaceOrientationTests::BOOST_AUTO_TEST_CASE (TestTetFaceOrientationStatedVerts)
 The same sweep over an element built the way NekMesh builds one.
 
 Nektar::FaceOrientationTests::BOOST_AUTO_TEST_CASE (TestPrismFaceOrientationStatedVerts)
 
 Nektar::FaceOrientationTests::BOOST_AUTO_TEST_CASE (TestPyrFaceOrientation)
 
 Nektar::FaceOrientationTests::BOOST_AUTO_TEST_CASE (TestPrismFaceOrientation)
 
 Nektar::FaceOrientationTests::BOOST_AUTO_TEST_CASE (TestHexFaceOrientation)
 
 Nektar::FaceOrientationTests::BOOST_AUTO_TEST_CASE (TestHexFaceOrientationStatedVerts)
 The hexahedron built the way NekMesh builds one.
 

Variables

static const ShapeDef Nektar::FaceOrientationTests::kTet
 The face-vertex tables the geometry classes use, with the padding entry the triangular faces of a prism and a pyramid carry in the source removed.
 
static const ShapeDef Nektar::FaceOrientationTests::kPyr
 
static const ShapeDef Nektar::FaceOrientationTests::kPrism
 
static const ShapeDef Nektar::FaceOrientationTests::kHex