HydroCODE_1D 0.1
This is a implementation of fully explict forward Euler scheme for 1-D Euler equations of motion on Lagrangian/Eulerian coordinate
riemann_solver_exact_Ben.c 文件参考

There are exact Riemann solvers in Ben-Artzi's book. 更多...

#include <math.h>
#include <stdio.h>
#include <stdbool.h>
riemann_solver_exact_Ben.c 的引用(Include)关系图:

浏览源代码.

函数

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.

参见
Theory is found in Appendix C of Reference [1].
[1] M. Ben-Artzi & J. Falcovitz, "Generalized Riemann problems in computational fluid dynamics". Cambridge University Press, 2003

在文件 riemann_solver_exact_Ben.c 中定义.

函数说明

◆ Riemann_solver_exact()

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_starVelocity/Pressure in star region.
[in]u_L,p_L,c_LInitial Velocity/Pressure/sound_speed on left state.
[in]u_R,p_R,c_RInitial Velocity/Pressure/sound_speed on right state.
[in]gammaL,gammaRRatio of specific heats.
[out]CRWCentred Rarefaction Wave (CRW) Indicator of left and right waves.
  • true: CRW
  • false: Shock wave
[in]epsThe largest value can be seen as zero.
[in]tolCondition value of 'gap' at the end of the iteration.
[in]NMaximum iteration step.
返回
gap: Relative pressure change after the last iteration.

在文件 riemann_solver_exact_Ben.c30 行定义.

这是这个函数的调用关系图:

◆ Riemann_solver_exact_Ben()

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_starVelocity/Pressure in star region.
[in]u_L,p_L,c_LInitial Velocity/Pressure/sound_speed on left state.
[in]u_R,p_R,c_RInitial Velocity/Pressure/sound_speed on right state.
[in]gammaRatio of specific heats.
[out]CRWCentred Rarefaction Wave (CRW) Indicator of left and right waves.
  • true: CRW
  • false: Shock wave
[in]epsThe largest value can be seen as zero.
[in]tolCondition value of 'gap' at the end of the iteration.
[in]NMaximum iteration step.
返回
gap: Relative pressure change after the last iteration.

在文件 riemann_solver_exact_Ben.c230 行定义.