SpECTRE  2021.08.02
ElementMap< Dim, TargetFrame > Class Template Reference

The CoordinateMap for the Element from the Logical frame to the TargetFrame More...

#include <ElementMap.hpp>

Public Types

using source_frame = Frame::Logical
 
using target_frame = TargetFrame
 

Public Member Functions

 ElementMap (ElementId< Dim > element_id, std::unique_ptr< domain::CoordinateMapBase< Frame::Logical, TargetFrame, Dim > > block_map) noexcept
 
const domain::CoordinateMapBase< Frame::Logical, TargetFrame, Dim > & block_map () const noexcept
 
const ElementId< Dim > & element_id () const noexcept
 
template<typename T >
tnsr::I< T, Dim, TargetFrame > operator() (tnsr::I< T, Dim, Frame::Logical > source_point) const noexcept
 
template<typename T >
tnsr::I< T, Dim, Frame::Logicalinverse (tnsr::I< T, Dim, TargetFrame > target_point) const noexcept
 
template<typename T >
InverseJacobian< T, Dim, Frame::Logical, TargetFrame > inv_jacobian (tnsr::I< T, Dim, Frame::Logical > source_point) const noexcept
 
template<typename T >
Jacobian< T, Dim, Frame::Logical, TargetFrame > jacobian (tnsr::I< T, Dim, Frame::Logical > source_point) const noexcept
 
void pup (PUP::er &p) noexcept
 

Static Public Attributes

static constexpr size_t dim = Dim
 

Detailed Description

template<size_t Dim, typename TargetFrame>
class ElementMap< Dim, TargetFrame >

The CoordinateMap for the Element from the Logical frame to the TargetFrame

An ElementMap takes a CoordinateMap for a Block and an ElementId as input, and then "prepends" the correct affine map to the CoordinateMap so that the map corresponds to the coordinate map for the Element rather than the Block. This allows DomainCreators to only specify the maps for the Blocks without worrying about how the domain may be decomposed beyond that.