Functions

rsolvers/hlle.c File Reference

Computes 1D fluxes using the Harten-Lax-van Leer (HLLE) Riemann solver. More...

Go to the source code of this file.

Functions

void HLLE_FUNCTION (const Cons1DS Ul, const Cons1DS Ur, const Prim1DS Wl, const Prim1DS Wr, const Real Bxi, Cons1DS *pFlux)
 HLLE flux function wrapper.

Detailed Description

Computes 1D fluxes using the Harten-Lax-van Leer (HLLE) Riemann solver.

PURPOSE: Computes 1D fluxes using the Harten-Lax-van Leer (HLLE) Riemann solver. This flux is very diffusive, especially for contacts, and so it is not recommended for use in applications. However, as shown by Einfeldt et al.(1991), it is positively conservative, so it is a useful option when other approximate solvers fail and/or when extra dissipation is needed.

REFERENCES:

CONTAINS PUBLIC FUNCTIONS:

Definition in file hlle.c.


Function Documentation

void HLLE_FUNCTION ( const Cons1DS  Ul,
const Cons1DS  Ur,
const Prim1DS  Wl,
const Prim1DS  Wr,
const Real  Bxi,
Cons1DS pFlux 
)

HLLE flux function wrapper.

  • HLLE_FUNCTION=fluxes if HLLE_FLUX defined
  • HLLE_FUNCTION=hlle_flux if ROE_FLUX defined Input Arguments:
    • Bxi = B in direction of 1D slice at cell interface
    • Ul,Ur = L/R-states of CONSERVED variables at cell interface Output Arguments:
    • pFlux = pointer to fluxes of CONSERVED variables at cell interface

Definition at line 62 of file hlle.c.

References Cons1DS::By, Prim1DS::By, Cons1DS::Bz, Prim1DS::Bz, Cons1DS::d, Prim1DS::d, Cons1DS::E, esys_roe_adb_hyd(), esys_roe_adb_mhd(), esys_roe_iso_hyd(), esys_roe_iso_mhd(), Gamma, Iso_csound2, Cons1DS::Mx, Cons1DS::My, Cons1DS::Mz, n, Prim1DS::P, Cons1DS::Pflux, Prim1DS::r, Cons1DS::s, Prim1DS::Vx, Prim1DS::Vy, and Prim1DS::Vz.

Here is the call graph for this function: