Portage::IntersectBoxes< D, SourceMeshType, TargetMeshType, CoordSys > Class Template Reference

#include <intersect_boxes.h>

Public Member Functions

 IntersectBoxes ()=delete
 Default constructor (disabled) More...
 
 IntersectBoxes (const SourceMeshType &source_mesh, const TargetMeshType &target_mesh)
 Constructor with meshes. More...
 
IntersectBoxesoperator= (const IntersectBoxes &)=delete
 Assignment operator (disabled) More...
 
std::vector< Portage::Weights_t > operator() (const int tgt_cell, const std::vector< int > &src_cells) const
 Intersect control volume of a target box with control volumes of a set of source boxes. More...
 

Detailed Description

template<int D, typename SourceMeshType, typename TargetMeshType, class CoordSys = Wonton::DefaultCoordSys>
class Portage::IntersectBoxes< D, SourceMeshType, TargetMeshType, CoordSys >

for axis-aligned boxes

It is assumed that both boxes are axis-aligned and in the same geometry. For example, this will work for two axis-aligned cells in 2D axis-aligned cylindrical geometry, but it cannot intersect a 3D axis-aligned box in Cartesian coordinates with a 3D axis-aligned box in spherical coordinates.

Constructor & Destructor Documentation

◆ IntersectBoxes() [1/2]

template<int D, typename SourceMeshType , typename TargetMeshType , class CoordSys = Wonton::DefaultCoordSys>
Portage::IntersectBoxes< D, SourceMeshType, TargetMeshType, CoordSys >::IntersectBoxes ( )
delete

Default constructor (disabled)

◆ IntersectBoxes() [2/2]

template<int D, typename SourceMeshType , typename TargetMeshType , class CoordSys = Wonton::DefaultCoordSys>
Portage::IntersectBoxes< D, SourceMeshType, TargetMeshType, CoordSys >::IntersectBoxes ( const SourceMeshType &  source_mesh,
const TargetMeshType &  target_mesh 
)
inline

Constructor with meshes.

Member Function Documentation

◆ operator()()

template<int D, typename SourceMeshType , typename TargetMeshType , class CoordSys >
std::vector< Portage::Weights_t > Portage::IntersectBoxes< D, SourceMeshType, TargetMeshType, CoordSys >::operator() ( const int  tgt_cell,
const std::vector< int > &  src_cells 
) const

Intersect control volume of a target box with control volumes of a set of source boxes.

Parameters
[in]tgt_cellEntity of target mesh to intersect
[in]src_cellsEntities of source mesh to intersect against
Returns
vector of Weights_t structure containing moments of intersection

◆ operator=()

template<int D, typename SourceMeshType , typename TargetMeshType , class CoordSys = Wonton::DefaultCoordSys>
IntersectBoxes& Portage::IntersectBoxes< D, SourceMeshType, TargetMeshType, CoordSys >::operator= ( const IntersectBoxes< D, SourceMeshType, TargetMeshType, CoordSys > &  )
delete

Assignment operator (disabled)


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