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

This file is the header file of intermediate processes of finite volume scheme. 更多...

flux_calc.h 的引用(Include)关系图:
此图展示该文件直接或间接的被哪些文件引用了:

浏览源代码.

函数

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. 更多...
 
int Riemann_exact_flux (struct i_f_var *ifv, struct i_f_var *ifv_R)
 This function calculate Eulerian fluxes of 2-D Euler equations by Riemann solver. 更多...
 
void Roe_flux (struct i_f_var *ifv, struct i_f_var *ifv_R)
 This function calculate Eulerian fluxes of Euler equations by Roe solver. 更多...
 
void HLL_flux (struct i_f_var *ifv, struct i_f_var *ifv_R)
 This function calculate Eulerian fluxes of 2-D Euler equations by HLL 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 中定义.

函数说明

◆ flux_generator_x()

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]mNumber of the x-grids: n_x.
[in]nNumber of the y-grids: n_y.
[in]ntCurrent plot time step for computing updates of conservative variables.
[in]tauThe length of the time step.
[in,out]CVStructure of cell variable data.
[in]bfv_LStructure pointer of fluid variables at left boundary.
[in]bfv_RStructure pointer of fluid variables at right boundary.
[in]TransversalWhether the tangential effect is considered.
返回
miscalculation indicator.
返回值
0Successful calculation.
1Calculation error of left/right states.
2Calculation error of interfacial fluxes.

在文件 flux_generator_x.c31 行定义.

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

◆ flux_generator_y()

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]mNumber of the x-grids: n_x.
[in]nNumber of the y-grids: n_y.
[in]ntCurrent plot time step for computing updates of conservative variables.
[in]tauThe length of the time step.
[in,out]CVStructure of cell variable data.
[in]bfv_DStructure pointer of fluid variables at downside boundary.
[in]bfv_UStructure pointer of fluid variables at upper boundary.
[in]TransversalWhether the tangential effect is considered.
返回
miscalculation indicator.
返回值
0Successful calculation.
1Calculation error of left/right states.
2Calculation error of interfacial fluxes.

在文件 flux_generator_y.c31 行定义.

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

◆ GRP_2D_flux()

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.

参数
[in,out]ifvStructure pointer of interfacial evaluated variables and fluxes and left state.
[in]ifv_RStructure pointer of interfacial right state.
[in]tauThe length of the time step.
返回
miscalculation indicator.
返回值
0Successful calculation.
1< 0.0 error.
2NAN or INFinite error of mid[].
3NAN or INFinite error of dire[].

在文件 flux_solver.c158 行定义.

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

◆ HLL_flux()

void HLL_flux ( struct i_f_var ifv,
struct i_f_var ifv_R 
)

This function calculate Eulerian fluxes of 2-D Euler equations by HLL solver.

参数
[in,out]ifvStructure pointer of interfacial evaluated variables and fluxes and left state.
[in]ifv_RStructure pointer of interfacial right state.

在文件 flux_solver.c49 行定义.

函数调用图:

◆ Riemann_exact_flux()

int Riemann_exact_flux ( struct i_f_var ifv,
struct i_f_var ifv_R 
)

This function calculate Eulerian fluxes of 2-D Euler equations by Riemann solver.

参数
[in,out]ifvStructure pointer of interfacial evaluated variables and fluxes and left state.
[in]ifv_RStructure pointer of interfacial right state.
返回
miscalculation indicator.
返回值
0Successful calculation.
1< 0.0 error.
2NAN or INFinite error of mid[].

在文件 flux_solver.c75 行定义.

函数调用图:

◆ Roe_flux()

void Roe_flux ( struct i_f_var ifv,
struct i_f_var ifv_R 
)

This function calculate Eulerian fluxes of Euler equations by Roe solver.

参数
[in,out]ifvStructure pointer of interfacial evaluated variables and fluxes and left state.
[in]ifv_RStructure pointer of interfacial right state.

在文件 flux_solver.c19 行定义.

函数调用图: