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
浏览该文件的文档.
1
7#ifndef FLUXCALC_H
8#define FLUXCALC_H
9
10#include "../include/var_struc.h"
11
12/* Generate fluxes for 2-D Godunov/GRP scheme (Eulerian, single-component flow) */
14// flux_generator_x.c
16int flux_generator_x(const int m, const int n, const int nt, const double tau, struct cell_var_stru * CV,
17 struct b_f_var * bfv_L, struct b_f_var * bfv_R, const _Bool Transversal);
19// flux_generator_y.c
21int flux_generator_y(const int m, const int n, const int nt, const double tau, struct cell_var_stru * CV,
22 struct b_f_var * bfv_D, struct b_f_var * bfv_U, const _Bool Transversal);
23
25// flux_solver.c
27// Flux of 2-D GRP solver (Eulerian, two-component flow)
28int GRP_2D_flux (struct i_f_var * ifv, struct i_f_var * ifv_R, const double tau);
29// Flux of exact Riemann solver (Eulerian, two-component flow)
30int Riemann_exact_flux(struct i_f_var * ifv, struct i_f_var * ifv_R);
31// Flux of approximate Riemann solver (Eulerian, two-component flow)
32void Roe_flux(struct i_f_var * ifv, struct i_f_var * ifv_R);
33void HLL_flux(struct i_f_var * ifv, struct i_f_var * ifv_R);
34
35#endif
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.
Definition: flux_solver.c:158
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.
Definition: flux_solver.c:49
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.
Definition: flux_solver.c:75
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 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.
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.
Definition: flux_solver.c:19
Fluid VARiables at Boundary in one direction.
Definition: var_struc.h:146
pointer structure of VARiables on STRUctural computational grid CELLs.
Definition: var_struc.h:61
Interfacial Fluid VARiables.
Definition: var_struc.h:116