SpECTRE  v2022.05.05
evolution::dg::subcell::Actions::Initialize< Dim, System, TciMutator > Struct Template Reference

Initialize the subcell grid, and switch from DG to subcell if the DG solution is inadmissible. More...

#include <Initialize.hpp>

Public Types

using const_global_cache_tags = tmpl::list< Tags::SubcellOptions >
using simple_tags = tmpl::list< Tags::Mesh< Dim >, Tags::ActiveGrid, Tags::DidRollback, Tags::Inactive< typename System::variables_tag >, Tags::TciGridHistory, Tags::NeighborDataForReconstruction< Dim >, Tags::DataForRdmpTci, fd::Tags::InverseJacobianLogicalToGrid< Dim >, fd::Tags::DetInverseJacobianLogicalToGrid >
using compute_tags = tmpl::list< Tags::LogicalCoordinatesCompute< Dim >, ::domain::Tags::MappedCoordinates< ::domain::Tags::ElementMap< Dim, Frame::Grid >, subcell::Tags::Coordinates< Dim, Frame::ElementLogical >, subcell::Tags::Coordinates >, Tags::InertialCoordinatesCompute< ::domain::CoordinateMaps::Tags::CoordinateMap< Dim, Frame::Grid, Frame::Inertial > >, Tags::TciStatusCompute< Dim > >

Static Public Member Functions

template<typename DbTagsList , typename... InboxTags, typename ArrayIndex , typename ActionList , typename ParallelComponent , typename Metavariables >
static std::tuple< db::DataBox< DbTagsList > && > apply (db::DataBox< DbTagsList > &box, const tuples::TaggedTuple< InboxTags... > &inboxes, const Parallel::GlobalCache< Metavariables > &cache, const ArrayIndex &array_index, ActionList, const ParallelComponent *const)

Detailed Description

template<size_t Dim, typename System, typename TciMutator>
struct evolution::dg::subcell::Actions::Initialize< Dim, System, TciMutator >

Initialize the subcell grid, and switch from DG to subcell if the DG solution is inadmissible.

Interior cells are marked as troubled if subcell_options.always_use_subcells() is true or if Metavariables::SubcellOptions::DgInitialDataTci::apply reports that the initial data is not well represented on the DG grid for that cell. Exterior cells are marked as troubled only if Metavariables::SubcellOptions::subcell_enabled_at_external_boundary is true.

If the cell is troubled then Tags::ActiveGrid is set to subcell::ActiveGrid::Subcell, the System::variables_tag become the variables on the subcell grid set by calling evolution::Initialization::Actions::SetVariables, Tags::Inactive<System::variables_tag> become the (inadmissible) DG solution, and the db::add_tag_prefix<Tags::dt, System::variables_tag> are resized to the subcell grid with an ASSERT requiring that they were previously set to the size of the DG grid (this is to reduce the likelihood of them being resized back to the DG grid later).


Metavariables::SubcellOptions::DgInitialDataTci::apply is called with the evolved variables on the DG grid, the projected evolved variables, the DG mesh, the initial RDMP parameters \(\delta_0\) and \(\epsilon\), and the Persson TCI parameter \(\alpha\). The apply function must return a bool that is true if the cell is troubled.



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