There are exact Riemann solvers in Ben-Artzi's book. 更多...
#include <math.h>#include <stdio.h>#include <stdbool.h>函数 | |
| double | Riemann_solver_exact (double *U_star, double *P_star, const double gammaL, const double gammaR, const double u_L, const double u_R, const double p_L, const double p_R, const double c_L, const double c_R, _Bool *CRW, const double eps, const double tol, const int N) |
| EXACT RIEMANN SOLVER FOR Two-Component γ-Law Gas 更多... | |
| double | Riemann_solver_exact_Ben (double *U_star, double *P_star, const double gamma, const double u_L, const double u_R, const double p_L, const double p_R, const double c_L, const double c_R, _Bool *CRW, const double eps, const double tol, const int N) |
| EXACT RIEMANN SOLVER FOR A γ-Law Gas 更多... | |
There are exact Riemann solvers in Ben-Artzi's book.
在文件 riemann_solver_exact_Ben.c 中定义.
| double Riemann_solver_exact | ( | double * | U_star, |
| double * | P_star, | ||
| const double | gammaL, | ||
| const double | gammaR, | ||
| const double | u_L, | ||
| const double | u_R, | ||
| const double | p_L, | ||
| const double | p_R, | ||
| const double | c_L, | ||
| const double | c_R, | ||
| _Bool * | CRW, | ||
| const double | eps, | ||
| const double | tol, | ||
| const int | N | ||
| ) |
EXACT RIEMANN SOLVER FOR Two-Component γ-Law Gas
The purpose of this function is to solve the Riemann problem exactly, for the time dependent one dimensional Euler equations for two-component γ-law gas.
| [out] | U_star,P_star | Velocity/Pressure in star region. |
| [in] | u_L,p_L,c_L | Initial Velocity/Pressure/sound_speed on left state. |
| [in] | u_R,p_R,c_R | 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] | tol | Condition value of 'gap' at the end of the iteration. |
| [in] | N | Maximum iteration step. |
在文件 riemann_solver_exact_Ben.c 第 30 行定义.
| double Riemann_solver_exact_Ben | ( | double * | U_star, |
| double * | P_star, | ||
| const double | gamma, | ||
| const double | u_L, | ||
| const double | u_R, | ||
| const double | p_L, | ||
| const double | p_R, | ||
| const double | c_L, | ||
| const double | c_R, | ||
| _Bool * | CRW, | ||
| const double | eps, | ||
| const double | tol, | ||
| const int | N | ||
| ) |
EXACT RIEMANN SOLVER FOR A γ-Law Gas
The purpose of this function is to solve the Riemann problem exactly, for the time dependent one dimensional Euler equations for a γ-law gas.
| [out] | U_star,P_star | Velocity/Pressure in star region. |
| [in] | u_L,p_L,c_L | Initial Velocity/Pressure/sound_speed on left state. |
| [in] | u_R,p_R,c_R | Initial Velocity/Pressure/sound_speed on right state. |
| [in] | gamma | 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] | tol | Condition value of 'gap' at the end of the iteration. |
| [in] | N | Maximum iteration step. |
在文件 riemann_solver_exact_Ben.c 第 230 行定义.