SpECTRE
v2025.03.17
|
Map from 3D unit right cylindrical shell to a volume that connects a portion of an annulus to a portion of a spherical surface. More...
#include <CylindricalFlatSide.hpp>
Public Member Functions | |
CylindricalFlatSide (const std::array< double, 3 > ¢er_one, const std::array< double, 3 > ¢er_two, const std::array< double, 3 > &proj_center, const double inner_radius, const double outer_radius, const double radius_two) | |
CylindricalFlatSide (CylindricalFlatSide &&)=default | |
CylindricalFlatSide (const CylindricalFlatSide &)=default | |
CylindricalFlatSide & | operator= (const CylindricalFlatSide &)=default |
CylindricalFlatSide & | operator= (CylindricalFlatSide &&)=default |
template<typename T > | |
std::array< tt::remove_cvref_wrap_t< T >, 3 > | operator() (const std::array< T, 3 > &source_coords) const |
std::optional< std::array< double, 3 > > | inverse (const std::array< double, 3 > &target_coords) const |
template<typename T > | |
tnsr::Ij< tt::remove_cvref_wrap_t< T >, 3, Frame::NoFrame > | jacobian (const std::array< T, 3 > &source_coords) const |
template<typename T > | |
tnsr::Ij< tt::remove_cvref_wrap_t< T >, 3, Frame::NoFrame > | inv_jacobian (const std::array< T, 3 > &source_coords) const |
void | pup (PUP::er &p) |
Static Public Member Functions | |
static bool | is_identity () |
Static Public Attributes | |
static constexpr size_t | dim = 3 |
Friends | |
bool | operator== (const CylindricalFlatSide &lhs, const CylindricalFlatSide &rhs) |
Map from 3D unit right cylindrical shell to a volume that connects a portion of an annulus to a portion of a spherical surface.
Consider a 2D annulus in 3D space that is normal to the
CylindricalFlatSide maps a 3D unit right cylindrical shell (with coordinates
CylindricalFlatSide is intended to be composed with Wedge2D maps to construct a portion of a cylindrical domain for a binary system.
CylindricalFlatSide is described briefly in the Appendix of [33]. CylindricalFlatSide is used to construct the blocks labeled 'ME cylinder' in Figure 20 of that paper.
CylindricalFlatSide is implemented using FocallyLiftedMap
and FocallyLiftedInnerMaps::FlatSide
; see those classes for details.
We demand that:
It is possible to construct a valid map without these assumptions, but some of these assumptions simplify the code and others eliminate edge cases where Jacobians become large or small.