HydroCODE_1D 0.1
This is a implementation of fully explict forward Euler scheme for 1-D Euler equations of motion on Lagrangian/Eulerian coordinate
var_struc.h
浏览该文件的文档.
1
6#ifndef VARSTRUC_H
7#define VARSTRUC_H
8
13#ifdef DOXYGEN_PREDEFINED
14#define MULTIFLUID_BASICS
15#endif
16
18#ifndef EPS
19#define EPS 1e-9
20#endif
21
23#ifndef N_CONF
24#define N_CONF 400
25#endif
26
27extern double config[];
28
30typedef struct flu_var {
31 double * RHO, * U, * V, * P;
33
35typedef struct cell_var_stru {
36 double ** RHO, ** U, ** V, ** P, ** E;
37 double * d_rho, * d_u, * d_p;
38 double ** s_rho, ** s_u, ** s_v, ** s_p;
39 double ** t_rho, ** t_u, ** t_v, ** t_p;
40 double ** rhoIx, ** uIx, ** vIx, ** pIx;
41 double ** rhoIy, ** uIy, ** vIy, ** pIy;
42 double ** F_rho, ** F_e, ** F_u, ** F_v;
43 double ** G_rho, ** G_e, ** G_u, ** G_v;
45
47typedef struct i_f_var {
48 double n_x, n_y;
49 double RHO, P, U, V;
51 double F_rho, F_e, F_u, F_v;
52 double d_rho, d_p, d_u, d_v;
53 double t_rho, t_p, t_u, t_v;
55 double gamma;
56#ifdef MULTIFLUID_BASICS
57 double PHI, d_phi, t_phi;
58 double Z_a, d_z_a, t_z_a;
59#endif
61
63typedef struct b_f_var {
64 double RHO, P, U, V, H;
65 double SRHO, SP, SU, SV;
66 double TRHO, TP, TU, TV;
68
69#endif
Fluid VARiables at Boundary.
Definition: var_struc.h:63
double SRHO
Definition: var_struc.h:65
double V
Definition: var_struc.h:64
double SV
spatial derivatives in coordinate x (slopes).
Definition: var_struc.h:65
double TRHO
Definition: var_struc.h:66
double RHO
Definition: var_struc.h:64
double U
Definition: var_struc.h:64
double P
Definition: var_struc.h:64
double SU
Definition: var_struc.h:65
double SP
Definition: var_struc.h:65
double H
H is the grid cell width.
Definition: var_struc.h:64
double TV
spatial derivatives in coordinate y (slopes).
Definition: var_struc.h:66
double TU
Definition: var_struc.h:66
double TP
Definition: var_struc.h:66
pointer structure of VARiables on STRUctural computational grid CELLs.
Definition: var_struc.h:35
double ** G_rho
Definition: var_struc.h:43
double ** U
Definition: var_struc.h:36
double * d_u
Definition: var_struc.h:37
double ** rhoIy
Definition: var_struc.h:41
double ** t_rho
Definition: var_struc.h:39
double ** F_v
numerical fluxes at (x_{j-1/2}, t_{n}).
Definition: var_struc.h:42
double ** pIx
interfacial variable values in coordinate x at t_{n+1}.
Definition: var_struc.h:40
double ** s_rho
Definition: var_struc.h:38
double ** RHO
Definition: var_struc.h:36
double ** vIy
Definition: var_struc.h:41
double ** s_u
Definition: var_struc.h:38
double ** F_e
Definition: var_struc.h:42
double ** t_u
Definition: var_struc.h:39
double ** G_v
numerical fluxes at (y_{j-1/2}, t_{n}).
Definition: var_struc.h:43
double ** F_u
Definition: var_struc.h:42
double * d_p
spatial derivatives in one dimension.
Definition: var_struc.h:37
double ** G_e
Definition: var_struc.h:43
double ** F_rho
Definition: var_struc.h:42
double ** s_v
Definition: var_struc.h:38
double ** t_v
Definition: var_struc.h:39
double ** G_u
Definition: var_struc.h:43
double ** rhoIx
Definition: var_struc.h:40
double ** uIy
Definition: var_struc.h:41
double ** V
Definition: var_struc.h:36
double ** s_p
spatial derivatives in coordinate x (slopes).
Definition: var_struc.h:38
double ** uIx
Definition: var_struc.h:40
double ** vIx
Definition: var_struc.h:40
double ** pIy
interfacial variable values in coordinate y at t_{n+1}.
Definition: var_struc.h:41
double ** P
Definition: var_struc.h:36
double * d_rho
Definition: var_struc.h:37
double ** t_p
spatial derivatives in coordinate y (slopes).
Definition: var_struc.h:39
double ** E
density, velocity components in direction x and y, pressure, specific total energy.
Definition: var_struc.h:36
pointer structure of FLUid VARiables.
Definition: var_struc.h:30
double * P
Definition: var_struc.h:31
double * RHO
Definition: var_struc.h:31
double * U
Definition: var_struc.h:31
double * V
Definition: var_struc.h:31
Interfacial Fluid VARiables.
Definition: var_struc.h:47
double d_z_a
Definition: var_struc.h:58
double t_rho
Definition: var_struc.h:53
double V
variable values at t_{n}.
Definition: var_struc.h:49
double V_int
interfacial variables at t_{n+1}.
Definition: var_struc.h:50
double PHI
Definition: var_struc.h:57
double lambda_v
grid moving velocity components in direction x and y
Definition: var_struc.h:54
double RHO
Definition: var_struc.h:49
double t_v
tangential spatial derivatives OR spatial derivatives in Lagrangian coordinate ξ
Definition: var_struc.h:53
double d_p
Definition: var_struc.h:52
double U_int
Definition: var_struc.h:50
double U
Definition: var_struc.h:49
double n_y
Definition: var_struc.h:48
double t_p
Definition: var_struc.h:53
double gamma
specific heat ratio
Definition: var_struc.h:55
double t_phi
Mass fraction of fluid a.
Definition: var_struc.h:57
double P
Definition: var_struc.h:49
double F_rho
Definition: var_struc.h:51
double RHO_int
Definition: var_struc.h:50
double n_x
Definition: var_struc.h:48
double d_phi
Definition: var_struc.h:57
double d_rho
Definition: var_struc.h:52
double F_e
Definition: var_struc.h:51
double d_u
Definition: var_struc.h:52
double t_u
Definition: var_struc.h:53
double Z_a
Definition: var_struc.h:58
double F_u
Definition: var_struc.h:51
double t_z_a
Volume fraction of fluid a.
Definition: var_struc.h:58
double F_v
interfacial fluxes at t_{n+1/2}.
Definition: var_struc.h:51
double lambda_u
Definition: var_struc.h:54
double d_v
normal spatial derivatives.
Definition: var_struc.h:52
double P_int
Definition: var_struc.h:50
struct i_f_var Interface_Fluid_Variable
Interfacial Fluid VARiables.
struct flu_var Fluid_Variable
pointer structure of FLUid VARiables.
struct b_f_var Boundary_Fluid_Variable
Fluid VARiables at Boundary.
double config[]
Initial configuration data array.
Definition: hydrocode.c:97
struct cell_var_stru Cell_Variable_Structured
pointer structure of VARiables on STRUctural computational grid CELLs.