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
浏览该文件的文档.
1
7#ifndef INTERPROCESS_H
8#define INTERPROCESS_H
9
10#include "../include/var_struc.h"
11
12
14// fluid_var_check.c
16int ifvar_check(struct i_f_var *ifv_L, struct i_f_var *ifv_R, const int dim);
17int star_dire_check(double *mid, double *dire, const int dim);
18
19
21// slope_limiter.c
23void minmod_limiter(const _Bool NO_h, const int m, const _Bool i_f_var_get, double s[],
24 const double U[], const double UL, const double UR, const double HL, ...);
26// slope_limiter_2D_x.c
28void minmod_limiter_2D_x(const _Bool NO_h, const int m, const int i, const _Bool i_f_var_x_get, double ** s,
29 double ** U, const double UL, const double UR, const double HL, ...);
31// slope_limiter_radial.c
33void minmod_limiter_radial(const int Ncell, const _Bool i_f_var_get, double s[],
34 const double U[], struct radial_mesh_var *rmv);
36// slope_VIP_limiter_radial.c
38void VIP_limiter_radial(const int Ncell, const _Bool i_f_var_get, double DmU[], double TmV[],
39 const double UU[], struct radial_mesh_var *rmv);
40
41
42/* Set boundary conditions & Use the slope limiter */
44// bound_cond_slope_limiter.c
46_Bool bound_cond_slope_limiter(const _Bool NO_h, const int m, const int nt, struct cell_var_stru * CV,
47 struct b_f_var * bfv_L, struct b_f_var * bfv_R, _Bool find_bound, const _Bool Slope, const double t_c, ...);
49// bound_cond_slope_limiter_x.c
51_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,
52 struct b_f_var * bfv_D, struct b_f_var * bfv_U, _Bool find_bound_x, const _Bool Slope, const double t_c);
54// bound_cond_slope_limiter_y.c
56_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,
57 struct b_f_var * bfv_D, struct b_f_var * bfv_U, _Bool find_bound_y, const _Bool Slope, const double t_c);
58
59#endif
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_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,...)
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.
_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.
void minmod_limiter_radial(const int Ncell, const _Bool i_f_var_get, double s[], const double U[], struct radial_mesh_var *rmv)
_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)
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.
Definition: slope_limiter.c:31
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_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)
Fluid VARiables at Boundary in one direction.
Definition: var_struc.h:146
pointer structure of VARiables on STRUctural computational grid CELLs.
Definition: var_struc.h:61
Interfacial Fluid VARiables.
Definition: var_struc.h:116