SpECTRE  2021.08.02
grmhd::ValenciaDivClean::subcell::PrimitiveGhostDataOnSubcells Class Reference

Computes the rest mass density \(\rho\), pressure \(p\), Lorentz factor times the spatial velocity \(W v^i\), magnetic field \(B^i\), and the divergence cleaning field \(\Phi\) on the subcells so they can be used for reconstruction. More...

#include <PrimitiveGhostData.hpp>

Public Types

using return_tags = tmpl::list<>
 
using argument_tags = tmpl::list<::Tags::Variables< hydro::grmhd_tags< DataVector > > >
 

Static Public Member Functions

static Variables< prims_to_reconstruct_tags > apply (const Variables< hydro::grmhd_tags< DataVector > > &prims) noexcept
 

Detailed Description

Computes the rest mass density \(\rho\), pressure \(p\), Lorentz factor times the spatial velocity \(W v^i\), magnetic field \(B^i\), and the divergence cleaning field \(\Phi\) on the subcells so they can be used for reconstruction.

The computation copies the data from the primitive variables to a new Variables and computes \(W v^i\). 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.