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
linear_grp_solver_Edir.c 文件参考

This is a direct Eulerian GRP solver for compressible inviscid flow in Li's paper. 更多...

#include <math.h>
#include <stdio.h>
#include "../include/var_struc.h"
#include "../include/riemann_solver.h"
linear_grp_solver_Edir.c 的引用(Include)关系图:

浏览源代码.

函数

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)
 A direct Eulerian GRP solver for unsteady compressible inviscid flow in one space dimension. 更多...
 

详细描述

This is a direct Eulerian GRP solver for compressible inviscid flow in Li's paper.

在文件 linear_grp_solver_Edir.c 中定义.

函数说明

◆ linear_GRP_solver_Edir()

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 
)

A direct Eulerian GRP solver for unsteady compressible inviscid flow in one space dimension.

参数
[out]Dthe temporal derivative of fluid variables.
[rho, u, p]_t
[out]Uthe intermediate Riemann solutions at t-axis.
[rho_mid, u_mid, p_mid]
[in]ifv_LLeft States (rho_L, u_L, p_L, s_rho_L, s_u_L, s_p_L, gamma).
[in]ifv_RRight States (rho_R, u_R, p_R, s_rho_R, s_u_R, s_p_R).
  • s_rho, s_u, s_p: x-spatial derivatives.
  • gamma: the constant of the perfect gas.
[in]epsthe largest value could be seen as zero.
[in]atcParameter that determines the solver type.
  • INFINITY: acoustic approximation
    • ifv_.s_ = -0.0: exact Riemann solver
  • eps: 1D GRP solver(nonlinear + acoustic case)
  • -0.0: 1D GRP solver(only nonlinear case)
参见
Theory is found in Reference [1].
[1] M. Ben-Artzi, J. Li & G. Warnecke, A direct Eulerian GRP scheme for compressible fluid flows. Journal of Computational Physics, 218.1: 19-43, 2006.

在文件 linear_grp_solver_Edir.c33 行定义.

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