PLUTO
|
Compute the outermost wave speeds for HLL-based solvers. More...
#include "pluto.h"
Go to the source code of this file.
Macros | |
#define | ROE_ESTIMATE NO |
#define | DAVIS_ESTIMATE YES |
Functions | |
void | HLL_Speed (double **vL, double **vR, double *a2L, double *a2R, double **bgf, double *SL, double *SR, int beg, int end) |
Compute the outermost wave speeds for HLL-based solvers.
HLL_Speed() computes an estimate to the leftmost and rightmost wave signal speeds bounding the Riemann fan based on the input states ::vR and ::vL. Depending on the estimate, several variants are possible.
Definition in file hll_speed.c.
#define DAVIS_ESTIMATE YES |
Definition at line 20 of file hll_speed.c.
#define ROE_ESTIMATE NO |
Definition at line 19 of file hll_speed.c.
void HLL_Speed | ( | double ** | vL, |
double ** | vR, | ||
double * | a2L, | ||
double * | a2R, | ||
double ** | bgf, | ||
double * | SL, | ||
double * | SR, | ||
int | beg, | ||
int | end | ||
) |
Compute leftmost (SL) and rightmost (SR) speed for the Riemann fan.
[in] | vL | left state for the Riemann solver |
[in] | vR | right state for the Riemann solver |
[in] | a2L | 1-D array containing the square of the sound speed for the left state |
[in] | a2R | 1-D array containing the square of the sound speed for the right state |
[out] | SL | the (estimated) leftmost speed of the Riemann fan |
[out] | SR | the (estimated) rightmost speed of the Riemann fan |
[in] | beg | starting index of computation |
[in] | end | final index of computation |
Switches:
ROE_ESTIMATE (YES/NO), DAVIS_ESTIMATE (YES/NO). TVD_ESTIMATE (YES/NO) JAN_HLL (YES/NO)
These switches set how the wave speed estimates are going to be computed. Only one can be set to 'YES', and the rest of them must be set to 'NO'
ROE_ESTIMATE: b_m = (0, (u_R - c_R, u_L - c_L, u_{roe} - c_{roe})) b_m = (0, (u_R + c_R, u_L + c_L, u_{roe} + c_{roe}))
where u_{roe} and c_{roe} are computed using Roe averages.
DAVIS_ESTIMATE: b_m = (0, (u_R - c_R, u_L - c_L)) b_m = (0, (u_R + c_R, u_L + c_L))
Definition at line 23 of file hll_speed.c.