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

This file is a set of functions to calculate interfacial fluxes and demanded variables according to the left and right state of the cell interface by certain solver. 更多...

#include <stdio.h>
#include <math.h>
#include "../include/var_struc.h"
#include "../include/inter_process.h"
#include "../include/riemann_solver.h"
flux_solver.c 的引用(Include)关系图:

浏览源代码.

函数

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. 更多...
 
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. 更多...
 
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 a set of functions to calculate interfacial fluxes and demanded variables according to the left and right state of the cell interface by certain solver.

在文件 flux_solver.c 中定义.

函数说明

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

函数调用图: