|
Nektar++
|
The interior nodes of a high-order tetrahedron, and the vertices they are positioned against. More...
#include <HOAlignment.h>
Public Member Functions | |
| HOTetrahedron (std::vector< int > pVertId, std::vector< T > pVolVerts, int pNumPts=0) | |
| HOTetrahedron (std::vector< int > pVertId) | |
| void | Align (std::vector< int > vertId) |
Reorder volVerts into the frame in which the vertices are numbered as vertId. | |
Public Attributes | |
| std::vector< int > | vertId |
| The tetrahedron vertex IDs. | |
| std::vector< T > | volVerts |
| The interior nodes, in the ordering a nodal tetrahedron of this order puts them in – templated so that this can be either nodes or IDs. | |
| int | numPts = 0 |
| Points along an edge of the element, or zero if volVerts is only its interior and the order should be worked out from that. | |
The interior nodes of a high-order tetrahedron, and the vertices they are positioned against.
The counterpart of HOTriangle for the inside of an element rather than a face. A tetrahedron's nodes are a nodal distribution rather than a grid, so there is no axis to rotate about and no pair of directions to reflect; what there is instead is each node's barycentric position, how much of each of the four vertices it is made of. Those weights belong to the vertices themselves rather than to any numbering of them, so relabelling the vertices is enough to say where every node goes.
Nothing here evaluates a point. Aligning is a permutation of the nodes already held, so a node read from a file keeps the position the file gave it.
Definition at line 351 of file HOAlignment.h.
|
inline |
| pVertId | The four vertex IDs these nodes are positioned against. |
| pVolVerts | The nodes, in the ordering a nodal tetrahedron puts them in. |
| pNumPts | Points along an edge of the element the nodes came from, when pVolVerts holds every node of it. Leave this out when it holds only the interior: the two cannot be told apart by counting, since the interior of one order has as many nodes as the whole of another. |
Definition at line 363 of file HOAlignment.h.
|
inline |
Definition at line 368 of file HOAlignment.h.
|
inline |
Reorder volVerts into the frame in which the vertices are numbered as vertId.
| vertId | The vertex IDs to align to, in the desired order. |
Definition at line 389 of file HOAlignment.h.
References ASSERTL0, Nektar::LibUtilities::eNodalTetEvenlySpaced, Nektar::SpatialDomains::HOTetrahedron< T >::numPts, Nektar::LibUtilities::PointsManager(), Nektar::SpatialDomains::HOTetrahedron< T >::vertId, and Nektar::SpatialDomains::HOTetrahedron< T >::volVerts.
Referenced by Nektar::NekMeshHOAlignmentUnitTest::BOOST_AUTO_TEST_CASE(), and Nektar::NekMeshHOAlignmentUnitTest::BOOST_AUTO_TEST_CASE().
| int Nektar::SpatialDomains::HOTetrahedron< T >::numPts = 0 |
Points along an edge of the element, or zero if volVerts is only its interior and the order should be worked out from that.
Definition at line 381 of file HOAlignment.h.
Referenced by Nektar::SpatialDomains::HOTetrahedron< T >::Align().
| std::vector<int> Nektar::SpatialDomains::HOTetrahedron< T >::vertId |
The tetrahedron vertex IDs.
Definition at line 373 of file HOAlignment.h.
Referenced by Nektar::SpatialDomains::HOTetrahedron< T >::Align().
| std::vector<T> Nektar::SpatialDomains::HOTetrahedron< T >::volVerts |
The interior nodes, in the ordering a nodal tetrahedron of this order puts them in – templated so that this can be either nodes or IDs.
Definition at line 377 of file HOAlignment.h.
Referenced by Nektar::SpatialDomains::HOTetrahedron< T >::Align(), Nektar::NekMeshHOAlignmentUnitTest::BOOST_AUTO_TEST_CASE(), and Nektar::NekMeshHOAlignmentUnitTest::BOOST_AUTO_TEST_CASE().