|
SpECTRE
v2025.08.19
|
Transformation from polar to Cartesian coordinates. More...
#include <PolarToCartesian.hpp>
Public Member Functions | |
| PolarToCartesian (PolarToCartesian &&) | |
| PolarToCartesian (const PolarToCartesian &) | |
| PolarToCartesian & | operator= (const PolarToCartesian &) |
| PolarToCartesian & | operator= (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::NoFrame > | jacobian (const std::array< T, 2 > &source_coords) const |
| template<typename T > | |
| tnsr::Ij< tt::remove_cvref_wrap_t< T >, 2, Frame::NoFrame > | inv_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 |
Transformation from polar to Cartesian coordinates.
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*}