This file is a function which generates Eulerian fluxes in x-direction of 2-D Euler equations solved by 2-D GRP scheme. 更多...
#include <stdio.h>
#include <math.h>
#include "../include/var_struc.h"
#include "../include/inter_process.h"
#include "../include/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. 更多... | |
This file is a function which generates Eulerian fluxes in x-direction of 2-D Euler equations solved by 2-D GRP scheme.
在文件 flux_generator_x.c 中定义.
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 第 31 行定义.