SpECTRE  v2026.04.01
Loading...
Searching...
No Matches
gh::Tags::TraceExtrinsicCurvatureCompute< SpatialDim, Frame > Struct Template Reference

Compute item to get the trace of extrinsic curvature from generalized harmonic variables and the spacetime normal vector. More...

#include <ExtrinsicCurvature.hpp>

Public Types

using argument_tags
using return_type = Scalar<DataVector>
using base = gr::Tags::TraceExtrinsicCurvature<DataVector>
Public Types inherited from gr::Tags::TraceExtrinsicCurvature< DataVector >
using type

Static Public Attributes

static constexpr auto function

Detailed Description

template<size_t SpatialDim, typename Frame>
struct gh::Tags::TraceExtrinsicCurvatureCompute< SpatialDim, Frame >

Compute item to get the trace of extrinsic curvature from generalized harmonic variables and the spacetime normal vector.

Details

See extrinsic_curvature() for how the extrinsic curvature \( K_{ij}\) is computed. Its trace is taken as

\begin{align} tr(K) &= g^{ij} K_{ij}. \end{align}

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

Member Typedef Documentation

◆ argument_tags

template<size_t SpatialDim, typename Frame>
using gh::Tags::TraceExtrinsicCurvatureCompute< SpatialDim, Frame >::argument_tags
Initial value:
tmpl::list<gr::Tags::ExtrinsicCurvature<DataVector, SpatialDim, Frame>,
Inverse of the spatial metric.
Definition Tags.hpp:32

Member Data Documentation

◆ function

template<size_t SpatialDim, typename Frame>
auto gh::Tags::TraceExtrinsicCurvatureCompute< SpatialDim, Frame >::function
staticconstexpr
Initial value:
=
static_cast<void (*)(gsl::not_null<Scalar<DataVector>*>,
const tnsr::ii<DataVector, SpatialDim, Frame>&,
const tnsr::II<DataVector, SpatialDim, Frame>&)>(
Require a pointer to not be a nullptr
Definition Gsl.hpp:197
void trace(gsl::not_null< Scalar< DataType > * > trace, const Tensor< DataType, Symmetry< 1, 1 >, index_list< Index0, Index0 > > &tensor, const Tensor< DataType, Symmetry< 1, 1 >, index_list< change_index_up_lo< Index0 >, change_index_up_lo< Index0 > > > &metric)
Computes trace of a rank-2 symmetric tensor.

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