Portage::SearchKDTree< D, Entity_kind::CELL, SourceMeshType, TargetMeshType > Class Template Reference
A k-d tree search class (specialization) that allows us to search for cells from one mesh (source) that potentially overlap a cell from the second mesh (target) More...
#include <search_kdtree.h>
Public Member Functions | |
SearchKDTree ()=delete | |
Default constructor (disabled) More... | |
SearchKDTree (const SourceMeshType &source_mesh, const TargetMeshType &target_mesh) | |
Builds the k-d tree for searching for intersection candidates. More... | |
std::vector< int > | operator() (const int cellId) const |
Find the source mesh entities whose control volumes potentially overlap control volumes of a given target entity. More... | |
Detailed Description
template<int D, typename SourceMeshType, typename TargetMeshType>
class Portage::SearchKDTree< D, Entity_kind::CELL, SourceMeshType, TargetMeshType >
A k-d tree search class (specialization) that allows us to search for cells from one mesh (source) that potentially overlap a cell from the second mesh (target)
- Template Parameters
-
D The dimension of the problem space. SourceMeshType The mesh type of the source mesh. TargetMeshType The mesh type of the target mesh.
Constructor & Destructor Documentation
◆ SearchKDTree() [1/2]
template<int D, typename SourceMeshType , typename TargetMeshType >
|
delete |
Default constructor (disabled)
◆ SearchKDTree() [2/2]
template<int D, typename SourceMeshType , typename TargetMeshType >
|
inline |
Builds the k-d tree for searching for intersection candidates.
- Parameters
-
[in] source_mesh Mesh in which we search for candidates [in] target_mesh Mesh containing entity for which we search
Constructor for k-d tree for finding cells from a source mesh that overlap the target mesh.
Member Function Documentation
◆ operator()()
template<int D, typename SourceMeshType , typename TargetMeshType >
|
inline |
Find the source mesh entities whose control volumes potentially overlap control volumes of a given target entity.
- Parameters
-
[in] cellId The index of the cell in the target mesh for which we wish to find the candidate overlapping cells in the source mesh. [in,out] candidates Pointer to a vector of potential candidate cells in the source mesh.
The documentation for this class was generated from the following file:
- /home/portage/portage/portage/search/search_kdtree.h