SpECTRE  2021.08.02
NewtonianEuler::subcell::PrimitiveGhostDataOnSubcells< Dim > Class Template Reference

Computes the mass density, velocity, and pressure on the subcells so they can be sent to the neighbors for their reconstructions. More...

#include <PrimitiveGhostData.hpp>

Public Types

using return_tags = tmpl::list<>
 
using argument_tags = tmpl::list<::Tags::Variables< prim_tags > >
 

Static Public Member Functions

static Variables< prims_to_reconstruct_tags > apply (const Variables< prim_tags > &prims) noexcept
 

Detailed Description

template<size_t Dim>
class NewtonianEuler::subcell::PrimitiveGhostDataOnSubcells< Dim >

Computes the mass density, velocity, and pressure on the subcells so they can be sent to the neighbors for their reconstructions.

The computation just copies the data from the primitive variables tag to a new Variables (the copy is subcell grid to subcell grid). In the future we will likely want to elide this copy but that requires support from the actions.

This mutator is passed to evolution::dg::subcell::Actions::SendDataForReconstruction.