SpECTRE  v2026.04.01
Loading...
Searching...
No Matches
NewtonianEuler::subcell::PrimsAfterRollback< Dim > Struct Template Reference

Mutator that resizes the primitive variables to the subcell mesh and computes the primitives, but only if evolution::dg::subcell::Tags::DidRollback is true. More...

#include <PrimsAfterRollback.hpp>

Public Types

using return_tags
using argument_tags

Static Public Member Functions

static void apply (gsl::not_null< Variables< tmpl::list< MassDensity, Velocity, SpecificInternalEnergy, Pressure > > * > prim_vars, bool did_rollback, const Mesh< Dim > &subcell_mesh, const Scalar< DataVector > &mass_density_cons, const tnsr::I< DataVector, Dim > &momentum_density, const Scalar< DataVector > &energy_density, const EquationsOfState::EquationOfState< false, 2 > &equation_of_state)

Detailed Description

template<size_t Dim>
struct NewtonianEuler::subcell::PrimsAfterRollback< Dim >

Mutator that resizes the primitive variables to the subcell mesh and computes the primitives, but only if evolution::dg::subcell::Tags::DidRollback is true.

In the DG-subcell step_actions list this will normally be called using the Actions::MutateApply action right after the evolution::dg::subcell::Actions::Labels::BeginSubcellAfterDgRollback label.

Member Typedef Documentation

◆ argument_tags

template<size_t Dim>
using NewtonianEuler::subcell::PrimsAfterRollback< Dim >::argument_tags
Initial value:
The energy density of the fluid.
Definition Tags.hpp:46
The mass density of the fluid (as a conservative variable).
Definition Tags.hpp:34
The momentum density of the fluid.
Definition Tags.hpp:40
Tag indicating whether we are retrying a step after a rollback of a failed DG step.
Definition DidRollback.hpp:16
The mesh on the subcells.
Definition Mesh.hpp:22
The equation of state retrieved from the analytic solution / data in the input file.
Definition Tags.hpp:112

◆ return_tags

template<size_t Dim>
using NewtonianEuler::subcell::PrimsAfterRollback< Dim >::return_tags
Initial value:
tmpl::list<::Tags::Variables<
tmpl::list<MassDensity, Velocity, SpecificInternalEnergy, Pressure>>>
Definition VariablesTag.hpp:17

The documentation for this struct was generated from the following file:
  • src/Evolution/Systems/NewtonianEuler/Subcell/PrimsAfterRollback.hpp