SpECTRE  v2022.06.14
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::ElementLogical
 
using target_frame = TargetFrame
 

Public Member Functions

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

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.


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