Mallard 0.8.0
Unstructured, GPU accelerated, high-order finite volume CFD solver
Mallard website
Loading...
Searching...
No Matches
riemann::Roe Struct Reference

Roe's approximate Riemann solver with Harten's entropy fix on the acoustic waves. More...

#include <riemann_solver.h>

Static Public Member Functions

static KOKKOS_INLINE_FUNCTION void calc_flux (rtype *flux, const rtype *n, const rtype *W_l, const rtype *W_r, const SideThermo &th_l, const SideThermo &th_r)
 Mixture flux with per-side thermodynamics, in jump form: F = (F_l + F_r - |u_n| dU - sum_+- (|lambda_+-| - |u_n|) alpha_+- r_+-) / 2. The entropy, shear and composition waves (a jump of gamma and e0 at fixed p, u) all move at u_n, so together they carry dU minus the acoustic waves whatever the equation of state (Glaister 1988; Shuen, Liou & van Leer 1990), and the Roe property holds for any averaged sound speed: a_roe of wave_speeds_einfeldt, from gamma and e0. The perfect-gas solver up to round-off when both sides share gamma and e0 = 0.
 
static KOKKOS_INLINE_FUNCTION void calc_flux (rtype *flux, const rtype *n, const rtype *W_l, const rtype *W_r, const rtype gamma)
 

Detailed Description

Roe's approximate Riemann solver with Harten's entropy fix on the acoustic waves.

Member Function Documentation

◆ calc_flux() [1/2]

static KOKKOS_INLINE_FUNCTION void riemann::Roe::calc_flux ( rtype *  flux,
const rtype *  n,
const rtype *  W_l,
const rtype *  W_r,
const rtype  gamma 
)
inlinestatic

◆ calc_flux() [2/2]

static KOKKOS_INLINE_FUNCTION void riemann::Roe::calc_flux ( rtype *  flux,
const rtype *  n,
const rtype *  W_l,
const rtype *  W_r,
const SideThermo &  th_l,
const SideThermo &  th_r 
)
inlinestatic

Mixture flux with per-side thermodynamics, in jump form: F = (F_l + F_r - |u_n| dU - sum_+- (|lambda_+-| - |u_n|) alpha_+- r_+-) / 2. The entropy, shear and composition waves (a jump of gamma and e0 at fixed p, u) all move at u_n, so together they carry dU minus the acoustic waves whatever the equation of state (Glaister 1988; Shuen, Liou & van Leer 1990), and the Roe property holds for any averaged sound speed: a_roe of wave_speeds_einfeldt, from gamma and e0. The perfect-gas solver up to round-off when both sides share gamma and e0 = 0.


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