|
Nektar++
|
Functions | |
| static std::vector< std::array< int, 4 > > | TetWeights (int np) |
| Barycentric position of every node of a nodal tetrahedron. | |
| static std::vector< std::array< int, 4 > > | PrismPlaces (int np) |
| Where every node of a nodal prism sits. | |
| BOOST_AUTO_TEST_CASE (TestHOTetrahedronAlign) | |
| Aligning a tetrahedron puts every node where its weights say. | |
| BOOST_AUTO_TEST_CASE (TestHOTetrahedronInteriorAlign) | |
| The interior of a tetrahedron aligns on its own too. | |
| BOOST_AUTO_TEST_CASE (TestHOPrismRotate) | |
| Turning a prism moves every node round the triangle it sits in. | |
| BOOST_AUTO_TEST_CASE (TestHOPrismThreeTurnsIsIdentity) | |
| Turning a prism three times leaves it as it was. | |
| Nektar::NekMeshHOAlignmentUnitTest::BOOST_AUTO_TEST_CASE | ( | TestHOPrismRotate | ) |
Turning a prism moves every node round the triangle it sits in.
Definition at line 206 of file TestHOAlignment.cpp.
References nodes, PrismPlaces(), Nektar::SpatialDomains::HOPrism< T >::Rotate(), and Nektar::SpatialDomains::HOPrism< T >::volVerts.
| Nektar::NekMeshHOAlignmentUnitTest::BOOST_AUTO_TEST_CASE | ( | TestHOPrismThreeTurnsIsIdentity | ) |
Turning a prism three times leaves it as it was.
Definition at line 250 of file TestHOAlignment.cpp.
References nodes, Nektar::SpatialDomains::HOPrism< T >::Rotate(), and Nektar::SpatialDomains::HOPrism< T >::volVerts.
| Nektar::NekMeshHOAlignmentUnitTest::BOOST_AUTO_TEST_CASE | ( | TestHOTetrahedronAlign | ) |
Aligning a tetrahedron puts every node where its weights say.
Checked for all 24 ways the four vertices can be relabelled, with the nodes carrying their own index so that where each one ended up can be seen.
Definition at line 104 of file TestHOAlignment.cpp.
References Nektar::SpatialDomains::HOTetrahedron< T >::Align(), nodes, TetWeights(), and Nektar::SpatialDomains::HOTetrahedron< T >::volVerts.
| Nektar::NekMeshHOAlignmentUnitTest::BOOST_AUTO_TEST_CASE | ( | TestHOTetrahedronInteriorAlign | ) |
The interior of a tetrahedron aligns on its own too.
Given only the interior the order cannot be worked out from the number of nodes – the interior of one order has as many as the whole of another – so this is the case where it is deduced rather than given.
Definition at line 155 of file TestHOAlignment.cpp.
References Nektar::SpatialDomains::HOTetrahedron< T >::Align(), nodes, TetWeights(), and Nektar::SpatialDomains::HOTetrahedron< T >::volVerts.
|
static |
Where every node of a nodal prism sits.
The first three are its position in the triangular cross-section and the last is how far along the axis it is, again as whole numbers.
Definition at line 80 of file TestHOAlignment.cpp.
References Nektar::LibUtilities::eNodalPrismEvenlySpaced, and Nektar::LibUtilities::PointsManager().
Referenced by BOOST_AUTO_TEST_CASE().
|
static |
Barycentric position of every node of a nodal tetrahedron.
As whole numbers of 1/(np-1), so that they can be compared exactly. These weights are what says where a node belongs once the vertices are relabelled, so they are also what the test checks the alignment against.
Definition at line 56 of file TestHOAlignment.cpp.
References Nektar::LibUtilities::eNodalTetEvenlySpaced, and Nektar::LibUtilities::PointsManager().
Referenced by BOOST_AUTO_TEST_CASE(), and BOOST_AUTO_TEST_CASE().