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
inter_process.h 文件参考

This file is the header file of intermediate processes of finite volume scheme. 更多...

inter_process.h 的引用(Include)关系图:
此图展示该文件直接或间接的被哪些文件引用了:

浏览源代码.

函数

int ifvar_check (struct i_f_var *ifv_L, struct i_f_var *ifv_R, const int dim)
 This function checks whether interfacial fluid variables are within the value range. 更多...
 
int star_dire_check (double *mid, double *dire, const int dim)
 This function checks whether fluid variables of mid[] and dire[] are within the value range. 更多...
 
void minmod_limiter (const _Bool NO_h, const int m, const _Bool i_f_var_get, double s[], const double U[], const double UL, const double UR, const double HL,...)
 This function apply the minmod limiter to the slope in one dimension. 更多...
 
void minmod_limiter_2D_x (const _Bool NO_h, const int m, const int i, const _Bool i_f_var_x_get, double **s, double **U, const double UL, const double UR, const double HL,...)
 
void minmod_limiter_radial (const int Ncell, const _Bool i_f_var_get, double s[], const double U[], struct radial_mesh_var *rmv)
 
void VIP_limiter_radial (const int Ncell, const _Bool i_f_var_get, double DmU[], double TmV[], const double UU[], struct radial_mesh_var *rmv)
 
_Bool bound_cond_slope_limiter (const _Bool NO_h, const int m, const int nt, struct cell_var_stru *CV, struct b_f_var *bfv_L, struct b_f_var *bfv_R, _Bool find_bound, const _Bool Slope, const double t_c,...)
 This function apply the minmod limiter to the slope in one dimension. 更多...
 
_Bool bound_cond_slope_limiter_x (const int m, const int n, const int nt, struct cell_var_stru *CV, struct b_f_var *bfv_L, struct b_f_var *bfv_R, struct b_f_var *bfv_D, struct b_f_var *bfv_U, _Bool find_bound_x, const _Bool Slope, const double t_c)
 
_Bool bound_cond_slope_limiter_y (const int m, const int n, const int nt, struct cell_var_stru *CV, struct b_f_var *bfv_L, struct b_f_var *bfv_R, struct b_f_var *bfv_D, struct b_f_var *bfv_U, _Bool find_bound_y, const _Bool Slope, const double t_c)
 

详细描述

This file is the header file of intermediate processes of finite volume scheme.

This header file declares functions in the folder 'inter_process'.

在文件 inter_process.h 中定义.

函数说明

◆ bound_cond_slope_limiter()

_Bool bound_cond_slope_limiter ( const _Bool  NO_h,
const int  m,
const int  nt,
struct cell_var_stru CV,
struct b_f_var bfv_L,
struct b_f_var bfv_R,
_Bool  find_bound,
const _Bool  Slope,
const double  t_c,
  ... 
)

This function apply the minmod limiter to the slope in one dimension.

参数
[in]NO_hWhether there are moving grid point coordinates.
  • true: There are moving spatial grid point coordinates *X.
  • false: There is fixed spatial grid length.
[in]mNumber of the grids.
[in]ntCurrent plot time step for computing updates of conservative variables.
[in]CVStructure of cell variable data.
[in,out]bfv_LFluid variables at left boundary.
[in,out]bfv_RFluid variables at right boundary.
[in]find_boundWhether the boundary conditions have been found.
[in]SlopeAre there slopes? (true: 2nd-order / false: 1st-order)
[in]t_cTime of current time step.
[in]...Variable parameter if NO_h is true.
  • double *X: Array of moving spatial grid point coordinates.
返回
find_bound: Whether the boundary conditions have been found.

在文件 bound_cond_slope_limiter.c30 行定义.

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

◆ bound_cond_slope_limiter_x()

_Bool bound_cond_slope_limiter_x ( const int  m,
const int  n,
const int  nt,
struct cell_var_stru CV,
struct b_f_var bfv_L,
struct b_f_var bfv_R,
struct b_f_var bfv_D,
struct b_f_var bfv_U,
_Bool  find_bound_x,
const _Bool  Slope,
const double  t_c 
)

◆ bound_cond_slope_limiter_y()

_Bool bound_cond_slope_limiter_y ( const int  m,
const int  n,
const int  nt,
struct cell_var_stru CV,
struct b_f_var bfv_L,
struct b_f_var bfv_R,
struct b_f_var bfv_D,
struct b_f_var bfv_U,
_Bool  find_bound_y,
const _Bool  Slope,
const double  t_c 
)

◆ ifvar_check()

int ifvar_check ( struct i_f_var ifv_L,
struct i_f_var ifv_R,
const int  dim 
)

This function checks whether interfacial fluid variables are within the value range.

参数
[in]ifv_LStructure pointer of interfacial left state.
[in]ifv_RStructure pointer of interfacial right state.
[in]dimSpatial dimension.
返回
miscalculation indicator.
返回值
0Successful calculation.
1< 0.0 error.
2NAN or INFinite error of Slope.

在文件 fluid_var_check.c21 行定义.

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

◆ minmod_limiter()

void minmod_limiter ( const _Bool  NO_h,
const int  m,
const _Bool  i_f_var_get,
double  s[],
const double  U[],
const double  UL,
const double  UR,
const double  HL,
  ... 
)

This function apply the minmod limiter to the slope in one dimension.

参数
[in]NO_hWhether there are moving grid point coordinates.
  • true: There are moving spatial grid point coordinates *X.
  • false: There is fixed spatial grid length.
[in]mNumber of the x-grids: n_x.
[in]i_f_var_getWhether the cell interfacial variables have been obtained.
  • true: interfacial variables at t_{n+1} are available, and then trivariate minmod3() function is used.
  • false: bivariate minmod2() function is used.
[in,out]s[]Spatial derivatives of the fluid variable are stored here.
[in]U[]Array to store fluid variable values.
[in]ULFluid variable value at left boundary.
[in]URFluid variable value at right boundary.
[in]HLSpatial grid length at left boundary OR fixed spatial grid length.
[in]...Variable parameter if NO_h is true.
  • double HR: Spatial grid length at right boundary.
  • double *X: Array of moving spatial grid point coordinates.

在文件 slope_limiter.c31 行定义.

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

◆ minmod_limiter_2D_x()

void minmod_limiter_2D_x ( const _Bool  NO_h,
const int  m,
const int  i,
const _Bool  i_f_var_x_get,
double **  s,
double **  U,
const double  UL,
const double  UR,
const double  HL,
  ... 
)

◆ minmod_limiter_radial()

void minmod_limiter_radial ( const int  Ncell,
const _Bool  i_f_var_get,
double  s[],
const double  U[],
struct radial_mesh_var *  rmv 
)

◆ star_dire_check()

int star_dire_check ( double *  mid,
double *  dire,
const int  dim 
)

This function checks whether fluid variables of mid[] and dire[] are within the value range.

参数
[in]midIntermediate Riemann solutions at t-axis OR in star region.
[in]direTemporal derivative of fluid variables.
[in]dimSpatial dimension.
返回
miscalculation indicator.
返回值
0Successful calculation.
1< 0.0 error of mid[].
2NAN or INFinite error of mid[].
3NAN or INFinite error of dire[].

在文件 fluid_var_check.c65 行定义.

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

◆ VIP_limiter_radial()

void VIP_limiter_radial ( const int  Ncell,
const _Bool  i_f_var_get,
double  DmU[],
double  TmV[],
const double  UU[],
struct radial_mesh_var *  rmv 
)