|
Nektar++
|
The nodes of a high-order prism, and the vertices they sit against. More...
#include <HOAlignment.h>
Public Member Functions | |
| HOPrism (std::vector< int > pVertId, std::vector< T > pVolVerts, int pNumPts) | |
| void | Rotate (int nrot) |
Turn the triangular cross-section nrot thirds of a turn. | |
| void | Align (std::vector< int > vertId) |
Turn the prism so that its vertices read as vertId. | |
Public Attributes | |
| std::vector< int > | vertId |
| The prism vertex IDs. | |
| std::vector< T > | volVerts |
| The nodes, in nodal prism ordering. | |
| int | numPts |
| Points along an edge of the element. | |
The nodes of a high-order prism, and the vertices they sit against.
A prism is a triangle extruded along an axis, and the only way one is ever reoriented is by turning that triangle: NekMesh's OrientPrism leaves the element unrotated or spins it one way or the other, and either way both triangular faces turn together and the axis is left alone. So a node is placed by how much of each corner of the triangle it is made of, carried along at whatever height up the axis it already had.
As with HOTetrahedron nothing is evaluated: aligning permutes the nodes that are already held.
Definition at line 493 of file HOAlignment.h.
|
inline |
| pVertId | The six vertex IDs, in the standard element's order. |
| pVolVerts | Every node of the element, in the ordering a nodal prism puts them in. |
| pNumPts | Points along an edge of the element. |
Definition at line 501 of file HOAlignment.h.
|
inline |
Turn the prism so that its vertices read as vertId.
Definition at line 579 of file HOAlignment.h.
References ASSERTL0, Nektar::SpatialDomains::HOPrism< T >::Rotate(), and Nektar::SpatialDomains::HOPrism< T >::vertId.
|
inline |
Turn the triangular cross-section nrot thirds of a turn.
Definition at line 518 of file HOAlignment.h.
References ASSERTL0, Nektar::LibUtilities::eNodalPrismEvenlySpaced, Nektar::SpatialDomains::HOPrism< T >::numPts, Nektar::LibUtilities::PointsManager(), and Nektar::SpatialDomains::HOPrism< T >::volVerts.
Referenced by Nektar::SpatialDomains::HOPrism< T >::Align(), Nektar::NekMeshHOAlignmentUnitTest::BOOST_AUTO_TEST_CASE(), and Nektar::NekMeshHOAlignmentUnitTest::BOOST_AUTO_TEST_CASE().
| int Nektar::SpatialDomains::HOPrism< T >::numPts |
Points along an edge of the element.
Definition at line 513 of file HOAlignment.h.
Referenced by Nektar::SpatialDomains::HOPrism< T >::Rotate().
| std::vector<int> Nektar::SpatialDomains::HOPrism< T >::vertId |
The prism vertex IDs.
Definition at line 507 of file HOAlignment.h.
Referenced by Nektar::SpatialDomains::HOPrism< T >::Align().
| std::vector<T> Nektar::SpatialDomains::HOPrism< T >::volVerts |
The nodes, in nodal prism ordering.
Definition at line 510 of file HOAlignment.h.
Referenced by Nektar::NekMeshHOAlignmentUnitTest::BOOST_AUTO_TEST_CASE(), Nektar::NekMeshHOAlignmentUnitTest::BOOST_AUTO_TEST_CASE(), and Nektar::SpatialDomains::HOPrism< T >::Rotate().