hydrocode_Radial_Lag 0.3
This is an implementation of fully explict forward Euler scheme for multi-D radially symmetric compressible flows on Lagrangian coordinate
file_1D_in.c 文件参考

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"
file_1D_in.c 的引用(Include)关系图:

浏览源代码.

宏定义

#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 中定义.

宏定义说明

◆ N_MAX_1D

#define N_MAX_1D   1000

The maximum number of 1-D data dimension storing fluid variables in memory.

在文件 file_1D_in.c17 行定义.

◆ STR_FLU_INI

#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.c24 行定义.

函数说明

◆ initialize_1D()

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]nameName of the test example.
[in]NPointer to the number of 1-D data dimension storing fluid variables in memory.
[out]N_plotPointer to the number of time steps for plotting.
[out]time_plotPointer to the array of the plotting time recording.
返回
FV0: Structure of initial fluid variable data array pointer.
注解
This function contains the function procedures 'time_plot_read()' and 'configurate()'.

在文件 file_1D_in.c93 行定义.

函数调用图:
这是这个函数的调用关系图: