HydroCODE_2D 0.1
This is a implementation of fully explict forward Euler scheme for 2-D Euler equations of motion on Eulerian coordinate
file_io.h
浏览该文件的文档.
1
7#ifndef FILEIO_H
8#define FILEIO_H
9
10// io_control.c
11void example_io(const char * example, char * add_mkdir, const int i_or_o);
12
13int flu_var_count(FILE * fp, const char * add);
14int flu_var_count_line(FILE * fp, const char * add, int * n_x);
15
16int flu_var_read(FILE * fp, double * U, const int num);
17
18// _1D_file_in.c
19struct flu_var _1D_initialize(const char * name);
20struct flu_var _2D_initialize(const char * name);
21
22// _1D_file_out.c
23void _1D_file_write(const int m, const int N, const struct cell_var_stru CV,
24 double * X[], const double * cpu_time, const char * name, const double * time_plot);
25void _2D_file_write(const int n_x, const int n_y, const int N, const struct cell_var_stru CV[],
26 double ** X, double ** Y, const double * cpu_time, const char * name, const double * time_plot);
27void _2D_TEC_file_write(const int n_x, const int n_y, const int N, const struct cell_var_stru CV[],
28 double ** X, double ** Y, const double * cpu_time, const char * problem, const double * time_plot);
29
30// config_handle.c
31void configurate(const char * name);
32
33void config_write(const char * add_out, const double * cpu_time, const char * name);
34
35
36#endif
struct flu_var _2D_initialize(const char *name)
This function reads the 2-D initial data file of velocity/pressure/density.
Definition: _2D_file_in.c:79
void _2D_file_write(const int n_x, const int n_y, const int N, const struct cell_var_stru CV[], double **X, double **Y, const double *cpu_time, const char *name, const double *time_plot)
This function write the 2-D solution into output .dat files.
Definition: _2D_file_out.c:56
int flu_var_read(FILE *fp, double *U, const int num)
This function reads the initial data file to generate the initial data.
Definition: io_control.c:208
int flu_var_count_line(FILE *fp, const char *add, int *n_x)
This function counts the line and column number of the numbers are there in the initial data file.
Definition: io_control.c:150
void config_write(const char *add_out, const double *cpu_time, const char *name)
void example_io(const char *example, char *add_mkdir, const int i_or_o)
This function produces folder path for data input or output.
Definition: io_control.c:39
struct flu_var _1D_initialize(const char *name)
This function reads the 1-D initial data file of velocity/pressure/density.
Definition: _1D_file_in.c:70
void _1D_file_write(const int m, const int N, const struct cell_var_stru CV, double *X[], const double *cpu_time, const char *name, const double *time_plot)
This function write the 1-D solution into output .dat files.
Definition: _1D_file_out.c:50
int flu_var_count(FILE *fp, const char *add)
This function counts how many numbers are there in the initial data file.
Definition: io_control.c:111
void configurate(const char *name)
This function controls configuration data reading and validation.
void _2D_TEC_file_write(const int n_x, const int n_y, const int N, const struct cell_var_stru CV[], double **X, double **Y, const double *cpu_time, const char *problem, const double *time_plot)
This function write the 2-D solution into Tecplot output files.
Definition: _2D_file_out.c:104
pointer structure of VARiables on STRUctural computational grid CELLs.
Definition: var_struc.h:35
pointer structure of FLUid VARiables.
Definition: var_struc.h:30