ryujin 2.1.1 revision 0348cbb53a3e4b1da2a4c037e81f88f2d21ce219
List of all members
ryujin::ScalarConservation::Indicator< dim, Number > Class Template Reference

#include <source/scalar_conservation/indicator.h>

Public Member Functions

Stencil-based computation of indicators

Intended usage:

for (unsigned int i = n_internal; i < n_owned; ++i) {
// ...
indicator.reset(i, U_i);
for (unsigned int col_idx = 1; col_idx < row_length; ++col_idx) {
// ...
indicator.accumulate(js, U_j, c_ij);
}
indicator.alpha(hd_i);
}
void reset(const unsigned int i, const state_type &U_i)
Definition: indicator.h:153
void accumulate(const unsigned int *js, const state_type &U_j, const dealii::Tensor< 1, dim, Number > &c_ij)
Definition: indicator.h:171
Number alpha(const Number h_i) const
Definition: indicator.h:195
 Indicator (const HyperbolicSystem &hyperbolic_system, const Parameters &parameters, const PrecomputedVector &precomputed_values)
 
void reset (const unsigned int i, const state_type &U_i)
 
void accumulate (const unsigned int *js, const state_type &U_j, const dealii::Tensor< 1, dim, Number > &c_ij)
 
Number alpha (const Number h_i) const
 

Typedefs and constexpr constants

using View = HyperbolicSystemView< dim, Number >
 
using ScalarNumber = typename View::ScalarNumber
 
using state_type = typename View::state_type
 
using flux_type = typename View::flux_type
 
using precomputed_type = typename View::precomputed_type
 
using PrecomputedVector = typename View::PrecomputedVector
 
using Parameters = IndicatorParameters< ScalarNumber >
 
static constexpr auto problem_dimension = View::problem_dimension
 

Detailed Description

template<int dim, typename Number = double>
class ryujin::ScalarConservation::Indicator< dim, Number >

An suitable indicator strategy that is used to form the preliminary high-order update.

Definition at line 48 of file indicator.h.

Member Typedef Documentation

◆ View

template<int dim, typename Number = double>
using ryujin::ScalarConservation::Indicator< dim, Number >::View = HyperbolicSystemView<dim, Number>

Definition at line 56 of file indicator.h.

◆ ScalarNumber

template<int dim, typename Number = double>
using ryujin::ScalarConservation::Indicator< dim, Number >::ScalarNumber = typename View::ScalarNumber

Definition at line 58 of file indicator.h.

◆ state_type

template<int dim, typename Number = double>
using ryujin::ScalarConservation::Indicator< dim, Number >::state_type = typename View::state_type

Definition at line 62 of file indicator.h.

◆ flux_type

template<int dim, typename Number = double>
using ryujin::ScalarConservation::Indicator< dim, Number >::flux_type = typename View::flux_type

Definition at line 64 of file indicator.h.

◆ precomputed_type

template<int dim, typename Number = double>
using ryujin::ScalarConservation::Indicator< dim, Number >::precomputed_type = typename View::precomputed_type

Definition at line 66 of file indicator.h.

◆ PrecomputedVector

template<int dim, typename Number = double>
using ryujin::ScalarConservation::Indicator< dim, Number >::PrecomputedVector = typename View::PrecomputedVector

Definition at line 68 of file indicator.h.

◆ Parameters

template<int dim, typename Number = double>
using ryujin::ScalarConservation::Indicator< dim, Number >::Parameters = IndicatorParameters<ScalarNumber>

Definition at line 70 of file indicator.h.

Constructor & Destructor Documentation

◆ Indicator()

template<int dim, typename Number = double>
ryujin::ScalarConservation::Indicator< dim, Number >::Indicator ( const HyperbolicSystem hyperbolic_system,
const Parameters parameters,
const PrecomputedVector precomputed_values 
)
inline

Constructor taking a HyperbolicSystem instance as argument

Definition at line 95 of file indicator.h.

Member Function Documentation

◆ reset()

template<int dim, typename Number >
DEAL_II_ALWAYS_INLINE void ryujin::ScalarConservation::Indicator< dim, Number >::reset ( const unsigned int  i,
const state_type U_i 
)
inline

Reset temporary storage and initialize for a new row corresponding to state vector U_i.

Definition at line 153 of file indicator.h.

Referenced by ryujin::HyperbolicModule< Description, dim, Number >::step().

◆ accumulate()

template<int dim, typename Number >
DEAL_II_ALWAYS_INLINE void ryujin::ScalarConservation::Indicator< dim, Number >::accumulate ( const unsigned int *  js,
const state_type U_j,
const dealii::Tensor< 1, dim, Number > &  c_ij 
)
inline

When looping over the sparsity row, add the contribution associated with the neighboring state U_j.

Definition at line 171 of file indicator.h.

Referenced by ryujin::HyperbolicModule< Description, dim, Number >::step().

◆ alpha()

template<int dim, typename Number >
DEAL_II_ALWAYS_INLINE Number ryujin::ScalarConservation::Indicator< dim, Number >::alpha ( const Number  h_i) const
inline

Return the computed alpha_i value.

Definition at line 195 of file indicator.h.

Referenced by ryujin::HyperbolicModule< Description, dim, Number >::step().

Member Data Documentation

◆ problem_dimension

template<int dim, typename Number = double>
constexpr auto ryujin::ScalarConservation::Indicator< dim, Number >::problem_dimension = View::problem_dimension
staticconstexpr

Definition at line 60 of file indicator.h.


The documentation for this class was generated from the following file: