hydrocode_Radial_Lag 0.3
This is an implementation of fully explict forward Euler scheme for multi-D radially symmetric compressible flows on Lagrangian coordinate
riemann_solver_starPU.c 文件参考

This is an exact two-component Riemann solver in Toro's book. 更多...

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

浏览源代码.

函数

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 中定义.

函数说明

◆ GuessP()

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 
)
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,CLInitial Density/Velocity/Pressure/Sound_speed on left state.
[in]DR,UR,PR,CRInitial Density/Velocity/Pressure/Sound_speed on right state.
[in]GammaL,GammaRRatio of specific heats.
[in]epsThe largest value can be seen as zero.
返回
PM: A guess value for pressure in the Star Region.

在文件 riemann_solver_starPU.c20 行定义.

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

◆ PreFun()

static void PreFun ( double *  F,
double *  FD,
const double  P,
const double  DK,
const double  PK,
const double  CK,
const double  Gamma 
)
static

Evaluate the pressure functions FL and FR in exact Riemann solver.

参数
[out]FPressure function FL or FR.
[out]FDFirst derivative of F with respect to pressure P.
[in]PPressure.
[in]DKDensity.
[in]PKPressure.
[in]CKSound speed.
[in]GammaRatio of specific heats.

在文件 riemann_solver_starPU.c71 行定义.

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

◆ Riemann_solver_starPU()

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_starVelocity/Pressure in star region.
[in]UL,PL,CLInitial Velocity/Pressure/Sound_speed on left state.
[in]UR,PR,CRInitial 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]TOLPRECondition value of 'gap' at the end of the iteration.
[in]NRITERMaximum iteration step (Recommended Value: 100).
返回
change: Relative pressure change after the last iteration.
作者
E. F. Toro
日期
February 1st 1999
参见
Theory is found in Chapter 4 of Reference [1].
[1] E. F. Toro, "Riemann Solvers and Numerical Methods for Fluid Dynamics". Springer-Verlag, Second Edition, 1999

在文件 riemann_solver_starPU.c115 行定义.

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