This is an exact two-component Riemann solver in Toro's book. 更多...
#include <stdio.h>
#include <math.h>
#include <stdbool.h>
函数 | |
static double | GuessP (const double DL, const double DR, const double UL, const double UR, const double PL, const double PR, const double CL, const double CR, const double GammaL, const double GammaR, const double eps) |
Provide a guess value for pressure PM in the Star Region. 更多... | |
static void | PreFun (double *F, double *FD, const double P, const double DK, const double PK, const double CK, const double Gamma) |
Evaluate the pressure functions FL and FR in exact Riemann solver. 更多... | |
double | Riemann_solver_starPU (double *U_star, double *P_star, const double GammaL, const double GammaR, const double UL, const double UR, const double PL, const double PR, const double CL, const double CR, _Bool *CRW, const double eps, const double TOLPRE, const int NRITER) |
EXACT RIEMANN SOLVER FOR Two-Component γ-Law Gas 更多... | |
This is an exact two-component Riemann solver in Toro's book.
在文件 riemann_solver_starPU.c 中定义.
|
static |
Provide a guess value for pressure PM in the Star Region.
The choice is made according to adaptive Riemann solver using the PVRS (or TRRS or TSRS) ApproxImate Riemann Solvers (AIRS).
[in] | DL,UL,PL,CL | Initial Density/Velocity/Pressure/Sound_speed on left state. |
[in] | DR,UR,PR,CR | Initial Density/Velocity/Pressure/Sound_speed on right state. |
[in] | GammaL,GammaR | Ratio of specific heats. |
[in] | eps | The largest value can be seen as zero. |
在文件 riemann_solver_starPU.c 第 20 行定义.
|
static |
Evaluate the pressure functions FL and FR in exact Riemann solver.
[out] | F | Pressure function FL or FR. |
[out] | FD | First derivative of F with respect to pressure P. |
[in] | P | Pressure. |
[in] | DK | Density. |
[in] | PK | Pressure. |
[in] | CK | Sound speed. |
[in] | Gamma | Ratio of specific heats. |
在文件 riemann_solver_starPU.c 第 71 行定义.
double Riemann_solver_starPU | ( | double * | U_star, |
double * | P_star, | ||
const double | GammaL, | ||
const double | GammaR, | ||
const double | UL, | ||
const double | UR, | ||
const double | PL, | ||
const double | PR, | ||
const double | CL, | ||
const double | CR, | ||
_Bool * | CRW, | ||
const double | eps, | ||
const double | TOLPRE, | ||
const int | NRITER | ||
) |
EXACT RIEMANN SOLVER FOR Two-Component γ-Law Gas
The purpose of this function is to compute the Riemann solution for pressure and velocity in the Star Region, for the time dependent one dimensional Euler equations for two-component γ-law gas.
[out] | U_star,P_star | Velocity/Pressure in star region. |
[in] | UL,PL,CL | Initial Velocity/Pressure/Sound_speed on left state. |
[in] | UR,PR,CR | Initial Velocity/Pressure/Sound_speed on right state. |
[in] | GammaL,GammaR | Ratio of specific heats. |
[out] | CRW | Centred Rarefaction Wave (CRW) Indicator of left and right waves.
|
[in] | eps | The largest value can be seen as zero. |
[in] | TOLPRE | Condition value of 'gap' at the end of the iteration. |
[in] | NRITER | Maximum iteration step (Recommended Value: 100). |
在文件 riemann_solver_starPU.c 第 115 行定义.