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

Compute item the conjugate momentum \(\Pi_{ab}\) of the spacetime metric \( g_{ab} \). More...

#include <Pi.hpp>

Public Types

using argument_tags
using return_type = tnsr::aa<DataVector, SpatialDim, Frame>
using base = Pi<DataVector, SpatialDim, Frame>
Public Types inherited from gh::Tags::Pi< DataVector, SpatialDim, Frame >
using type

Static Public Attributes

static constexpr auto function

Detailed Description

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

Compute item the conjugate momentum \(\Pi_{ab}\) of the spacetime metric \( g_{ab} \).

Details

See pi(). Can be retrieved using gh::Tags::Pi.

Member Typedef Documentation

◆ argument_tags

template<size_t SpatialDim, typename Frame>
using gh::Tags::PiCompute< SpatialDim, Frame >::argument_tags
Initial value:
tmpl::list<
Prefix indicating a time derivative.
Definition Prefixes.hpp:28
Auxiliary variable which is analytically the spatial derivative of the spacetime metric.
Definition Tags.hpp:38
Definition Tags.hpp:65
Definition Tags.hpp:61
Definition Tags.hpp:25

Member Data Documentation

◆ function

template<size_t SpatialDim, typename Frame>
auto gh::Tags::PiCompute< SpatialDim, Frame >::function
staticconstexpr
Initial value:
= static_cast<void (*)(
const tnsr::I<DataVector, SpatialDim, Frame>&,
const tnsr::I<DataVector, SpatialDim, Frame>&,
const tnsr::ii<DataVector, SpatialDim, Frame>&,
const tnsr::ii<DataVector, SpatialDim, Frame>&,
const tnsr::iaa<DataVector, SpatialDim, Frame>&)>(
Require a pointer to not be a nullptr
Definition Gsl.hpp:197
void pi(gsl::not_null< tnsr::aa< DataType, SpatialDim, Frame > * > pi, const Scalar< DataType > &lapse, const Scalar< DataType > &dt_lapse, const tnsr::I< DataType, SpatialDim, Frame > &shift, const tnsr::I< DataType, SpatialDim, Frame > &dt_shift, const tnsr::ii< DataType, SpatialDim, Frame > &spatial_metric, const tnsr::ii< DataType, SpatialDim, Frame > &dt_spatial_metric, const tnsr::iaa< DataType, SpatialDim, Frame > &phi)
Computes the conjugate momentum of the spacetime metric .
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/GeneralizedHarmonic/Pi.hpp