SpECTRE  v2024.04.12
gh::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, gh::Tags::Pi, and gh::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< DataVector, volume_dim >, tmpl::size_t< volume_dim >, Frame::Inertial >
 
using DerivSpatialMetric = ::Tags::deriv< gr::Tags::SpatialMetric< DataVector, volume_dim >, tmpl::size_t< volume_dim >, Frame::Inertial >
 
using TimeDerivLapse = ::Tags::dt< gr::Tags::Lapse< DataVector > >
 
using TimeDerivShift = ::Tags::dt< gr::Tags::Shift< DataVector, volume_dim > >
 
using TimeDerivSpatialMetric = ::Tags::dt< gr::Tags::SpatialMetric< DataVector, volume_dim > >
 
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< DataType, volume_dim >, gh::Tags::Pi< DataVector, volume_dim >, gh::Tags::Phi< DataVector, volume_dim > >
 

Public Member Functions

 WrappedGr (const WrappedGr &)=default
 
WrappedGroperator= (const WrappedGr &)=default
 
 WrappedGr (WrappedGr &&)=default
 
WrappedGroperator= (WrappedGr &&)=default
 
 WrappedGr (const SolutionType &wrapped_solution)
 
auto get_clone () const -> std::unique_ptr< evolution::initial_data::InitialData > override
 
template<typename... Tags>
tuples::TaggedTuple< Tags... > variables (const tnsr::I< DataVector, volume_dim > &x, double t, tmpl::list< Tags... >) const
 
template<typename Tag >
tuples::TaggedTuple< Tag > variables (const tnsr::I< DataVector, volume_dim > &x, double t, tmpl::list< Tag >) const
 
template<typename... Tags>
tuples::TaggedTuple< Tags... > variables (const tnsr::I< DataVector, volume_dim > &x, tmpl::list< Tags... >) const
 
template<typename Tag >
tuples::TaggedTuple< Tag > variables (const tnsr::I< DataVector, volume_dim > &x, tmpl::list< Tag >) const
 
void pup (PUP::er &p) override
 
virtual auto get_clone () const -> std::unique_ptr< InitialData >=0
 

Static Public Member Functions

static std::string name ()
 

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 gh::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, gh::Tags::Pi, and gh::Tags::Phi

Member Function Documentation

◆ get_clone()

template<typename SolutionType >
auto gh::Solutions::WrappedGr< SolutionType >::get_clone ( ) const -> std::unique_ptr< evolution::initial_data::InitialData >
overridevirtual

The documentation for this class was generated from the following file: