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

This is a set of functions which control the readout of one-dimensional data. 更多...

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

浏览源代码.

宏定义

#define PRINT_NC(v, v_print)
 Print out fluid variable 'v' with array data element 'v_print'. 更多...
 

函数

void file_1D_write (const int m, const int N, const struct cell_var_stru CV, double *X[], const double *cpu_time, const char *problem, const double time_plot[])
 This function write the 1-D solution into output '.dat' files. 更多...
 

详细描述

This is a set of functions which control the readout of one-dimensional data.

在文件 file_1D_out.c 中定义.

宏定义说明

◆ PRINT_NC

#define PRINT_NC (   v,
  v_print 
)
值:
do { \
strcpy(file_data, add_out); \
strcat(file_data, #v); \
strcat(file_data, ".dat"); \
if((fp_write = fopen(file_data, "w")) == NULL) \
{ \
printf("Cannot open solution output file: %s!\n", #v); \
exit(1); \
} \
for(k = 0; k < N; ++k) \
{ \
for(j = 0; j < m; ++j) \
fprintf(fp_write, "%.10g\t", (v_print)); \
fprintf(fp_write, "\n"); \
} \
fclose(fp_write); \
} while (0)

Print out fluid variable 'v' with array data element 'v_print'.

在文件 file_1D_out.c19 行定义.

函数说明

◆ file_1D_write()

void file_1D_write ( const int  m,
const int  N,
const struct cell_var_stru  CV,
double *  X[],
const double *  cpu_time,
const char *  problem,
const double  time_plot[] 
)

This function write the 1-D solution into output '.dat' files.

注解
It is quite simple so there will be no more comments.
参数
[in]mThe number of spatial points in the output data.
[in]NThe number of time steps in the output data.
[in]CVStructure of grid variable data in computational grid cells.
[in]X[]Array of the coordinate data.
[in]cpu_timeArray of the CPU time recording.
[in]problemName of the numerical results for the test problem.
[in]time_plotArray of the plotting time recording.

在文件 file_1D_out.c49 行定义.

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