This file is the header file of intermediate processes of finite volume scheme. 更多...
#include "../include/var_struc.h"函数 | |
| int | flux_generator_x (const int m, const int n, const int nt, const double tau, struct cell_var_stru *CV, struct b_f_var *bfv_L, struct b_f_var *bfv_R, const _Bool Transversal) |
| This function calculate Eulerian fluxes of 2-D Euler equations in x-direction by 2-D GRP solver. 更多... | |
| int | flux_generator_y (const int m, const int n, const int nt, const double tau, struct cell_var_stru *CV, struct b_f_var *bfv_D, struct b_f_var *bfv_U, const _Bool Transversal) |
| This function calculate Eulerian fluxes of 2-D Euler equations in y-direction by 2-D GRP solver. 更多... | |
| int | GRP_2D_flux (struct i_f_var *ifv, struct i_f_var *ifv_R, const double tau) |
| This function calculate Eulerian fluxes of 2-D Euler equations by 2-D GRP solver. 更多... | |
This file is the header file of intermediate processes of finite volume scheme.
This header file declares functions in the folder 'flux_calc'.
在文件 flux_calc.h 中定义.
| int flux_generator_x | ( | const int | m, |
| const int | n, | ||
| const int | nt, | ||
| const double | tau, | ||
| struct cell_var_stru * | CV, | ||
| struct b_f_var * | bfv_L, | ||
| struct b_f_var * | bfv_R, | ||
| const _Bool | Transversal | ||
| ) |
This function calculate Eulerian fluxes of 2-D Euler equations in x-direction by 2-D GRP solver.
Passes variable values on both sides of the interface to the structure variables b_f_var bfv_L and bfv_R, and use function GRP_2D_scheme() to calculate fluxes.
| [in] | m | Number of the x-grids: n_x. |
| [in] | n | Number of the y-grids: n_y. |
| [in] | nt | Current plot time step for computing updates of conservative variables. |
| [in] | tau | The length of the time step. |
| [in,out] | CV | Structure of cell variable data. |
| [in] | bfv_L | Structure pointer of fluid variables at left boundary. |
| [in] | bfv_R | Structure pointer of fluid variables at right boundary. |
| [in] | Transversal | Whether the tangential effect is considered. |
| 0 | Successful calculation. |
| 1 | Calculation error of left/right states. |
| 2 | Calculation error of interfacial fluxes. |
在文件 flux_generator_x.c 第 30 行定义.
| int flux_generator_y | ( | const int | m, |
| const int | n, | ||
| const int | nt, | ||
| const double | tau, | ||
| struct cell_var_stru * | CV, | ||
| struct b_f_var * | bfv_D, | ||
| struct b_f_var * | bfv_U, | ||
| const _Bool | Transversal | ||
| ) |
This function calculate Eulerian fluxes of 2-D Euler equations in y-direction by 2-D GRP solver.
Passes variable values on both sides of the interface to the structure variables b_f_var bfv_L and bfv_R, and use function GRP_2D_scheme() to calculate fluxes.
| [in] | m | Number of the x-grids: n_x. |
| [in] | n | Number of the y-grids: n_y. |
| [in] | nt | Current plot time step for computing updates of conservative variables. |
| [in] | tau | The length of the time step. |
| [in,out] | CV | Structure of cell variable data. |
| [in] | bfv_D | Structure pointer of fluid variables at downside boundary. |
| [in] | bfv_U | Structure pointer of fluid variables at upper boundary. |
| [in] | Transversal | Whether the tangential effect is considered. |
| 0 | Successful calculation. |
| 1 | Calculation error of left/right states. |
| 2 | Calculation error of interfacial fluxes. |
在文件 flux_generator_y.c 第 30 行定义.
This function calculate Eulerian fluxes of 2-D Euler equations by 2-D GRP solver.
| [in,out] | ifv | Structure pointer of interfacial evaluated variables and fluxes and left state. |
| [in] | ifv_R | Structure pointer of interfacial right state. |
| [in] | tau | The length of the time step. |
| 0 | Successful calculation. |
| 1 | <0.0 error. |
| 2 | NAN or INFinite error of mid[]. |
| 3 | NAN or INFinite error of dire[]. |
在文件 flux_solver.c 第 24 行定义.