Functions

rsolvers/hlle_sr.c File Reference

Compute 1D fluxes using an HLLE-type relativistic Riemann solver. More...

Go to the source code of this file.

Functions

void flux_LR (Cons1DS U, Prim1DS W, Cons1DS *flux, Real Bx, Real *p)
void getMaxSignalSpeeds_pluto (const Prim1DS Wl, const Prim1DS Wr, const Real Bx, Real *low, Real *high)
void getMaxSignalSpeeds_echo (const Prim1DS Wl, const Prim1DS Wr, const Real Bx, Real *low, Real *high)
void getVChar_echo (const Prim1DS W, const Real Bx, Real *lml, Real *lmr)
void getVChar_pluto (const Prim1DS W, const Real Bx, Real *lml, Real *lmr)
int QUARTIC (Real b, Real c, Real d, Real e, Real z[])
int CUBIC (Real b, Real c, Real d, Real z[])
void fluxes (const Cons1DS Ul, const Cons1DS Ur, const Prim1DS Wl, const Prim1DS Wr, const Real Bx, Cons1DS *pFlux)
 Calculates fluxes of CONSERVED variables.
void entropy_flux (const Cons1DS Ul, const Cons1DS Ur, const Prim1DS Wl, const Prim1DS Wr, const Real Bx, Real *pFlux)
 Calculate entropy flux.

Detailed Description

Compute 1D fluxes using an HLLE-type relativistic Riemann solver.

PURPOSE: Compute 1D fluxes using an HLLE-type relativistic Riemann solver. Works for both hydro and MHD, but is very diffusive.

HISTORY:

CONTAINS PUBLIC FUNCTIONS:

Definition in file hlle_sr.c.


Function Documentation

int CUBIC ( Real  b,
Real  c,
Real  d,
Real  z[] 
)

Definition at line 726 of file hlle_sr.c.

References f, and n.

void entropy_flux ( const Cons1DS  Ul,
const Cons1DS  Ur,
const Prim1DS  Wl,
const Prim1DS  Wr,
const Real  Bx,
Real pFlux 
)

Calculate entropy flux.

Compute entropy flux.

Definition at line 218 of file hlle_sr.c.

References Cons1DS::d, Prim1DS::d, Gamma, getMaxSignalSpeeds_echo(), getMaxSignalSpeeds_pluto(), Prim1DS::P, Pl, Pr, and Prim1DS::Vx.

Here is the call graph for this function:

void flux_LR ( Cons1DS  U,
Prim1DS  W,
Cons1DS flux,
Real  Bx,
Real p 
)
void fluxes ( const Cons1DS  Ul,
const Cons1DS  Ur,
const Prim1DS  Wl,
const Prim1DS  Wr,
const Real  Bx,
Cons1DS pFlux 
)

Calculates fluxes of CONSERVED variables.

Computes 1D fluxes Input Arguments:

  • Bxi = B in direction of 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.

Computes 1D fluxes.

Compute 1D fluxes Input Arguments:

  • Bxi = B in direction of slice at cell interface
  • Ul,Ur = L/R-states of CONSERVED variables at cell interface.

Computes 1D fluxes Input Arguments:

  • Ul,Ur = L/R-states of CONSERVED variables at cell interface
  • Wl,Wr = L/R-states of PRIMITIVE variables at cell interface Output Arguments:
  • pFlux = pointer to fluxes of CONSERVED variables at cell interface.

Computes 1D fluxes Input Arguments:

  • Ul,Ur = L/R-states of CONSERVED variables at cell interface Output Arguments:
  • pFlux = pointer to fluxes of CONSERVED variables at cell interface.

Computes 1D fluxes 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.

Computes 1D fluxes using exact special relativistic Riemann solver.

Computes fluxes of CONSERVES variables.

Input Arguments:

  • Bxi = B in direction of 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

Input Arguments:

  • Bxi = B in direction of slice at cell interface
  • Ul,Ur = L/R-states of CONSERVED variables at cell interface Output Arguments:
  • pF = pointer to fluxes of CONSERVED variables at cell interface

Input Arguments:

  • Ul,Ur = L/R-states of CONSERVED variables at cell interface
  • Bx = B in direction of slice at cell interface Output Arguments:
  • pF = pointer to fluxes of CONSERVED variables at cell interface

--------------------------------------------------------------------------

Output Arguments:

  • Flux = fluxes of CONSERVED variables at cell interface

Input Arguments:

  • Ul,Ur = L/R-states of CONSERVED variables at cell interface
  • Bx = B in direction of slice at cell interface Output Arguments:
  • pFlux = pointer to fluxes of CONSERVED variables at cell interface

Definition at line 64 of file hlle_sr.c.

References Cons1DS::By, Cons1DS::Bz, Cons1DS::d, Cons1DS::E, flux_LR(), getMaxSignalSpeeds_echo(), getMaxSignalSpeeds_pluto(), Cons1DS::Mx, Cons1DS::My, Cons1DS::Mz, Pl, and Pr.

Here is the call graph for this function:

void getMaxSignalSpeeds_echo ( const Prim1DS  Wl,
const Prim1DS  Wr,
const Real  Bx,
Real low,
Real high 
)

Definition at line 527 of file hlle_sr.c.

References getVChar_echo().

Here is the call graph for this function:

void getMaxSignalSpeeds_pluto ( const Prim1DS  Wl,
const Prim1DS  Wr,
const Real  Bx,
Real low,
Real high 
)

Definition at line 377 of file hlle_sr.c.

References getVChar_pluto().

Here is the call graph for this function:

void getVChar_echo ( const Prim1DS  W,
const Real  Bx,
Real lml,
Real lmr 
)
void getVChar_pluto ( const Prim1DS  W,
const Real  Bx,
Real lml,
Real lmr 
)

Definition at line 392 of file hlle_sr.c.

References b0, Prim1DS::By, Prim1DS::Bz, Prim1DS::d, Gamma, Gamma_1, lambda, Prim1DS::P, Q, QUARTIC(), Prim1DS::Vx, Prim1DS::Vy, and Prim1DS::Vz.

Here is the call graph for this function:

int QUARTIC ( Real  b,
Real  c,
Real  d,
Real  e,
Real  z[] 
)

Definition at line 626 of file hlle_sr.c.

References CUBIC(), f, n, q, r, and s.

Here is the call graph for this function: