SpECTRE  v2024.09.29
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Modules Pages
sr Namespace Reference

Holds functions related to special relativity. More...

Functions

template<size_t SpatialDim>
tnsr::Ab< double, SpatialDim, Frame::NoFramelorentz_boost_matrix (const tnsr::I< double, SpatialDim, Frame::NoFrame > &velocity)
 Computes the matrix for a Lorentz boost from a single velocity vector (i.e., not a velocity field). More...
 
template<size_t SpatialDim>
void lorentz_boost_matrix (gsl::not_null< tnsr::Ab< double, SpatialDim, Frame::NoFrame > * > boost_matrix, const tnsr::I< double, SpatialDim, Frame::NoFrame > &velocity)
 Computes the matrix for a Lorentz boost from a single velocity vector (i.e., not a velocity field). More...
 
template<size_t SpatialDim>
tnsr::Ab< double, SpatialDim, Frame::NoFramelorentz_boost_matrix (const std::array< double, SpatialDim > &velocity)
 Computes the matrix for a Lorentz boost from a single velocity vector (i.e., not a velocity field). More...
 
template<typename DataType , size_t SpatialDim, typename Frame >
void lorentz_boost (gsl::not_null< tnsr::I< DataType, SpatialDim, Frame > * > result, const tnsr::I< DataType, SpatialDim, Frame > &vector, double vector_component_0, const std::array< double, SpatialDim > &velocity)
 Apply a Lorentz boost to the spatial part of a vector. More...
 
template<typename DataType , size_t SpatialDim, typename Frame >
void lorentz_boost (gsl::not_null< tnsr::a< DataType, SpatialDim, Frame > * > result, const tnsr::a< DataType, SpatialDim, Frame > &one_form, const std::array< double, SpatialDim > &velocity)
 Apply a Lorentz boost to a one form. More...
 

Detailed Description

Holds functions related to special relativity.