SpECTRE  v2026.04.01
Loading...
Searching...
No Matches
elliptic::Actions::InitializeOptionalAnalyticSolution< Dim, BackgroundTag, AnalyticSolutionFields, AnalyticSolutionType > Struct Template Reference

Place the analytic solution of the system fields in the DataBox. More...

#include <InitializeAnalyticSolution.hpp>

Public Types

using simple_tags = tmpl::list<analytic_fields_tag>
using compute_tags = tmpl::list<>
using const_global_cache_tags = tmpl::list<BackgroundTag>
using return_tags = tmpl::list<analytic_fields_tag>
using argument_tags

Static Public Member Functions

template<typename DbTagsList, typename... InboxTags, typename Metavariables, typename ActionList, typename ParallelComponent>
static Parallel::iterable_action_return_t apply (db::DataBox< DbTagsList > &box, const tuples::TaggedTuple< InboxTags... > &, const Parallel::GlobalCache< Metavariables > &, const ElementId< Dim > &, const ActionList, const ParallelComponent *const)
template<typename Background, typename Metavariables, typename... AmrData>
static void apply (const gsl::not_null< typename analytic_fields_tag::type * > analytic_solution_fields, const Mesh< Dim > &mesh, const tnsr::I< DataVector, Dim > inertial_coords, const Background &background, const Metavariables &, const AmrData &... amr_data)

Detailed Description

template<size_t Dim, typename BackgroundTag, typename AnalyticSolutionFields, typename AnalyticSolutionType>
struct elliptic::Actions::InitializeOptionalAnalyticSolution< Dim, BackgroundTag, AnalyticSolutionFields, AnalyticSolutionType >

Place the analytic solution of the system fields in the DataBox.

The Tags::AnalyticSolutions tag retrieved from the DataBox will hold a std::optional. The analytic solution is only evaluated and stored in the DataBox if the BackgroundTag holds a type that inherits from the AnalyticSolutionType.

Uses:

  • DataBox:
    • AnalyticSolutionTag or BackgroundTag
    • Tags::Coordinates<Dim, Frame::Inertial>

DataBox:

Member Typedef Documentation

◆ argument_tags

template<size_t Dim, typename BackgroundTag, typename AnalyticSolutionFields, typename AnalyticSolutionType>
using elliptic::Actions::InitializeOptionalAnalyticSolution< Dim, BackgroundTag, AnalyticSolutionFields, AnalyticSolutionType >::argument_tags
Initial value:
tmpl::list<domain::Tags::Mesh<Dim>,
Tag to retrieve the Metavariables from the DataBox.
Definition MetavariablesTag.hpp:17
The coordinates in a given frame.
Definition Tags.hpp:85

The documentation for this struct was generated from the following file:
  • src/Elliptic/Actions/InitializeAnalyticSolution.hpp