SpECTRE  v2025.03.17
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Modules Pages
evolution::Tags::AnalyticSolutionsCompute< Dim, AnalyticFieldsTagList, UsingDgSubcell, InitialDataList > Struct Template Reference

Computes the analytic solution and adds Tags::Analytic of the std::optional<Tensor>s to the DataBox. More...

#include <ComputeTags.hpp>

Public Types

using field_tags = AnalyticFieldsTagList
 
using base = ::Tags::AnalyticSolutions< AnalyticFieldsTagList >
 
using return_type = typename base::type
 
using argument_tags = implementation defined
 
- Public Types inherited from Tags::AnalyticSolutions< AnalyticFieldsTagList >
using field_tags = AnalyticFieldsTagList
 
using type = std::optional< ::Variables< db::wrap_tags_in< detail::AnalyticImpl, AnalyticFieldsTagList > > >
 

Static Public Member Functions

template<typename AnalyticSolution >
static void function (const gsl::not_null< return_type * > analytic_solution, const AnalyticSolution &analytic_solution_computer, const tnsr::I< DataVector, Dim, Frame::Inertial > &inertial_coords, const double time)
 
static void function (const gsl::not_null< return_type * > analytic_solution, const evolution::initial_data::InitialData &initial_data, const tnsr::I< DataVector, Dim, Frame::Inertial > &inertial_coords, const double time)
 

Detailed Description

template<size_t Dim, typename AnalyticFieldsTagList, bool UsingDgSubcell, typename InitialDataList = tmpl::list<>>
struct evolution::Tags::AnalyticSolutionsCompute< Dim, AnalyticFieldsTagList, UsingDgSubcell, InitialDataList >

Computes the analytic solution and adds Tags::Analytic of the std::optional<Tensor>s to the DataBox.

Note
If InitialDataList is not an empty tmpl::list, then evolution::initial_data::Tags::InitialData is retrieved and downcast to the initial data for computing the errors.

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