HydroCODE_2D 0.1
This is a implementation of fully explict forward Euler scheme for 2-D Euler equations of motion on Eulerian coordinate
slope_limiter.c 文件参考

This is a function of the minmod slope limiter in one dimension. 更多...

#include <stdio.h>
#include <stdarg.h>
#include "../include/var_struc.h"
#include "../include/tools.h"
slope_limiter.c 的引用(Include)关系图:

浏览源代码.

函数

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. 更多...
 

详细描述

This is a function of the minmod slope limiter in one dimension.

在文件 slope_limiter.c 中定义.

函数说明

◆ 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 行定义.

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