SpECTRE  v2025.08.19
domain::CoordinateMaps::PolarToCartesian Class Reference

Transformation from polar to Cartesian coordinates. More...

#include <PolarToCartesian.hpp>

Public Member Functions

 PolarToCartesian (PolarToCartesian &&)
 
 PolarToCartesian (const PolarToCartesian &)
 
PolarToCartesianoperator= (const PolarToCartesian &)
 
PolarToCartesianoperator= (PolarToCartesian &&)
 
template<typename T >
std::array< tt::remove_cvref_wrap_t< T >, 2 > operator() (const std::array< T, 2 > &source_coords) const
 
std::optional< std::array< double, 2 > > inverse (const std::array< double, 2 > &target_coords) const
 
template<typename T >
tnsr::Ij< tt::remove_cvref_wrap_t< T >, 2, Frame::NoFramejacobian (const std::array< T, 2 > &source_coords) const
 
template<typename T >
tnsr::Ij< tt::remove_cvref_wrap_t< T >, 2, Frame::NoFrameinv_jacobian (const std::array< T, 2 > &source_coords) const
 
void pup (PUP::er &p)
 

Static Public Member Functions

static constexpr bool is_identity ()
 

Static Public Attributes

static constexpr size_t dim = 2
 

Detailed Description

Transformation from polar to Cartesian coordinates.

Details

This is a mapping from \((r,\phi) \rightarrow (x,y) \).

The formula for the mapping is...

\begin{eqnarray*} x &=& r \cos\phi \\ y &=& r \sin\phi \end{eqnarray*}


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