12#include <deal.II/base/point.h>
13#include <deal.II/base/tensor.h>
17 namespace ScalarConservation
19 template <
typename ScalarNumber =
double>
24 : ParameterAcceptor(subsection)
26 use_greedy_wavespeed_ =
false;
27 add_parameter(
"use greedy wavespeed",
28 use_greedy_wavespeed_,
29 "Use a greedy wavespeed estimate instead of a guaranteed "
31 "on the maximal wavespeed (for convex fluxes).");
33 use_averaged_entropy_ =
false;
34 add_parameter(
"use averaged entropy",
35 use_averaged_entropy_,
36 "In addition to the wavespeed estimate based on the Roe "
38 "flux gradients of the left and right state also enforce "
40 "inequality on the averaged Krŭzkov entropy.");
42 random_entropies_ = 0;
46 "In addition to the wavespeed estimate based on the Roe average "
48 "flux gradients of the left and right state also enforce an "
50 "inequality on the prescribed number of random Krŭzkov entropies.");
58 bool use_greedy_wavespeed_;
59 bool use_averaged_entropy_;
60 unsigned int random_entropies_;
74 template <
int dim,
typename Number =
double>
110 : hyperbolic_system(hyperbolic_system)
111 , parameters(parameters)
112 , precomputed_values(precomputed_values)
121 Number
compute(
const Number &u_i,
125 const dealii::Tensor<1, dim, Number> &n_ij)
const;
133 const unsigned int i,
134 const unsigned int *js,
135 const dealii::Tensor<1, dim, Number> &n_ij)
const;
static constexpr unsigned int problem_dimension
std::array< Number, n_precomputed_values > precomputed_type
Vectors::MultiComponentVector< ScalarNumber, n_precomputed_values > PrecomputedVector
typename get_value_type< Number >::type ScalarNumber
dealii::Tensor< 1, problem_dimension, Number > state_type
ACCESSOR_READ_ONLY(use_greedy_wavespeed)
ACCESSOR_READ_ONLY(use_averaged_entropy)
ACCESSOR_READ_ONLY(random_entropies)
RiemannSolverParameters(const std::string &subsection="/RiemannSolver")
typename View::state_type state_type
typename View::ScalarNumber ScalarNumber
Number compute(const Number &u_i, const Number &u_j, const precomputed_type &prec_i, const precomputed_type &prec_j, const dealii::Tensor< 1, dim, Number > &n_ij) const
typename View::PrecomputedVector PrecomputedVector
RiemannSolver(const HyperbolicSystem &hyperbolic_system, const Parameters ¶meters, const PrecomputedVector &precomputed_values)
typename View::precomputed_type precomputed_type
RiemannSolverParameters< ScalarNumber > Parameters
static constexpr auto problem_dimension