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
hydrocode.c 文件参考

This is a C file of the main function. 更多...

#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <math.h>
#include "../include/var_struc.h"
#include "../include/file_io.h"
#include "../include/finite_volume.h"
#include "../include/meshing.h"
hydrocode.c 的引用(Include)关系图:

浏览源代码.

宏定义

#define NODATPLOT
 Switch whether to plot without Matrix data. 更多...
 
#define HDF5PLOT
 Switch whether to plot with HDF5 data. 更多...
 
#define NOTECPLOT
 Switch whether to plot without Tecplot data. 更多...
 
#define CV_INIT_FV_RESET_MEM(v, N)
 

函数

int main (int argc, char *argv[])
 This is the main function which constructs the main structure of the radially symmetric Lagrangian hydrocode. 更多...
 

变量

double config [N_CONF]
 Initial configuration data array. 更多...
 

详细描述

This is a C file of the main function.

在文件 hydrocode.c 中定义.

宏定义说明

◆ CV_INIT_FV_RESET_MEM

#define CV_INIT_FV_RESET_MEM (   v,
 
)
值:
do { \
CV.v = (double **)malloc(N * sizeof(double *)); \
if(CV.v == NULL) \
{ \
printf("NOT enough memory! %s\n", #v); \
retval = 5; \
goto return_NULL; \
} \
for(k = 0; k < N; ++k) \
{ \
CV.v[k] = (double *)malloc(Md * sizeof(double)); \
if(CV.v[k] == NULL) \
{ \
printf("NOT enough memory! %s[%d]\n", #v, k); \
retval = 5; \
goto return_NULL; \
} \
} \
memmove(CV.v[0]+1, FV0.v, Ncell * sizeof(double)); \
free(FV0.v); \
FV0.v = NULL; \
} while(0)

在文件 hydrocode.c125 行定义.

◆ HDF5PLOT

#define HDF5PLOT

Switch whether to plot with HDF5 data.

在文件 hydrocode.c115 行定义.

◆ NODATPLOT

#define NODATPLOT

Switch whether to plot without Matrix data.

在文件 hydrocode.c110 行定义.

◆ NOTECPLOT

#define NOTECPLOT

Switch whether to plot without Tecplot data.

在文件 hydrocode.c120 行定义.

函数说明

◆ main()

int main ( int  argc,
char *  argv[] 
)

This is the main function which constructs the main structure of the radially symmetric Lagrangian hydrocode.

参数
[in]argcARGument Counter.
[in]argvARGument Values.
  • argv[1]: Folder name of test example (input path).
  • argv[2]: Folder name of numerical results (output path).
  • argv[3]: Order of numerical scheme[_scheme name] (= 1[_Riemann_exact] or 2[_GRP]).
  • argv[4]: Spatial dimension number for radially symmetric flow.
    • M=1: planar flow.
    • M=2: cylindrical flow.
    • M=3: spherical flow.
  • argv[5,6,…]: Configuration supplement config[n]=(double)C (= n=C).
返回
Program exit status code.

在文件 hydrocode.c164 行定义.

函数调用图:

变量说明

◆ config

double config[N_CONF]

Initial configuration data array.

在文件 hydrocode.c123 行定义.