NeoN
A framework for CFD software
Loading...
Searching...
No Matches
NeoN::TrackingMesh Class Reference

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

Detailed Description

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.

Constructor & Destructor Documentation

◆ TrackingMesh()

NeoN::TrackingMesh::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 )
inline

Construct from a mesh and the connectivity it lacks.

Parameters
meshthe mesh the connectivity belongs to
cellFacesfaces of every cell, internal and boundary
facePointspoints of every face, in face order
faceBasePttet base point of every face, local index in the face
faceTypeTrackingFaceType of every face
cyclicPartnerCellcyclic faces: cell behind the paired face, -1 otherwise
cyclicShiftcyclic faces: translation to the paired face, 0 otherwise
pointsmesh points on the executor of the mesh

Definition at line 78 of file trackingMesh.hpp.

Member Function Documentation

◆ mesh()

const UnstructuredMesh & NeoN::TrackingMesh::mesh ( ) const
inlinenodiscard

Definition at line 116 of file trackingMesh.hpp.

◆ view()

TrackingMeshView NeoN::TrackingMesh::view ( ) const
inlinenodiscard

Views for use inside kernels.

Definition at line 95 of file trackingMesh.hpp.


The documentation for this class was generated from the following file: