SpECTRE  v2022.06.14
Burgers::subcell::NeighborPackagedData Struct Reference

On elements using DG, reconstructs the interface data from a neighboring element doing subcell. More...

#include <NeighborPackagedData.hpp>

Static Public Member Functions

template<typename DbTagsList >
static FixedHashMap< maximum_number_of_neighbors(1), std::pair< Direction< 1 >, ElementId< 1 > >, std::vector< double >, boost::hash< std::pair< Direction< 1 >, ElementId< 1 > > > > apply (const db::DataBox< DbTagsList > &box, const std::vector< std::pair< Direction< 1 >, ElementId< 1 > > > &mortars_to_reconstruct_to)
 

Detailed Description

On elements using DG, reconstructs the interface data from a neighboring element doing subcell.

The neighbor's packaged data needed by the boundary correction is computed and returned so that it can be used for solving the Riemann problem on the interfaces.

Note that for strict conservation the Riemann solve should be done on the subcells, with the correction being projected back to the DG interface. However, in practice such strict conservation doesn't seem to be necessary and can be explained by that we only need strict conservation at shocks, and if one element is doing DG, then we aren't at a shock.


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