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
finite_volume.h
浏览该文件的文档.
1
7#ifndef FINITEVOLUME_H
8#define FINITEVOLUME_H
9
10#include "../include/var_struc.h"
11
12/* 1-D Godunov/GRP scheme (Lagrangian, single-component flow) */
14// godunov_solver_LAG_source.c
16void Godunov_solver_LAG_source(const int m, struct cell_var_stru CV, double * X[], double * cpu_time, int * N_plot, double time_plot[]);
18// grp_solver_LAG_source.c
20void GRP_solver_LAG_source(const int m, struct cell_var_stru CV, double * X[], double * cpu_time, int * N_plot, double time_plot[]);
21
22/* radially symmertric Godunov/GRP scheme (Lagrangian, two-component flow, radial structured grid) */
24// grp_solver_radial_LAG_source.c
26void GRP_solver_radial_LAG_source(struct cell_var_stru CV, struct radial_mesh_var * rmv, double * R[], const int M,
27 double * cpu_time, const char * problem, int N_T, int * N_plot , double time_plot[]);
28
29/* 1-D Godunov/GRP scheme (Eulerian, single-component flow) */
31// godunov_solver_EUL_source.c
33void Godunov_solver_EUL_source(const int m, struct cell_var_stru CV, double * cpu_time, int * N_plot, double time_plot[]);
35// grp_solver_EUL_source.c
37void GRP_solver_EUL_source(const int m, struct cell_var_stru CV, double * cpu_time, int * N_plot, double time_plot[]);
38
39/* 2-D Godunov/GRP scheme (Eulerian, single-component flow, structured grid) */
41// grp_solver_2D_EUL_source.c
43void GRP_solver_2D_EUL_source(const int m, const int n, struct cell_var_stru * CV, double ** X, double **Y,
44 double * cpu_time, const char * problem, int N_T, int * N_plot, double time_plot[]);
46// grp_solver_2D_split_EUL_source.c
48void GRP_solver_2D_split_EUL_source(const int m, const int n, struct cell_var_stru * CV, double ** X, double **Y,
49 double * cpu_time, const char * problem, int N_T, int * N_plot, double time_plot[]);
50
51/* 2-D Godunov/GRP scheme (Eulerian, two-component flow, unstructured grid) */
53// finite_volume_scheme_unstruct.c
55void finite_volume_scheme_unstruct(struct flu_var * FV, const struct mesh_var * mv, const char * scheme,
56 const char * problem, int * N_plot, const double time_plot[]);
57
58/* 2-D Godunov/GRP scheme (Eulerian, Baer-Nunziato two-phase flow, structured grid) */
59void finite_volume_scheme_GRP2D(struct flu_var * FV, const struct mesh_var * mv, const char * phase, const char * problem);
60
61#endif
void GRP_solver_EUL_source(const int m, struct cell_var_stru CV, double *cpu_time, int *N_plot, double time_plot[])
This function use GRP scheme to solve 1-D Euler equations of motion on Eulerian coordinate.
void GRP_solver_2D_EUL_source(const int m, const int n, struct cell_var_stru *CV, double **X, double **Y, double *cpu_time, const char *problem, int N_T, int *N_plot, double time_plot[])
void GRP_solver_radial_LAG_source(struct cell_var_stru CV, struct radial_mesh_var *rmv, double *R[], const int M, double *cpu_time, const char *problem, int N_T, int *N_plot, double time_plot[])
void GRP_solver_LAG_source(const int m, struct cell_var_stru CV, double *X[], double *cpu_time, int *N_plot, double time_plot[])
This function use GRP scheme to solve 1-D Euler equations of motion on Lagrangian coordinate.
void finite_volume_scheme_unstruct(struct flu_var *FV, const struct mesh_var *mv, const char *scheme, const char *problem, int *N_plot, const double time_plot[])
void finite_volume_scheme_GRP2D(struct flu_var *FV, const struct mesh_var *mv, const char *phase, const char *problem)
void Godunov_solver_EUL_source(const int m, struct cell_var_stru CV, double *cpu_time, int *N_plot, double time_plot[])
This function use Godunov scheme to solve 1-D Euler equations of motion on Eulerian coordinate.
void Godunov_solver_LAG_source(const int m, struct cell_var_stru CV, double *X[], double *cpu_time, int *N_plot, double time_plot[])
This function use Godunov scheme to solve 1-D Euler equations of motion on Lagrangian coordinate.
void GRP_solver_2D_split_EUL_source(const int m, const int n, struct cell_var_stru *CV, double **X, double **Y, double *cpu_time, const char *problem, int N_T, int *N_plot, double time_plot[])
pointer structure of VARiables on STRUctural computational grid CELLs.
Definition: var_struc.h:61
pointer structure of FLUid VARiables array.
Definition: var_struc.h:48
MESHing VARiables.
Definition: var_struc.h:155