Namespaces | Classes | Typedefs | Functions
gr Namespace Reference

Namespaces

 Solutions
 Classes which implement analytic solutions to Einstein's equations.
 

Classes

struct  AnalyticSolution
 Base struct for properties common to all GR analytic solutions. More...
 
class  KerrSchildCoords
 Contains helper functions for transforming tensors in Kerr spacetime to Kerr-Schild coordinates. More...
 

Typedefs

template<size_t Dim, typename DataType >
using tags_for_hydro = tmpl::list< gr::Tags::Lapse< DataType >, gr::Tags::Shift< Dim, Frame::Inertial, DataType >, gr::Tags::SpatialMetric< Dim, Frame::Inertial, DataType >, gr::Tags::InverseSpatialMetric< Dim, Frame::Inertial, DataType >, gr::Tags::SqrtDetSpatialMetric< DataType >, ::Tags::deriv< gr::Tags::Lapse< DataType >, tmpl::size_t< Dim >, Frame::Inertial >, ::Tags::deriv< gr::Tags::Shift< Dim, Frame::Inertial, DataType >, tmpl::size_t< Dim >, Frame::Inertial >, ::Tags::deriv< gr::Tags::SpatialMetric< Dim, Frame::Inertial, DataType >, tmpl::size_t< Dim >, Frame::Inertial >, gr::Tags::ExtrinsicCurvature< Dim, Frame::Inertial, DataType > >
 GR Tags commonly needed for the evolution of hydro systems.
 
template<size_t Dim, typename DataType >
using analytic_solution_tags = tmpl::list< gr::Tags::Lapse< DataType >, ::Tags::dt< gr::Tags::Lapse< DataType > >, ::Tags::deriv< gr::Tags::Lapse< DataType >, tmpl::size_t< Dim >, Frame::Inertial >, gr::Tags::Shift< Dim, Frame::Inertial, DataType >, ::Tags::dt< gr::Tags::Shift< Dim, Frame::Inertial, DataType > >, ::Tags::deriv< gr::Tags::Shift< Dim, Frame::Inertial, DataType >, tmpl::size_t< Dim >, Frame::Inertial >, gr::Tags::SpatialMetric< Dim, Frame::Inertial, DataType >, ::Tags::dt< gr::Tags::SpatialMetric< Dim, Frame::Inertial, DataType > >, ::Tags::deriv< gr::Tags::SpatialMetric< Dim, Frame::Inertial, DataType >, tmpl::size_t< Dim >, Frame::Inertial >, gr::Tags::SqrtDetSpatialMetric< DataType >, gr::Tags::ExtrinsicCurvature< Dim, Frame::Inertial, DataType >, gr::Tags::InverseSpatialMetric< Dim, Frame::Inertial, DataType > >
 The tags for the variables returned by GR analytic solutions.
 

Functions

bool operator!= (const KerrSchildCoords &lhs, const KerrSchildCoords &rhs) noexcept
 

Detailed Description

Holds functions related to general relativity.

Function Documentation

◆ spacetime_normal_one_form() [1/2]

template<size_t SpatialDim, typename Frame , typename DataType >
tnsr::a<DataType, SpatialDim, Frame> gr::spacetime_normal_one_form ( const Scalar< DataType > &  lapse)
noexcept

Computes spacetime normal one-form from lapse.

Details

If \(N\) is the lapse, then

\begin{align} n_t &= - N \\ n_i &= 0 \end{align}

is computed.

◆ spacetime_normal_one_form() [2/2]

template<size_t SpatialDim, typename Frame , typename DataType >
void gr::spacetime_normal_one_form ( gsl::not_null< tnsr::a< DataType, SpatialDim, Frame > * >  normal_one_form,
const Scalar< DataType > &  lapse 
)
noexcept

Computes spacetime normal one-form from lapse.

Details

If \(N\) is the lapse, then

\begin{align} n_t &= - N \\ n_i &= 0 \end{align}

is computed.