SpECTRE  v2024.04.12
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 = tmpl::list< gr::Tags::ExtrinsicCurvature< DataVector, SpatialDim, Frame >, gr::Tags::InverseSpatialMetric< DataVector, SpatialDim, Frame > >
 
using return_type = Scalar< DataVector >
 
using base = gr::Tags::TraceExtrinsicCurvature< DataVector >
 
- Public Types inherited from gr::Tags::TraceExtrinsicCurvature< DataVector >
using type = Scalar< DataVector >
 

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 Data Documentation

◆ function

template<size_t SpatialDim, typename Frame >
constexpr auto gh::Tags::TraceExtrinsicCurvatureCompute< SpatialDim, Frame >::function
staticconstexpr
Initial value:
=
static_cast<void (*)(gsl::not_null<Scalar<DataVector>*>,
Definition: ContractFirstNIndices.hpp:16
Require a pointer to not be a nullptr
Definition: Gsl.hpp:183
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: