This is a set of functions which control the read-in of one-dimensional data. 更多...
#include <math.h>
#include <string.h>
#include <stdio.h>
#include <stdlib.h>
#include <stdbool.h>
#include "../include/var_struc.h"
#include "../include/file_io.h"
宏定义 | |
#define | N_MAX_1D 1000 |
The maximum number of 1-D data dimension storing fluid variables in memory. 更多... | |
#define | STR_FLU_INI(sfv, err_exit) |
Count out and read in 1-D data of the initial fluid variable 'sfv'. If the initial data file does not exist, 'err_exit=1' means the program exits, while 'err_exit=0' means the program continues. 更多... | |
函数 | |
struct flu_var | initialize_1D (const char *name, int *N, int *N_plot, double *time_plot[]) |
This function reads the 1-D initial data file of density/velocity/pressure and performs some other initialization function procedures. 更多... | |
This is a set of functions which control the read-in of one-dimensional data.
在文件 file_1D_in.c 中定义.
#define N_MAX_1D 1000 |
The maximum number of 1-D data dimension storing fluid variables in memory.
在文件 file_1D_in.c 第 17 行定义.
#define STR_FLU_INI | ( | sfv, | |
err_exit | |||
) |
Count out and read in 1-D data of the initial fluid variable 'sfv'. If the initial data file does not exist, 'err_exit=1' means the program exits, while 'err_exit=0' means the program continues.
在文件 file_1D_in.c 第 24 行定义.
struct flu_var initialize_1D | ( | const char * | name, |
int * | N, | ||
int * | N_plot, | ||
double * | time_plot[] | ||
) |
This function reads the 1-D initial data file of density/velocity/pressure and performs some other initialization function procedures.
The function initialize the extern pointer FV0.RHO/U/P pointing to the position of a block of memory consisting m variables* of type double. These m variables are the initial value and the value of m is stored in config[3].
[in] | name | Name of the test example. |
[in] | N | Pointer to the number of 1-D data dimension storing fluid variables in memory. |
[out] | N_plot | Pointer to the number of time steps for plotting. |
[out] | time_plot | Pointer to the array of the plotting time recording. |
在文件 file_1D_in.c 第 93 行定义.