SpECTRE  2021.08.02
GeneralizedHarmonic::Solutions::WrappedGr< SolutionType > Class Template Reference

A wrapper for general-relativity analytic solutions that loads the analytic solution and then adds a function that returns any combination of the generalized-harmonic evolution variables, specifically gr::Tags::SpacetimeMetric, GeneralizedHarmonic::Tags::Pi, and GeneralizedHarmonic::Tags::Phi More...

#include <WrappedGr.hpp>

Public Types

using options = typename SolutionType::options
 
using DerivLapse = ::Tags::deriv< gr::Tags::Lapse< DataVector >, tmpl::size_t< volume_dim >, Frame::Inertial >
 
using DerivShift = ::Tags::deriv< gr::Tags::Shift< volume_dim, Frame::Inertial, DataVector >, tmpl::size_t< volume_dim >, Frame::Inertial >
 
using DerivSpatialMetric = ::Tags::deriv< gr::Tags::SpatialMetric< volume_dim, Frame::Inertial, DataVector >, tmpl::size_t< volume_dim >, Frame::Inertial >
 
using TimeDerivLapse = ::Tags::dt< gr::Tags::Lapse< DataVector > >
 
using TimeDerivShift = ::Tags::dt< gr::Tags::Shift< volume_dim, Frame::Inertial, DataVector > >
 
using TimeDerivSpatialMetric = ::Tags::dt< gr::Tags::SpatialMetric< volume_dim, Frame::Inertial, DataVector > >
 
using IntermediateVars = tuples::tagged_tuple_from_typelist< typename SolutionType::template tags< DataVector > >
 
template<typename DataType >
using tags = tmpl::push_back< typename SolutionType::template tags< DataType >, gr::Tags::SpacetimeMetric< volume_dim, Frame::Inertial, DataType >, GeneralizedHarmonic::Tags::Pi< volume_dim, Frame::Inertial >, GeneralizedHarmonic::Tags::Phi< volume_dim, Frame::Inertial > >
 

Public Member Functions

template<typename... Tags>
tuples::TaggedTuple< Tags... > variables (const tnsr::I< DataVector, volume_dim > &x, double t, tmpl::list< Tags... >) const noexcept
 
template<typename Tag >
tuples::TaggedTuple< Tag > variables (const tnsr::I< DataVector, volume_dim > &x, double t, tmpl::list< Tag >) const noexcept
 
template<typename... Tags>
tuples::TaggedTuple< Tags... > variables (const tnsr::I< DataVector, volume_dim > &x, tmpl::list< Tags... >) const noexcept
 
template<typename Tag >
tuples::TaggedTuple< Tag > variables (const tnsr::I< DataVector, volume_dim > &x, tmpl::list< Tag >) const noexcept
 
void pup (PUP::er &p) noexcept
 

Static Public Member Functions

static std::string name () noexcept
 

Static Public Attributes

static constexpr size_t volume_dim = SolutionType::volume_dim
 
static constexpr Options::String help = SolutionType::help
 

Detailed Description

template<typename SolutionType>
class GeneralizedHarmonic::Solutions::WrappedGr< SolutionType >

A wrapper for general-relativity analytic solutions that loads the analytic solution and then adds a function that returns any combination of the generalized-harmonic evolution variables, specifically gr::Tags::SpacetimeMetric, GeneralizedHarmonic::Tags::Pi, and GeneralizedHarmonic::Tags::Phi