|
FEAT 3
Finite Element Analysis Toolbox
|
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... | |
Global inverse mapping.
This class template can be used to unmap points on a distributed domain.
The unmapping works as follows:
Definition at line 122 of file inverse_mapping.hpp.
| 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.
| using FEAT::Global::InverseMapping< InverseMappingType_ >::DataType = typename InverseMappingType::DataType |
Datatype.
Definition at line 130 of file inverse_mapping.hpp.
| 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.
| 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.
| using FEAT::Global::InverseMapping< InverseMappingType_ >::InverseMappingType = InverseMappingType_ |
Local inverse mapping type.
Definition at line 126 of file inverse_mapping.hpp.
| 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.
| using FEAT::Global::InverseMapping< InverseMappingType_ >::ShapeType = typename InverseMappingType::ShapeType |
Shape type.
Definition at line 132 of file inverse_mapping.hpp.
| using FEAT::Global::InverseMapping< InverseMappingType_ >::TrafoType = typename InverseMappingType::TrafoType |
Trafo type.
Definition at line 128 of file inverse_mapping.hpp.
|
inline |
Constructor.
Definition at line 172 of file inverse_mapping.hpp.
|
inlineprivate |
Get bounding box of local part of domain.
Definition at line 275 of file inverse_mapping.hpp.
References FEAT::Global::InverseMapping< InverseMappingType_ >::_mapping, FEAT::Math::maxi(), FEAT::Math::mini(), and FEAT::Global::InverseMapping< InverseMappingType_ >::world_dim.
|
inlinestaticprivate |
Check if a point is in a bounding box.
Definition at line 261 of file inverse_mapping.hpp.
References FEAT::Global::InverseMapping< InverseMappingType_ >::world_dim.
Referenced by FEAT::Global::InverseMapping< InverseMappingType_ >::unmap_points().
|
inline |
Unmap a range of points.
| PointRange_ | Point range type |
| [in] | points | Range of points to unmap |
Definition at line 186 of file inverse_mapping.hpp.
References FEAT::Global::InverseMapping< InverseMappingType_ >::_comm, FEAT::Global::InverseMapping< InverseMappingType_ >::_local_bb, FEAT::Global::InverseMapping< InverseMappingType_ >::_mapping, FEAT::Dist::Comm::allgather(), FEAT::Global::InverseMapping< InverseMappingType_ >::is_in_bb(), FEAT::Dist::Comm::rank(), and FEAT::Dist::Comm::size().
Referenced by FEAT::MeshOpt::MeshDeformer< MeshType_ >::_deform().
|
private |
Communicator that domain is distributed across.
Definition at line 148 of file inverse_mapping.hpp.
Referenced by FEAT::Global::InverseMapping< InverseMappingType_ >::unmap_points().
|
private |
Bounding box of local patch.
Definition at line 152 of file inverse_mapping.hpp.
Referenced by FEAT::Global::InverseMapping< InverseMappingType_ >::unmap_points().
|
private |
Reference to local inverse mapping.
Definition at line 150 of file inverse_mapping.hpp.
Referenced by FEAT::Global::InverseMapping< InverseMappingType_ >::get_local_bb(), and FEAT::Global::InverseMapping< InverseMappingType_ >::unmap_points().
|
staticconstexpr |
Shape dimension.
Definition at line 134 of file inverse_mapping.hpp.
|
staticconstexpr |
World dimension.
Definition at line 136 of file inverse_mapping.hpp.
Referenced by FEAT::Global::InverseMapping< InverseMappingType_ >::get_local_bb(), and FEAT::Global::InverseMapping< InverseMappingType_ >::is_in_bb().