SpECTRE  v2025.03.17
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Modules Pages
grmhd::GhValenciaDivClean::subcell::PrimitiveGhostVariables Class Reference

Computes the rest mass density ρ, electron fraction Ye, pressure p, Lorentz factor times the spatial velocity Wvi, magnetic field Bi, the divergence cleaning field Φ, and the generalized harmonic evolved variables gab, Φiab and Πab on the subcells so they can be used for reconstruction. More...

#include <PrimitiveGhostData.hpp>

Public Types

using return_tags = implementation defined
 
using argument_tags = implementation defined
 

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)
 

Detailed Description

Computes the rest mass density ρ, electron fraction Ye, pressure p, Lorentz factor times the spatial velocity Wvi, magnetic field Bi, the divergence cleaning field Φ, and the generalized harmonic evolved variables gab, Φiab and Π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 Wvi. 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.

Note
Only called on elements using FD.

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