This is a set of functions which control the readout of two-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"
宏定义 | |
#define | PRINT_NC(v, v_print) |
Print out fluid variable 'v' with array data element 'v_print'. 更多... | |
函数 | |
void | file_2D_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 output '.dat' files. 更多... | |
void | file_2D_write_POINT_TEC (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 with point data. 更多... | |
This is a set of functions which control the readout of two-dimensional data.
在文件 file_2D_out.c 中定义.
#define PRINT_NC | ( | v, | |
v_print | |||
) |
Print out fluid variable 'v' with array data element 'v_print'.
在文件 file_2D_out.c 第 19 行定义.
void file_2D_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 output '.dat' files.
[in] | n_x | The number of x-spatial points in the output data. |
[in] | n_y | The number of y-spatial points in the output data. |
[in] | N | The number of time steps in the output data. |
[in] | CV | Structure of variable data in computational grid cells. |
[in] | X | Array of the x-coordinate data. |
[in] | Y | Array of the y-coordinate data. |
[in] | cpu_time | Array of the CPU time recording. |
[in] | problem | Name of the numerical results for the test problem. |
[in] | time_plot | Array of the plotting time recording. |
在文件 file_2D_out.c 第 55 行定义.
void file_2D_write_POINT_TEC | ( | 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 with point data.
[in] | n_x | The number of x-spatial points in the output data. |
[in] | n_y | The number of y-spatial points in the output data. |
[in] | N | The number of time steps in the output data. |
[in] | CV | Structure of variable data in computational grid cells. |
[in] | X | Array of the x-coordinate data. |
[in] | Y | Array of the y-coordinate data. |
[in] | cpu_time | Array of the CPU time recording. |
[in] | problem | Name of the numerical results. |
[in] | time_plot | Array of the plotting time recording. |
在文件 file_2D_out.c 第 103 行定义.