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

This is a function to set boundary conditions and use the slope limiter in one dimension. 更多...

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

浏览源代码.

函数

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

详细描述

This is a function to set boundary conditions and use the slope limiter in one dimension.

在文件 bound_cond_slope_limiter.c 中定义.

函数说明

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

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