SpECTRE  v2026.04.01
Loading...
Searching...
No Matches
gr::AnalyticData::BrillLindquist::IntermediateComputer< DataType, Frame > Class Template Reference

Computes the intermediates and quantities that we do not want to recompute across the solution's implementation. More...

#include <BrillLindquist.hpp>

Public Types

using CachedBuffer = BrillLindquist::CachedBuffer<DataType, Frame>

Public Member Functions

 IntermediateComputer (const BrillLindquist &analytic_data, const tnsr::I< DataType, 3, Frame > &x)
 Constructs a computer for spacetime quantities of a given gr::AnalyticData::BrillLindquist solution at at a specific Cartesian position.
void operator() (gsl::not_null< tnsr::I< DataType, 3, Frame > * > x_minus_center_a, gsl::not_null< CachedBuffer * >, internal_tags::x_minus_center_a< DataType, Frame >) const
 Computes the intermediate defined by internal_tags::x_minus_center_a
void operator() (gsl::not_null< Scalar< DataType > * > r_a, gsl::not_null< CachedBuffer * > cache, internal_tags::r_a< DataType >) const
 Computes the radius defined by internal_tags::r_a
void operator() (gsl::not_null< tnsr::I< DataType, 3, Frame > * > x_minus_center_b, gsl::not_null< CachedBuffer * >, internal_tags::x_minus_center_b< DataType, Frame >) const
 Computes the intermediate defined by internal_tags::x_minus_center_b
void operator() (gsl::not_null< Scalar< DataType > * > r_b, gsl::not_null< CachedBuffer * > cache, internal_tags::r_b< DataType >) const
 Computes the radius defined by internal_tags::r_b
void operator() (gsl::not_null< Scalar< DataType > * > conformal_factor, gsl::not_null< CachedBuffer * >, internal_tags::conformal_factor< DataType >) const
 Computes the intermediate defined by internal_tags::conformal_factor
void operator() (gsl::not_null< tnsr::i< DataType, 3, Frame > * > deriv_conformal_factor, gsl::not_null< CachedBuffer * >, internal_tags::deriv_conformal_factor< DataType, Frame >) const
 Computes the intermediate defined by internal_tags::deriv_conformal_factor
void operator() (gsl::not_null< tnsr::ii< DataType, 3, Frame > * > spatial_metric, gsl::not_null< CachedBuffer * > cache, gr::Tags::SpatialMetric< DataType, 3, Frame >) const
 Computes the spatial metric.
void operator() (gsl::not_null< tnsr::ijj< DataType, 3, Frame > * > deriv_spatial_metric, gsl::not_null< CachedBuffer * > cache, DerivSpatialMetric< DataType, Frame >) const
 Computes the spatial derivative of the spatial metric.

Detailed Description

template<typename DataType, typename Frame>
class gr::AnalyticData::BrillLindquist::IntermediateComputer< DataType, Frame >

Computes the intermediates and quantities that we do not want to recompute across the solution's implementation.

Constructor & Destructor Documentation

◆ IntermediateComputer()

template<typename DataType, typename Frame>
gr::AnalyticData::BrillLindquist::IntermediateComputer< DataType, Frame >::IntermediateComputer ( const BrillLindquist & analytic_data,
const tnsr::I< DataType, 3, Frame > & x )

Constructs a computer for spacetime quantities of a given gr::AnalyticData::BrillLindquist solution at at a specific Cartesian position.

Parameters
analytic_datathe given gr::AnalyticData::BrillLindquist data
xCartesian coordinates of the position at which to compute spacetime quantities

Member Function Documentation

◆ operator()() [1/2]

template<typename DataType, typename Frame>
void gr::AnalyticData::BrillLindquist::IntermediateComputer< DataType, Frame >::operator() ( gsl::not_null< tnsr::ii< DataType, 3, Frame > * > spatial_metric,
gsl::not_null< CachedBuffer * > cache,
gr::Tags::SpatialMetric< DataType, 3, Frame >  ) const

Computes the spatial metric.

Details

Computed as \(\gamma_{ij} = \delta_{ij} \psi^4\) where \(\psi\) is the conformal factor defined by internal_tags::conformal_factor.

◆ operator()() [2/2]

template<typename DataType, typename Frame>
void gr::AnalyticData::BrillLindquist::IntermediateComputer< DataType, Frame >::operator() ( gsl::not_null< tnsr::ijj< DataType, 3, Frame > * > deriv_spatial_metric,
gsl::not_null< CachedBuffer * > cache,
DerivSpatialMetric< DataType, Frame >  ) const

Computes the spatial derivative of the spatial metric.

Details

Computed as \(\partial_k \gamma_{ij} = 4 \psi^3 \partial_k \psi \delta_{ij} \) where \(\psi\) is the conformal factor defined by internal_tags::conformal_factor.


The documentation for this class was generated from the following file:
  • src/PointwiseFunctions/AnalyticData/GeneralRelativity/BrillLindquist.hpp