inciter::LaxFriedrichs struct

Contents

Lax-Friedrichs approximate Riemann solver

This class can be used polymorphically with inciter::RiemannSolver

Public static functions

static auto flux(const std::array<tk::real, 3>& fn, const std::array<std::vector<tk::real>, 2>& u, const std::vector<std::array<tk::real, 3>>& = {}) -> tk::RiemannFluxFn::result_type
static auto type() -> ctr::FluxType noexcept

Function documentation

static tk::RiemannFluxFn::result_type inciter::LaxFriedrichs::flux(const std::array<tk::real, 3>& fn, const std::array<std::vector<tk::real>, 2>& u, const std::vector<std::array<tk::real, 3>>& = {})

Parameters
fn in Face/Surface normal
in Left and right unknown/state vector
Returns Riemann solution according Lax and Friedrichs

Lax-Friedrichs approximate Riemann solver flux function

static ctr::FluxType inciter::LaxFriedrichs::type() noexcept

Returns Flux type

Flux type accessor