|
NeoN
A framework for CFD software
|
Connectivity for locating points (e.g. particles) in an UnstructuredMesh and interpolating cell values to them, on the executor (CPU or GPU). More...
#include <trackingMesh.hpp>
Public Member Functions | |
| TrackingMesh (const UnstructuredMesh &mesh, SegmentedVector< label, localIdx > cellFaces, SegmentedVector< label, localIdx > facePoints, Vector< label > faceBasePt, Vector< label > faceType, Vector< label > cyclicPartnerCell, Vector< Vec3 > cyclicShift, Vector< Vec3 > points) | |
| Construct from a mesh and the connectivity it lacks. | |
| TrackingMeshView | view () const |
| Views for use inside kernels. | |
| const UnstructuredMesh & | mesh () const |
Connectivity for locating points (e.g. particles) in an UnstructuredMesh and interpolating cell values to them, on the executor (CPU or GPU).
UnstructuredMesh stores cell and face geometry but not which faces belong to a cell or which points belong to a face. TrackingMesh adds exactly that, plus the tet base point of every face (for the tet decomposition used by point interpolation) and the periodic (cyclic) face pairing. It also keeps its own copy of the points on the executor, since UnstructuredMesh may hold them on the host only.
The geometry it does not own is read from the mesh, which must outlive it.
Definition at line 63 of file trackingMesh.hpp.
|
inline |
Construct from a mesh and the connectivity it lacks.
| mesh | the mesh the connectivity belongs to |
| cellFaces | faces of every cell, internal and boundary |
| facePoints | points of every face, in face order |
| faceBasePt | tet base point of every face, local index in the face |
| faceType | TrackingFaceType of every face |
| cyclicPartnerCell | cyclic faces: cell behind the paired face, -1 otherwise |
| cyclicShift | cyclic faces: translation to the paired face, 0 otherwise |
| points | mesh points on the executor of the mesh |
Definition at line 78 of file trackingMesh.hpp.
|
inlinenodiscard |
Definition at line 116 of file trackingMesh.hpp.
|
inlinenodiscard |
Views for use inside kernels.
Definition at line 95 of file trackingMesh.hpp.