SpECTRE
v2025.03.17
|
Contains helper functions for transforming tensors in Kerr spacetime to Kerr-Schild coordinates. More...
#include <KerrSchildCoords.hpp>
Public Member Functions | |
KerrSchildCoords (const KerrSchildCoords &)=default | |
KerrSchildCoords & | operator= (const KerrSchildCoords &)=default |
KerrSchildCoords (KerrSchildCoords &&)=default | |
KerrSchildCoords & | operator= (KerrSchildCoords &&)=default |
KerrSchildCoords (double bh_mass, double bh_dimless_spin) | |
template<typename DataType > | |
tnsr::I< DataType, 3, Frame::Inertial > | cartesian_from_spherical_ks (const tnsr::I< DataType, 3, Frame::NoFrame > &spatial_vector, const tnsr::I< DataType, 3, Frame::Inertial > &cartesian_coords) const |
Transforms a spatial vector from Kerr (or "spherical Kerr-Schild") coordinates to Cartesian Kerr-Schild coordinates. If applied on points on the z-axis, the vector to transform must have a vanishing | |
template<typename DataType > | |
Scalar< DataType > | r_coord_squared (const tnsr::I< DataType, 3, Frame::Inertial > &cartesian_coords) const |
Kerr-Schild | |
void | pup (PUP::er &) |
Friends | |
bool | operator== (const KerrSchildCoords &lhs, const KerrSchildCoords &rhs) |
Contains helper functions for transforming tensors in Kerr spacetime to Kerr-Schild coordinates.
Consider the Kerr-Schild form of the Kerr metric in Cartesian coordinates
where
Depending on the physical context, the following coordinate transformations are usually adopted:
Spherical coordinates, defined by the usual transformation
Note that
Oblate spheroidal coordinates,
Notice that
Kerr coordinates (sometimes also referred to as "Kerr-Schild coordinates"), defined by
These are the coordinates used in the gr::KerrSchildCoords class. Notice that
The Kerr coordinates have been used in the hydro community to evolve the GRMHD equations. They are the intermediate step in getting the Kerr metric in Boyer-Lindquist coordinates. The relation between both is
The above transformation makes explicit that
The Kerr metric in Kerr coodinates is sometimes used to write analytic initial data for hydro simulations. In this coordinate system, the metric takes the form
where
the Jacobian of the transformation to Cartesian Kerr-Schild coordinates is
which can be used to transform tensors between both coordinate systems.