SpECTRE  v2024.04.12
evolution::dg::subcell::BackgroundGrVars< System, Metavariables, UsingRuntimeId, ComputeOnlyOnRollback > Struct Template Reference

Allocate or assign background general relativity quantities on cell-centered and face-centered FD grid points, for evolution systems run on a curved spacetime without solving Einstein equations (e.g. ValenciaDivclean, ForceFree),. More...

#include <BackgroundGrVars.hpp>

Public Types

using gr_vars_tag = typename System::spacetime_variables_tag
 
using inactive_gr_vars_tag = evolution::dg::subcell::Tags::Inactive< gr_vars_tag >
 
using subcell_faces_gr_tag = evolution::dg::subcell::Tags::OnSubcellFaces< typename System::flux_spacetime_variables_tag, volume_dim >
 
using GrVars = typename gr_vars_tag::type
 
using InactiveGrVars = typename inactive_gr_vars_tag::type
 
using SubcellFaceGrVars = typename subcell_faces_gr_tag::type
 
using argument_tags = tmpl::list< ::Tags::Time, domain::Tags::FunctionsOfTime, domain::Tags::Domain< volume_dim >, domain::Tags::Element< volume_dim >, domain::Tags::ElementMap< volume_dim, Frame::Grid >, domain::CoordinateMaps::Tags::CoordinateMap< volume_dim, Frame::Grid, Frame::Inertial >, evolution::dg::subcell::Tags::Mesh< volume_dim >, evolution::dg::subcell::Tags::Coordinates< 3, Frame::Inertial >, subcell::Tags::DidRollback, tmpl::conditional_t< UsingRuntimeId, evolution::initial_data::Tags::InitialData, ::Tags::AnalyticSolutionOrData > >
 
using return_tags = tmpl::list< gr_vars_tag, inactive_gr_vars_tag, subcell_faces_gr_tag >
 

Static Public Member Functions

template<typename T >
static void apply (const gsl::not_null< GrVars * > active_gr_vars, const gsl::not_null< InactiveGrVars * > inactive_gr_vars, const gsl::not_null< SubcellFaceGrVars * > subcell_face_gr_vars, const double time, const std::unordered_map< std::string, std::unique_ptr<::domain::FunctionsOfTime::FunctionOfTime > > &functions_of_time, const Domain< volume_dim > &domain, const Element< volume_dim > &element, const ElementMap< volume_dim, Frame::Grid > &logical_to_grid_map, const domain::CoordinateMapBase< Frame::Grid, Frame::Inertial, volume_dim > &grid_to_inertial_map, const Mesh< volume_dim > &subcell_mesh, const tnsr::I< DataVector, volume_dim, Frame::Inertial > &subcell_inertial_coords, const bool did_rollback, const T &solution_or_data)
 

Static Public Attributes

static constexpr size_t volume_dim = System::volume_dim
 

Detailed Description

template<typename System, typename Metavariables, bool UsingRuntimeId, bool ComputeOnlyOnRollback>
struct evolution::dg::subcell::BackgroundGrVars< System, Metavariables, UsingRuntimeId, ComputeOnlyOnRollback >

Allocate or assign background general relativity quantities on cell-centered and face-centered FD grid points, for evolution systems run on a curved spacetime without solving Einstein equations (e.g. ValenciaDivclean, ForceFree),.

Warning
This mutator assumes that the GR analytic data or solution specifying background spacetime metric is time-independent.

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