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

Mutator that resizes the primitive variables to have the size of the active mesh and then computes the primitive variables on the active mesh. More...

#include <ResizeAndComputePrimitives.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, evolution::dg::subcell::ActiveGrid active_grid, const Mesh< Dim > &dg_mesh, 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::ResizeAndComputePrims< Dim >

Mutator that resizes the primitive variables to have the size of the active mesh and then computes the primitive variables on the active mesh.

In the DG-subcell step_actions list this will normally be called using the Actions::MutateApply action right after the evolution::dg::subcell::Actions::TciAndSwitchToDg action. We only need to compute the primitives if we switched to the DG grid because otherwise we computed the primitives during the FD TCI. After the primitive variables tag is resized for the DG grid, the primitives are computed directly on the DG grid from the reconstructed conserved variables, not via a reconstruction operation applied to the primitives.

Member Typedef Documentation

◆ argument_tags

template<size_t Dim>
using NewtonianEuler::subcell::ResizeAndComputePrims< 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
The computational grid of the Element in the DataBox.
Definition Tags.hpp:62
The grid currently used for the DG-subcell evolution on the element.
Definition ActiveGrid.hpp:24
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::ResizeAndComputePrims< 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/ResizeAndComputePrimitives.hpp