FEAT 3
Finite Element Analysis Toolbox
Loading...
Searching...
No Matches
FEAT::Global::InverseMapping< InverseMappingType_ > Class Template Reference

Global inverse mapping. More...

#include <inverse_mapping.hpp>

Classes

struct  UnmappingResult
 Pair for communicating cells and associated domain points between ranks. More...
 

Public Types

using BoundingBoxType = Tiny::Matrix< DataType, 2, world_dim >
 Axis-aligned bounding box type. More...
 
using DataType = typename InverseMappingType::DataType
 Datatype. More...
 
using DomainPointType = typename InvMapDataType::DomainPointType
 Point type for points on the reference element. More...
 
using ImagePointType = typename InvMapDataType::ImagePointType
 Point type for points on the mesh. More...
 
using InverseMappingType = InverseMappingType_
 Local inverse mapping type. More...
 
using InvMapDataType = GlobalInverseMappingData< DataType, shape_dim, world_dim >
 The type returned by the unmap method. More...
 
using ShapeType = typename InverseMappingType::ShapeType
 Shape type. More...
 
using TrafoType = typename InverseMappingType::TrafoType
 Trafo type. More...
 

Public Member Functions

 InverseMapping (const Dist::Comm &comm, const InverseMappingType &m)
 Constructor. More...
 
template<typename PointRange_ >
std::vector< InvMapDataType > unmap_points (const PointRange_ &points)
 Unmap a range of points. More...
 

Static Public Attributes

static constexpr int shape_dim = ShapeType::dimension
 Shape dimension. More...
 
static constexpr int world_dim = TrafoType::world_dim
 World dimension. More...
 

Private Member Functions

BoundingBoxType get_local_bb ()
 Get bounding box of local part of domain. More...
 

Static Private Member Functions

static bool is_in_bb (const BoundingBoxType &bb, const ImagePointType &p)
 Check if a point is in a bounding box. More...
 

Private Attributes

Dist::Comm _comm
 Communicator that domain is distributed across. More...
 
BoundingBoxType _local_bb
 Bounding box of local patch. More...
 
std::reference_wrapper< const InverseMappingType > _mapping
 Reference to local inverse mapping. More...
 

Detailed Description

template<typename InverseMappingType_>
class FEAT::Global::InverseMapping< InverseMappingType_ >

Global inverse mapping.

This class template can be used to unmap points on a distributed domain.

The unmapping works as follows:

  • The ranks exchange the axis-aligned bounding boxes of their patches
  • The ranks exchange points, such that each ranks has all points that are contained in the bounding box of its patch
  • The ranks unmap their points and send resulting cells and domain points back to the ranks that originally asked to unmap that point

Definition at line 122 of file inverse_mapping.hpp.

Member Typedef Documentation

◆ BoundingBoxType

template<typename InverseMappingType_ >
using FEAT::Global::InverseMapping< InverseMappingType_ >::BoundingBoxType = Tiny::Matrix<DataType, 2, world_dim>

Axis-aligned bounding box type.

Definition at line 144 of file inverse_mapping.hpp.

◆ DataType

template<typename InverseMappingType_ >
using FEAT::Global::InverseMapping< InverseMappingType_ >::DataType = typename InverseMappingType::DataType

Datatype.

Definition at line 130 of file inverse_mapping.hpp.

◆ DomainPointType

template<typename InverseMappingType_ >
using FEAT::Global::InverseMapping< InverseMappingType_ >::DomainPointType = typename InvMapDataType::DomainPointType

Point type for points on the reference element.

Definition at line 142 of file inverse_mapping.hpp.

◆ ImagePointType

template<typename InverseMappingType_ >
using FEAT::Global::InverseMapping< InverseMappingType_ >::ImagePointType = typename InvMapDataType::ImagePointType

Point type for points on the mesh.

Definition at line 140 of file inverse_mapping.hpp.

◆ InverseMappingType

template<typename InverseMappingType_ >
using FEAT::Global::InverseMapping< InverseMappingType_ >::InverseMappingType = InverseMappingType_

Local inverse mapping type.

Definition at line 126 of file inverse_mapping.hpp.

◆ InvMapDataType

template<typename InverseMappingType_ >
using FEAT::Global::InverseMapping< InverseMappingType_ >::InvMapDataType = GlobalInverseMappingData<DataType, shape_dim, world_dim>

The type returned by the unmap method.

Definition at line 138 of file inverse_mapping.hpp.

◆ ShapeType

template<typename InverseMappingType_ >
using FEAT::Global::InverseMapping< InverseMappingType_ >::ShapeType = typename InverseMappingType::ShapeType

Shape type.

Definition at line 132 of file inverse_mapping.hpp.

◆ TrafoType

template<typename InverseMappingType_ >
using FEAT::Global::InverseMapping< InverseMappingType_ >::TrafoType = typename InverseMappingType::TrafoType

Trafo type.

Definition at line 128 of file inverse_mapping.hpp.

Constructor & Destructor Documentation

◆ InverseMapping()

template<typename InverseMappingType_ >
FEAT::Global::InverseMapping< InverseMappingType_ >::InverseMapping ( const Dist::Comm &  comm,
const InverseMappingType &  m 
)
inline

Constructor.

Definition at line 172 of file inverse_mapping.hpp.

Member Function Documentation

◆ get_local_bb()

template<typename InverseMappingType_ >
BoundingBoxType FEAT::Global::InverseMapping< InverseMappingType_ >::get_local_bb ( )
inlineprivate

◆ is_in_bb()

template<typename InverseMappingType_ >
static bool FEAT::Global::InverseMapping< InverseMappingType_ >::is_in_bb ( const BoundingBoxType &  bb,
const ImagePointType &  p 
)
inlinestaticprivate

◆ unmap_points()

template<typename InverseMappingType_ >
template<typename PointRange_ >
std::vector< InvMapDataType > FEAT::Global::InverseMapping< InverseMappingType_ >::unmap_points ( const PointRange_ &  points)
inline

Member Data Documentation

◆ _comm

template<typename InverseMappingType_ >
Dist::Comm FEAT::Global::InverseMapping< InverseMappingType_ >::_comm
private

Communicator that domain is distributed across.

Definition at line 148 of file inverse_mapping.hpp.

Referenced by FEAT::Global::InverseMapping< InverseMappingType_ >::unmap_points().

◆ _local_bb

template<typename InverseMappingType_ >
BoundingBoxType FEAT::Global::InverseMapping< InverseMappingType_ >::_local_bb
private

Bounding box of local patch.

Definition at line 152 of file inverse_mapping.hpp.

Referenced by FEAT::Global::InverseMapping< InverseMappingType_ >::unmap_points().

◆ _mapping

template<typename InverseMappingType_ >
std::reference_wrapper<const InverseMappingType> FEAT::Global::InverseMapping< InverseMappingType_ >::_mapping
private

◆ shape_dim

template<typename InverseMappingType_ >
constexpr int FEAT::Global::InverseMapping< InverseMappingType_ >::shape_dim = ShapeType::dimension
staticconstexpr

Shape dimension.

Definition at line 134 of file inverse_mapping.hpp.

◆ world_dim

template<typename InverseMappingType_ >
constexpr int FEAT::Global::InverseMapping< InverseMappingType_ >::world_dim = TrafoType::world_dim
staticconstexpr

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