SpECTRE
v2024.05.11
|
Computes the rest mass density \(\rho\), electron fraction \(Y_e\), pressure \(p\), Lorentz factor times the spatial velocity \(W v^i\), magnetic field \(B^i\), the divergence cleaning field \(\Phi\), and the generalized harmonic evolved variables \(g_{ab}\), \(\Phi_{iab}\) and \(\Pi_{ab}\) 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 > >, gr::Tags::SpacetimeMetric< DataVector, 3 >, gh::Tags::Phi< DataVector, 3 >, gh::Tags::Pi< DataVector, 3 > > |
Static Public Member Functions | |
static DataVector | apply (const Variables< hydro::grmhd_tags< DataVector > > &prims, const tnsr::aa< DataVector, 3, Frame::Inertial > &spacetime_metric, const tnsr::iaa< DataVector, 3, Frame::Inertial > &phi, const tnsr::aa< DataVector, 3, Frame::Inertial > &pi, size_t rdmp_size) |
Computes the rest mass density \(\rho\), electron fraction \(Y_e\), pressure \(p\), Lorentz factor times the spatial velocity \(W v^i\), magnetic field \(B^i\), the divergence cleaning field \(\Phi\), and the generalized harmonic evolved variables \(g_{ab}\), \(\Phi_{iab}\) and \(\Pi_{ab}\) 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
.