|
SpECTRE
2021.08.02
|
Troubled-cell indicator applied to the finite difference subcell solution to check if the corresponding DG solution is admissible. More...
#include <TciOnFdGrid.hpp>
Public Types | |
| using | return_tags = tmpl::list<::Tags::Variables< tmpl::list< MassDensity, Velocity, SpecificInternalEnergy, Pressure > > > |
| using | argument_tags = tmpl::list< MassDensityCons, MomentumDensity, EnergyDensity, Inactive< MassDensityCons >, Inactive< MomentumDensity >, Inactive< EnergyDensity >, hydro::Tags::EquationOfStateBase, domain::Tags::Mesh< Dim > > |
Static Public Member Functions | |
| template<size_t ThermodynamicDim> | |
| static bool | apply (gsl::not_null< Variables< tmpl::list< MassDensity, Velocity, SpecificInternalEnergy, Pressure > > * > subcell_grid_prim_vars, const Scalar< DataVector > &subcell_mass_density, const tnsr::I< DataVector, Dim, Frame::Inertial > &subcell_momentum_density, const Scalar< DataVector > &subcell_energy_density, const Scalar< DataVector > &dg_mass_density, const tnsr::I< DataVector, Dim, Frame::Inertial > &dg_momentum_density, const Scalar< DataVector > &dg_energy_density, const EquationsOfState::EquationOfState< false, ThermodynamicDim > &eos, const Mesh< Dim > &dg_mesh, double persson_exponent) noexcept |
Troubled-cell indicator applied to the finite difference subcell solution to check if the corresponding DG solution is admissible.
Computes the primitive variables on the DG and subcell grids, mutating the subcell/active primitive variables in the DataBox. Then,
Please note that the TCI is run after the subcell solution has been reconstructed to the DG grid, and so Inactive<Tag> is the updated DG solution.