SpECTRE  v2024.04.12
ah::callbacks::ObserveCenters< InterpolationTargetTag, Frame > Struct Template Reference

Writes the center of an apparent horizon to disk in both the Frame template parameter frame and Frame::Inertial frame. Intended to be used in the post_horizon_find_callbacks list of an InterpolationTargetTag. More...

#include <ObserveCenters.hpp>

Static Public Member Functions

template<typename DbTags , typename Metavariables , typename TemporalId >
static void apply (const db::DataBox< DbTags > &box, Parallel::GlobalCache< Metavariables > &cache, const TemporalId &temporal_id)
 

Detailed Description

template<typename InterpolationTargetTag, typename Frame>
struct ah::callbacks::ObserveCenters< InterpolationTargetTag, Frame >

Writes the center of an apparent horizon to disk in both the Frame template parameter frame and Frame::Inertial frame. Intended to be used in the post_horizon_find_callbacks list of an InterpolationTargetTag.

The centers will be written to a subfile with the name /ApparentHorizons/TargetName_Centers.dat where TargetName is the pretty_type::name of the InterpolationTargetTag template parameter.

The columns of the dat file are:

  • Time
  • GridCenter_x
  • GridCenter_y
  • GridCenter_z
  • InertialCenter_x
  • InertialCenter_y
  • InertialCenter_z

The Frame template parameter must be either Frame::Grid or Frame::Distorted. Even though the template parameter can be Frame::Distorted, we still write GridCenter_? because the centers of the objects are the same in the Grid and Distorted frames.

Note
Requires ylm::Tags::Strahlkorper<Frame> and ylm::Tags::CartesianCoords<Frame::Inertial> and ylm::Tags::EuclideanAreaElement<Frame> to be in the DataBox of the InterpolationTarget.

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