SpECTRE  v2024.03.19
TestHelpers::VerifyGrSolution Namespace Reference

Functions for testing GR analytic solutions. More...

Functions

template<typename Solution >
void verify_time_independent_einstein_solution (const Solution &solution, const size_t grid_size_each_dimension, const std::array< double, 3 > &lower_bound, const std::array< double, 3 > &upper_bound, const double error_tolerance)
 Determines if the given solution is a time-independent solution of the Einstein equations. Uses numerical derivatives to compute the solution, on a grid extending from lower_bound to upper_bound with grid_size_each_dimension points in each dimension. The right-hand side of the Einstein equations must be zero within error_tolerance
 
template<typename Solution , typename Frame >
void verify_consistency (const Solution &solution, const double time, const tnsr::I< double, 3, Frame > &position, const double derivative_delta, const double derivative_tolerance)
 Check the consistency of dependent quantities returned by a solution. This includes checking pointwise relations such as consistency of the metric and inverse and comparing returned and numerical derivatives.
 

Detailed Description

Functions for testing GR analytic solutions.