|
SpECTRE
2021.08.02
|
Projects 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\) so they can be projected to the subcells and sent to neighbors for subcell reconstruction. More...
#include <PrimitiveGhostData.hpp>
Public Types | |
| using | return_tags = tmpl::list<> |
| using | argument_tags = tmpl::list<::Tags::Variables< hydro::grmhd_tags< DataVector > >, domain::Tags::Mesh< 3 >, evolution::dg::subcell::Tags::Mesh< 3 > > |
Static Public Member Functions | |
| static Variables< prims_to_reconstruct_tags > | apply (const Variables< hydro::grmhd_tags< DataVector > > &prims, const Mesh< 3 > &dg_mesh, const Mesh< 3 > &subcell_mesh) noexcept |
Projects 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\) so they can be projected to the subcells and sent to neighbors for subcell reconstruction.
The computation copies the data from the primitive variables to a new Variables and computes \(W v^i\), then does the projection. In the future we will likely want to elide this copy but that requires support from the actions.
This mutator is passed what Metavars::SubcellOptions::GhostDataToSlice must be set to.