Portage::IntersectSweptFace< dim, on_what, SourceMesh, SourceState, TargetMesh, InterfaceReconstructor, Matpoly_Splitter, Matpoly_Clipper > Class Template Reference

Kernel to compute interpolation weights for swept-face remap. More...

#include <intersect_swept_face.h>

Public Member Functions

 IntersectSweptFace ()=delete
 Default constructor (disabled). More...
 
 IntersectSweptFace (SourceMesh const &source_mesh, SourceState const &source_state, TargetMesh const &target_mesh, NumericTolerances_t num_tols)
 Constructor for single material case. More...
 
IntersectSweptFaceoperator= (IntersectSweptFace const &other)=delete
 Assignment operator (disabled). More...
 
 ~IntersectSweptFace ()=default
 Destructor. More...
 
void set_material (int m)
 Set the material we are operating on. More...
 
void toggle_displacement_check (bool enable)
 Toggle target mesh displacement validity check. More...
 
std::vector< Weights_t > operator() (int target_id, std::vector< int > const &stencil) const
 Perform the actual swept faces volumes computation. More...
 

Detailed Description

template<int dim, Entity_kind on_what, class SourceMesh, class SourceState, class TargetMesh, template< class, int, class, class > class InterfaceReconstructor = DummyInterfaceReconstructor, class Matpoly_Splitter = void, class Matpoly_Clipper = void>
class Portage::IntersectSweptFace< dim, on_what, SourceMesh, SourceState, TargetMesh, InterfaceReconstructor, Matpoly_Splitter, Matpoly_Clipper >

Kernel to compute interpolation weights for swept-face remap.

Template Parameters
dimdimension of the problem.
on_whatthe entity kind we want to remap.
SourceMeshthe source mesh wrapper type.
SourceStatethe source state wrapper to query field infos.
TargetMeshthe target mesh wrapper type.
InterfaceReconstructormaterials interface reconstructor type.
Matpoly_Splittermaterial polygons splitter type.
Matpoly_Clippermaterial polygons clipper type.

Constructor & Destructor Documentation

◆ IntersectSweptFace() [1/2]

template<int dim, Entity_kind on_what, class SourceMesh , class SourceState , class TargetMesh , template< class, int, class, class > class InterfaceReconstructor = DummyInterfaceReconstructor, class Matpoly_Splitter = void, class Matpoly_Clipper = void>
Portage::IntersectSweptFace< dim, on_what, SourceMesh, SourceState, TargetMesh, InterfaceReconstructor, Matpoly_Splitter, Matpoly_Clipper >::IntersectSweptFace ( )
delete

Default constructor (disabled).

◆ IntersectSweptFace() [2/2]

template<int dim, Entity_kind on_what, class SourceMesh , class SourceState , class TargetMesh , template< class, int, class, class > class InterfaceReconstructor = DummyInterfaceReconstructor, class Matpoly_Splitter = void, class Matpoly_Clipper = void>
Portage::IntersectSweptFace< dim, on_what, SourceMesh, SourceState, TargetMesh, InterfaceReconstructor, Matpoly_Splitter, Matpoly_Clipper >::IntersectSweptFace ( SourceMesh const &  source_mesh,
SourceState const &  source_state,
TargetMesh const &  target_mesh,
NumericTolerances_t  num_tols 
)
inline

Constructor for single material case.

Parameters
[in]source_meshmesh wrapper used to query source mesh info.
[in]source_statestate-manager wrapper used to query field info.
[in]target_meshmesh wrapper used to query target mesh info.
[in]num_tolsnumerical tolerances.

◆ ~IntersectSweptFace()

template<int dim, Entity_kind on_what, class SourceMesh , class SourceState , class TargetMesh , template< class, int, class, class > class InterfaceReconstructor = DummyInterfaceReconstructor, class Matpoly_Splitter = void, class Matpoly_Clipper = void>
Portage::IntersectSweptFace< dim, on_what, SourceMesh, SourceState, TargetMesh, InterfaceReconstructor, Matpoly_Splitter, Matpoly_Clipper >::~IntersectSweptFace ( )
default

Destructor.

Member Function Documentation

◆ operator()()

template<int dim, Entity_kind on_what, class SourceMesh , class SourceState , class TargetMesh , template< class, int, class, class > class InterfaceReconstructor = DummyInterfaceReconstructor, class Matpoly_Splitter = void, class Matpoly_Clipper = void>
std::vector<Weights_t> Portage::IntersectSweptFace< dim, on_what, SourceMesh, SourceState, TargetMesh, InterfaceReconstructor, Matpoly_Splitter, Matpoly_Clipper >::operator() ( int  target_id,
std::vector< int > const &  stencil 
) const
inline

Perform the actual swept faces volumes computation.

Parameters
target_idthe current target cell index.
source_idthe related source cell index.
stencilcurrent source cell and its immediate neighbors.
Returns
: a list of swept faces volume and related source cell pair.

◆ operator=()

template<int dim, Entity_kind on_what, class SourceMesh , class SourceState , class TargetMesh , template< class, int, class, class > class InterfaceReconstructor = DummyInterfaceReconstructor, class Matpoly_Splitter = void, class Matpoly_Clipper = void>
IntersectSweptFace& Portage::IntersectSweptFace< dim, on_what, SourceMesh, SourceState, TargetMesh, InterfaceReconstructor, Matpoly_Splitter, Matpoly_Clipper >::operator= ( IntersectSweptFace< dim, on_what, SourceMesh, SourceState, TargetMesh, InterfaceReconstructor, Matpoly_Splitter, Matpoly_Clipper > const &  other)
delete

Assignment operator (disabled).

Parameters
[in]otherthe intersector to copy.
Returns
current intersector reference.

◆ set_material()

template<int dim, Entity_kind on_what, class SourceMesh , class SourceState , class TargetMesh , template< class, int, class, class > class InterfaceReconstructor = DummyInterfaceReconstructor, class Matpoly_Splitter = void, class Matpoly_Clipper = void>
void Portage::IntersectSweptFace< dim, on_what, SourceMesh, SourceState, TargetMesh, InterfaceReconstructor, Matpoly_Splitter, Matpoly_Clipper >::set_material ( int  m)
inline

Set the material we are operating on.

Parameters
mthe material ID

◆ toggle_displacement_check()

template<int dim, Entity_kind on_what, class SourceMesh , class SourceState , class TargetMesh , template< class, int, class, class > class InterfaceReconstructor = DummyInterfaceReconstructor, class Matpoly_Splitter = void, class Matpoly_Clipper = void>
void Portage::IntersectSweptFace< dim, on_what, SourceMesh, SourceState, TargetMesh, InterfaceReconstructor, Matpoly_Splitter, Matpoly_Clipper >::toggle_displacement_check ( bool  enable)
inline

Toggle target mesh displacement validity check.


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