SpECTRE  v2026.04.01
Loading...
Searching...
No Matches
NewtonianEuler::Limiters::Minmod< VolumeDim > Class Template Reference

A minmod-based generalized slope limiter for the NewtonianEuler system. More...

#include <Minmod.hpp>

Classes

struct  ApplyFlattener
struct  VariablesToLimit

Public Types

using ConservativeVarsMinmod
using options
using PackagedData = typename ConservativeVarsMinmod::PackagedData
using package_argument_tags
using limit_tags
using limit_argument_tags

Public Member Functions

 Minmod (::Limiters::MinmodType minmod_type, NewtonianEuler::Limiters::VariablesToLimit vars_to_limit, double tvb_constant, bool apply_flattener, bool disable_for_debugging=false)
 Minmod (const Minmod &)=default
Minmodoperator= (const Minmod &)=default
 Minmod (Minmod &&)=default
Minmodoperator= (Minmod &&)=default
void pup (PUP::er &p)
void package_data (gsl::not_null< PackagedData * > packaged_data, const Scalar< DataVector > &mass_density_cons, const tnsr::I< DataVector, VolumeDim > &momentum_density, const Scalar< DataVector > &energy_density, const Mesh< VolumeDim > &mesh, const std::array< double, VolumeDim > &element_size, const OrientationMap< VolumeDim > &orientation_map) const
 Package data for sending to neighbor elements.
bool operator() (gsl::not_null< Scalar< DataVector > * > mass_density_cons, gsl::not_null< tnsr::I< DataVector, VolumeDim > * > momentum_density, gsl::not_null< Scalar< DataVector > * > energy_density, const Mesh< VolumeDim > &mesh, const Element< VolumeDim > &element, const tnsr::I< DataVector, VolumeDim, Frame::ElementLogical > &logical_coords, const std::array< double, VolumeDim > &element_size, const Scalar< DataVector > &det_inv_logical_to_inertial_jacobian, const EquationsOfState::EquationOfState< false, 2 > &equation_of_state, const std::unordered_map< DirectionalId< VolumeDim >, PackagedData, boost::hash< DirectionalId< VolumeDim > > > &neighbor_data) const
 Limits the solution on the element.

Static Public Member Functions

static std::string name ()

Static Public Attributes

static constexpr Options::String help

Friends

template<size_t LocalDim>
bool operator== (const Minmod< LocalDim > &lhs, const Minmod< LocalDim > &rhs)

Detailed Description

template<size_t VolumeDim>
class NewtonianEuler::Limiters::Minmod< VolumeDim >

A minmod-based generalized slope limiter for the NewtonianEuler system.

Implements the three minmod-based generalized slope limiters from [44] Sec. 2.4: \(\Lambda\Pi^1\), \(\Lambda\Pi^N\), and MUSCL. See the documentation of the system-agnostic Limiters::Minmod limiter for a general discussion of the algorithm and the various options that control the action of the limiter.

This implemention is specialized to the NewtonianEuler evolution system. By specializing the limiter to the system, we can add two features that improve its robustness:

  • the limiter can be applied to the system's characteristic variables. This is the recommendation of the reference, because it reduces spurious oscillations in the post-limiter solution.
  • after limiting, the solution can be processed to remove any remaining unphysical values like negative densities and pressures. We do this by scaling the solution around its mean (a "flattener" or "bounds-preserving" filter). Note: the flattener is applied to all elements, including those where the limiter did not act to reduce the solution's slopes.

Member Typedef Documentation

◆ ConservativeVarsMinmod

template<size_t VolumeDim>
using NewtonianEuler::Limiters::Minmod< VolumeDim >::ConservativeVarsMinmod
Initial value:
A minmod-based generalized slope limiter for the NewtonianEuler system.
Definition Minmod.hpp:86
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

◆ limit_argument_tags

template<size_t VolumeDim>
using NewtonianEuler::Limiters::Minmod< VolumeDim >::limit_argument_tags
Initial value:
tmpl::list<
The coordinates in a given frame.
Definition Tags.hpp:85
The determinant of the inverse Jacobian from the source frame to the target frame.
Definition Tags.hpp:189
The Element associated with the DataBox.
Definition Tags.hpp:52
The computational grid of the Element in the DataBox.
Definition Tags.hpp:62
The inertial-coordinate size of an element along each of its logical directions.
Definition SizeOfElement.hpp:78
The equation of state retrieved from the analytic solution / data in the input file.
Definition Tags.hpp:112

◆ limit_tags

◆ options

template<size_t VolumeDim>
using NewtonianEuler::Limiters::Minmod< VolumeDim >::options
Initial value:
tmpl::list<typename ConservativeVarsMinmod::Type, VariablesToLimit,
typename ConservativeVarsMinmod::TvbConstant, ApplyFlattener,
typename ConservativeVarsMinmod::DisableForDebugging>

◆ package_argument_tags

template<size_t VolumeDim>
using NewtonianEuler::Limiters::Minmod< VolumeDim >::package_argument_tags
Initial value:
typename ConservativeVarsMinmod::package_argument_tags

Member Data Documentation

◆ help

template<size_t VolumeDim>
Options::String NewtonianEuler::Limiters::Minmod< VolumeDim >::help
staticconstexpr
Initial value:
= {
"A Minmod limiter specialized to the NewtonianEuler system"}

The documentation for this class was generated from the following file:
  • src/Evolution/Systems/NewtonianEuler/Limiters/Minmod.hpp