This file is the header file of several Riemann solvers and GRP solvers. 更多...
#include "../include/var_struc.h"
宏定义 | |
#define | Riemann_solver_exact_single Riemann_solver_exact_Ben |
Which solver is chosen as the exact Riemann solver for single-component flow. 更多... | |
函数 | |
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, int N) |
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 更多... | |
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) |
double | Riemann_solver_exact_Toro (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) |
void | linear_GRP_solver_LAG (double *D, double *U, const struct i_f_var *ifv_L, const struct i_f_var *ifv_R, const double eps, const double atc) |
void | linear_GRP_solver_Edir (double *D, double *U, const struct i_f_var *ifv_L, const struct i_f_var *ifv_R, const double eps, const double atc) |
void | linear_GRP_solver_Edir_Q1D (double *wave_speed, double *D, double *U, double *U_star, const struct i_f_var *ifv_L, const struct i_f_var *ifv_R, const double eps, const double atc) |
void | linear_GRP_solver_Edir_G2D (double *wave_speed, double *D, double *U, double *U_star, const struct i_f_var *ifv_L, const struct i_f_var *ifv_R, const double eps, const double atc) |
void | AcousticRLagTangent (double *dire, double *U_star, const struct i_f_var *ifv_L, const struct i_f_var *ifv_R, const double r, const double M, const double eps) |
A GRP solver for unsteady compressible inviscid two-component flow in tangential case. Lagrangian version (moving mesh) for cylindrical case. 更多... | |
void | GRPsolverRLag (double *wave_speed, double *dire, double *U_star, const struct i_f_var *ifv_L, const struct i_f_var *ifv_R, const double r, const double M, const double eps, const double atc) |
A GRP solver for unsteady compressible inviscid two-component flow. Lagrangian version (moving mesh) cylindrical case. 更多... | |
void | HLL_2D_solver (double *F, double *lambda_max, const struct i_f_var *ifv_L, const struct i_f_var *ifv_R) |
void | Roe_solver (double *F, double *lambda_max, const struct i_f_var *ifv_L, const struct i_f_var *ifv_R, const double delta) |
void | Roe_2D_solver (double *F, double *lambda_max, const struct i_f_var *ifv_L, const struct i_f_var *ifv_R, const double delta) |
void | Roe_HLL_solver (double *V_mk, double *F, double *lambda_max, const struct i_f_var *ifv_L, const struct i_f_var *ifv_R, const double delta) |
This file is the header file of several Riemann solvers and GRP solvers.
This header file declares functions in the folder 'Riemann_solver'.
在文件 riemann_solver.h 中定义.
#define Riemann_solver_exact_single Riemann_solver_exact_Ben |
Which solver is chosen as the exact Riemann solver for single-component flow.
在文件 riemann_solver.h 第 17 行定义.
void AcousticRLagTangent | ( | double * | dire, |
double * | U_star, | ||
const struct i_f_var * | ifv_L, | ||
const struct i_f_var * | ifv_R, | ||
const double | r, | ||
const double | M, | ||
const double | eps | ||
) |
A GRP solver for unsteady compressible inviscid two-component flow in tangential case. Lagrangian version (moving mesh) for cylindrical case.
[out] | dire | the temporal derivative of fluid variables in the Star Region. [*, u, p]_t |
[out] | U_star | the Riemann solutions in the Star Region. [*, u_star, p_star] |
[in] | ifv_L | Left States (rho_L, u_L, p_L, d_u_L, d_p_L, gammaL). |
[in] | ifv_R | Right States (rho_R, u_R, p_R, d_u_R, d_p_R, gammaR).
|
[in] | r | the r-coordinate value. |
[in] | M | Spatial dimension number for radially symmetric flow.
|
[in] | eps | the largest value could be seen as zero. |
在文件 linear_grp_solver_radial_LAG.c 第 30 行定义.
void GRPsolverRLag | ( | double * | wave_speed, |
double * | dire, | ||
double * | U_star, | ||
const struct i_f_var * | ifv_L, | ||
const struct i_f_var * | ifv_R, | ||
const double | r, | ||
const double | M, | ||
const double | eps, | ||
const double | atc | ||
) |
A GRP solver for unsteady compressible inviscid two-component flow. Lagrangian version (moving mesh) cylindrical case.
[out] | wave_speed | the velocity of left and right waves. |
[out] | dire | the temporal derivative of fluid variables in the Star Region. [rho_L, u, p, rho_R]_t |
[out] | U_star | the Riemann solutions in the Star Region. [rho_star_L, u_star, p_star, rho_star_R] |
[in] | ifv_L | Left States (rho_L, u_L, p_L, d_rho_L, d_u_L, d_p_L, gammaL). |
[in] | ifv_R | Right States (rho_R, u_R, p_R, d_rho_R, d_u_R, d_p_R, gammaR).
|
[in] | r | the r-coordinate value. |
[in] | M | Spatial dimension number for radially symmetric flow.
|
[in] | eps | the largest value could be seen as zero. |
[in] | atc | Parameter that determines the solver type.
|
在文件 linear_grp_solver_radial_LAG.c 第 92 行定义.
void HLL_2D_solver | ( | double * | F, |
double * | lambda_max, | ||
const struct i_f_var * | ifv_L, | ||
const struct i_f_var * | ifv_R | ||
) |
void linear_GRP_solver_Edir | ( | double * | D, |
double * | U, | ||
const struct i_f_var * | ifv_L, | ||
const struct i_f_var * | ifv_R, | ||
const double | eps, | ||
const double | atc | ||
) |
void linear_GRP_solver_Edir_G2D | ( | double * | wave_speed, |
double * | D, | ||
double * | U, | ||
double * | U_star, | ||
const struct i_f_var * | ifv_L, | ||
const struct i_f_var * | ifv_R, | ||
const double | eps, | ||
const double | atc | ||
) |
void linear_GRP_solver_Edir_Q1D | ( | double * | wave_speed, |
double * | D, | ||
double * | U, | ||
double * | U_star, | ||
const struct i_f_var * | ifv_L, | ||
const struct i_f_var * | ifv_R, | ||
const double | eps, | ||
const double | atc | ||
) |
void linear_GRP_solver_LAG | ( | double * | D, |
double * | U, | ||
const struct i_f_var * | ifv_L, | ||
const struct i_f_var * | ifv_R, | ||
const double | eps, | ||
const double | atc | ||
) |
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, | ||
int | N | ||
) |
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 | ||
) |
double Riemann_solver_exact_Toro | ( | 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 | ||
) |
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 行定义.
void Roe_2D_solver | ( | double * | F, |
double * | lambda_max, | ||
const struct i_f_var * | ifv_L, | ||
const struct i_f_var * | ifv_R, | ||
const double | delta | ||
) |
void Roe_HLL_solver | ( | double * | V_mk, |
double * | F, | ||
double * | lambda_max, | ||
const struct i_f_var * | ifv_L, | ||
const struct i_f_var * | ifv_R, | ||
const double | delta | ||
) |