SpECTRE  v2026.04.01
Loading...
Searching...
No Matches
gr::Tags::ShiftCompute< DataType, SpatialDim, Frame > Struct Template Reference

Compute item for shift \(\beta^i\) from the spacetime metric \(g_{ab}\) and the inverse spatial metric \(\gamma^{ij}\). More...

#include <Shift.hpp>

Public Types

using argument_tags
using return_type = tnsr::I<DataType, SpatialDim, Frame>
using base = Shift<DataType, SpatialDim, Frame>
Public Types inherited from gr::Tags::Shift< DataType, SpatialDim, Frame >
using type

Static Public Attributes

static constexpr auto function

Detailed Description

template<typename DataType, size_t SpatialDim, typename Frame>
struct gr::Tags::ShiftCompute< DataType, SpatialDim, Frame >

Compute item for shift \(\beta^i\) from the spacetime metric \(g_{ab}\) and the inverse spatial metric \(\gamma^{ij}\).

Details

Can be retrieved using gr::Tags::Shift.

Member Typedef Documentation

◆ argument_tags

template<typename DataType, size_t SpatialDim, typename Frame>
using gr::Tags::ShiftCompute< DataType, SpatialDim, Frame >::argument_tags
Initial value:
tmpl::list<SpacetimeMetric<DataType, SpatialDim, Frame>,
Inverse of the spatial metric.
Definition Tags.hpp:32

Member Data Documentation

◆ function

template<typename DataType, size_t SpatialDim, typename Frame>
auto gr::Tags::ShiftCompute< DataType, SpatialDim, Frame >::function
staticconstexpr
Initial value:
= static_cast<void (*)(
const tnsr::aa<DataType, SpatialDim, Frame>&,
const tnsr::II<DataType, SpatialDim, Frame>&)>(
Require a pointer to not be a nullptr
Definition Gsl.hpp:197
tnsr::I< DataType, SpatialDim, Frame > shift(const tnsr::aa< DataType, SpatialDim, Frame > &spacetime_metric, const tnsr::II< DataType, SpatialDim, Frame > &inverse_spatial_metric)
Compute shift from spacetime metric and inverse spatial metric.

The documentation for this struct was generated from the following file:
  • src/PointwiseFunctions/GeneralRelativity/Shift.hpp