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

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"
flux_generator_x.c 的引用(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. 更多...
 

详细描述

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 中定义.

函数说明

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

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