|
SpECTRE
v2025.08.19
|
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 = tmpl::list< domain::Tags::Mesh< Dim >, domain::Tags::Coordinates< Dim, Frame::Inertial >, BackgroundTag, Parallel::Tags::Metavariables > |
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) |
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:
AnalyticSolutionTag or BackgroundTagTags::Coordinates<Dim, Frame::Inertial>DataBox:
Tags::AnalyticSolutions<AnalyticSolutionFields>