SpECTRE
v2022.05.05

Given the generalized harmonic variables in the volume, computes the quantities that will be interpolated onto an apparent horizon. More...
#include <ComputeHorizonVolumeQuantities.hpp>
Public Types  
using  allowed_src_tags = tmpl::list< gr::Tags::SpacetimeMetric< 3, Frame::Inertial >, GeneralizedHarmonic::Tags::Pi< 3, Frame::Inertial >, GeneralizedHarmonic::Tags::Phi< 3, Frame::Inertial >, ::Tags::deriv< GeneralizedHarmonic::Tags::Phi< 3, Frame::Inertial >, tmpl::size_t< 3 >, Frame::Inertial > > 
using  required_src_tags = tmpl::list< gr::Tags::SpacetimeMetric< 3, Frame::Inertial >, GeneralizedHarmonic::Tags::Pi< 3, Frame::Inertial >, GeneralizedHarmonic::Tags::Phi< 3, Frame::Inertial > > 
template<typename TargetFrame >  
using  allowed_dest_tags_target_frame = tmpl::list< gr::Tags::SpatialMetric< 3, TargetFrame >, gr::Tags::InverseSpatialMetric< 3, TargetFrame >, gr::Tags::ExtrinsicCurvature< 3, TargetFrame >, gr::Tags::SpatialChristoffelSecondKind< 3, TargetFrame >, gr::Tags::SpatialRicci< 3, TargetFrame > > 
template<typename TargetFrame >  
using  allowed_dest_tags = tmpl::remove_duplicates< tmpl::append< allowed_dest_tags_target_frame< TargetFrame >, allowed_dest_tags_target_frame< Frame::Inertial > > > 
template<typename TargetFrame >  
using  required_dest_tags = tmpl::list< gr::Tags::ExtrinsicCurvature< 3, TargetFrame >, gr::Tags::SpatialChristoffelSecondKind< 3, TargetFrame > > 
Static Public Member Functions  
template<typename SrcTagList , typename DestTagList >  
static void  apply (const gsl::not_null< Variables< DestTagList > * > target_vars, const Variables< SrcTagList > &src_vars, const Mesh< 3 > &mesh) 
Singleframe case.  
template<typename SrcTagList , typename DestTagList , typename TargetFrame >  
static void  apply (const gsl::not_null< Variables< DestTagList > * > target_vars, const Variables< SrcTagList > &src_vars, const Mesh< 3 > &mesh, const Jacobian< DataVector, 3, TargetFrame, Frame::Inertial > &jacobian, const InverseJacobian< DataVector, 3, Frame::ElementLogical, TargetFrame > &inverse_jacobian) 
Dualframe case.  
Given the generalized harmonic variables in the volume, computes the quantities that will be interpolated onto an apparent horizon.
This is meant to be the primary compute_vars_to_interpolate
for the horizon finder. Conforms to the intrp::protocols::ComputeVarsToInterpolate protocol
SrcTagList and DestTagList have limited flexibility, and their restrictions are static_asserted inside the apply functions. The lack of complete flexibility is intentional, because most computations (e.g. for observers) should be done only on the horizon surface (i.e. after interpolation) as opposed to in the volume; only those computations that require data in the volume (e.g. volume numerical derivatives) should be done here.
For the dualframe case, numerical derivatives of Jacobians are taken in order to avoid Hessians.
SrcTagList is usually interpolator_source_vars
in the Metavariables, and the allowed and required tags in SrcTagList are given by the type aliases allowed_src_tags
and required_src_tags
below.
DestTagList is usually vars_to_interpolate_to_target
in the InterpolationTarget
that uses ComputeHorizonVolumeQuantities
. The allowed and required tags in DestTagList are given by the type aliases allowed_dest_tags
and required_dest_tags
below.