SpECTRE
v2025.03.17
|
Compute the primitive variables from the conservative variables using the scheme of Palenzuela et al, Phys. Rev. D 92, 044045 (2015). More...
#include <PalenzuelaEtAl.hpp>
Static Public Member Functions | |
template<bool EnforcePhysicality, typename EosType > | |
static std::optional< PrimitiveRecoveryData > | apply (double, double tau, double momentum_density_squared, double momentum_density_dot_magnetic_field, double magnetic_field_squared, double rest_mass_density_times_lorentz_factor, double electron_fraction, const EosType &equation_of_state, const grmhd::ValenciaDivClean::PrimitiveFromConservativeOptions &primitive_from_conservative_options) |
static const std::string | name () |
Compute the primitive variables from the conservative variables using the scheme of Palenzuela et al, Phys. Rev. D 92, 044045 (2015).
In the notation of the Palenzuela paper, tau
is momentum_density_squared
is momentum_density_dot_magnetic_field
is magnetic_field_squared
is rest_mass_density_times_lorentz_factor
is PrimitiveRecoveryData.rho_h_w_squared
is
In terms of the conservative variables (in our notation):
where the conserved variables