|
Nektar++
|
A lightweight struct for dealing with high-order triangle alignment. More...
#include <HOAlignment.h>
Public Member Functions | |
| HOTriangle (std::vector< int > pVertId, std::vector< T > pSurfVerts) | |
| HOTriangle (std::vector< int > pVertId) | |
| void | Rotate (int nrot) |
| Rotates the triangle of data points inside surfVerts counter-clockwise nrot times. | |
| void | Reflect () |
| Reflect data points inside surfVerts. | |
| void | Align (std::vector< int > vertId) |
| Align this surface to a given vertex ID. | |
Public Attributes | |
| std::vector< int > | vertId |
| The triangle vertex IDs. | |
| std::vector< T > | surfVerts |
| The triangle surface vertices – templated so that this can either be nodes or IDs. | |
A lightweight struct for dealing with high-order triangle alignment.
The logic underlying these routines is taken from the original Nektar code.
Definition at line 52 of file HOAlignment.h.
|
inline |
Definition at line 54 of file HOAlignment.h.
|
inline |
Definition at line 58 of file HOAlignment.h.
|
inline |
Align this surface to a given vertex ID.
Definition at line 137 of file HOAlignment.h.
References Nektar::SpatialDomains::HOTriangle< T >::Reflect(), Nektar::SpatialDomains::HOTriangle< T >::Rotate(), and Nektar::SpatialDomains::HOTriangle< T >::vertId.
Referenced by Nektar::SpatialDomains::PrismGeom::v_MakeOrder(), Nektar::SpatialDomains::PyrGeom::v_MakeOrder(), and Nektar::SpatialDomains::TetGeom::v_MakeOrder().
|
inline |
Reflect data points inside surfVerts.
This applies a mapping essentially doing the following reordering:
9 9 7 8 -> 8 7 4 5 6 6 5 4 0 1 2 3 3 2 1 0
Definition at line 111 of file HOAlignment.h.
References tinysimd::sqrt(), and Nektar::SpatialDomains::HOTriangle< T >::surfVerts.
Referenced by Nektar::SpatialDomains::HOTriangle< T >::Align().
|
inline |
Rotates the triangle of data points inside surfVerts counter-clockwise nrot times.
| nrot | Number of times to rotate triangle. |
Definition at line 75 of file HOAlignment.h.
References tinysimd::sqrt(), and Nektar::SpatialDomains::HOTriangle< T >::surfVerts.
Referenced by Nektar::SpatialDomains::HOTriangle< T >::Align().
| std::vector<T> Nektar::SpatialDomains::HOTriangle< T >::surfVerts |
The triangle surface vertices – templated so that this can either be nodes or IDs.
Definition at line 67 of file HOAlignment.h.
Referenced by Nektar::SpatialDomains::HOTriangle< T >::Reflect(), Nektar::SpatialDomains::HOTriangle< T >::Rotate(), Nektar::SpatialDomains::PrismGeom::v_MakeOrder(), Nektar::SpatialDomains::PyrGeom::v_MakeOrder(), and Nektar::SpatialDomains::TetGeom::v_MakeOrder().
| std::vector<int> Nektar::SpatialDomains::HOTriangle< T >::vertId |
The triangle vertex IDs.
Definition at line 63 of file HOAlignment.h.
Referenced by Nektar::SpatialDomains::HOTriangle< T >::Align().