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

Compute item for spacetime metric \(g_{ab}\) from the lapse \(\alpha\), shift \(\beta^i\), and spatial metric \(\gamma_{ij}\). More...

#include <SpacetimeMetric.hpp>

Public Types

using argument_tags
using return_type = tnsr::aa<DataType, SpatialDim, Frame>
using base = SpacetimeMetric<DataType, SpatialDim, Frame>
Public Types inherited from gr::Tags::SpacetimeMetric< 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::SpacetimeMetricCompute< DataType, SpatialDim, Frame >

Compute item for spacetime metric \(g_{ab}\) from the lapse \(\alpha\), shift \(\beta^i\), and spatial metric \(\gamma_{ij}\).

Details

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

Member Typedef Documentation

◆ argument_tags

template<typename DataType, size_t SpatialDim, typename Frame>
using gr::Tags::SpacetimeMetricCompute< DataType, SpatialDim, Frame >::argument_tags
Initial value:
tmpl::list<Lapse<DataType>, Shift<DataType, SpatialDim, Frame>,
Definition Tags.hpp:61
Definition Tags.hpp:25

Member Data Documentation

◆ function

template<typename DataType, size_t SpatialDim, typename Frame>
auto gr::Tags::SpacetimeMetricCompute< DataType, SpatialDim, Frame >::function
staticconstexpr
Initial value:
= static_cast<void (*)(
const Scalar<DataType>&, const tnsr::I<DataType, SpatialDim, Frame>&,
const tnsr::ii<DataType, SpatialDim, Frame>&)>(
Require a pointer to not be a nullptr
Definition Gsl.hpp:197
void spacetime_metric(gsl::not_null< tnsr::aa< DataType, Dim, Frame > * > spacetime_metric, const Scalar< DataType > &lapse, const tnsr::I< DataType, Dim, Frame > &shift, const tnsr::ii< DataType, Dim, Frame > &spatial_metric)
Computes the spacetime metric from the spatial metric, lapse, and shift.
Tensor< T, Symmetry<>, index_list<> > Scalar
Scalar type.
Definition TypeAliases.hpp:21

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