HydroCODE_2D 0.1
This is a implementation of fully explict forward Euler scheme for 2-D Euler equations of motion on Eulerian coordinate
tools.h 文件参考

This file is the header file of several independent tool functions. 更多...

此图展示该文件直接或间接的被哪些文件引用了:

浏览源代码.

宏定义

#define MAX(a, b)   (((a) > (b)) ? (a) : (b))
 

函数

void DispPro (const double pro, const int step)
 This function print a progress bar on one line of standard output. 更多...
 
int CreateDir (const char *pPath)
 This is a function that recursively creates folders. 更多...
 
void init_mem (double *p[], const int n, int **cell_pt)
 This is a function that initializes memory for double-precision floating-point data. 更多...
 
void init_mem_int (int *p[], const int n, int **cell_pt)
 This is a function that initializes memory for integer data. 更多...
 
void mat_mul (const double A[], const double B[], double C[], const int m, const int p, const int n)
 
void mat_add (const double A[], const double B[], double C[], const int m, const int n)
 
void mat_sub (const double A[], const double B[], double C[], const int m, const int n)
 
int rinv (double a[], const int n)
 
double minmod2 (const double s_L, const double s_R)
 Minmod limiter function of two variables. 更多...
 
double minmod3 (const double s_L, const double s_R, const double s_m)
 Minmod limiter function of three variables. 更多...
 

详细描述

This file is the header file of several independent tool functions.

This header file declares functions in the folder 'tools',

在文件 tools.h 中定义.

宏定义说明

◆ MAX

#define MAX (   a,
 
)    (((a) > (b)) ? (a) : (b))

在文件 tools.h10 行定义.

函数说明

◆ CreateDir()

int CreateDir ( const char *  pPath)

This is a function that recursively creates folders.

参数
[in]pPathPointer to the folder Path.
返回
Folder Creation Status.
返回值
-1The path folder already exists and is readable.
0Readable path folders are created recursively.
1The path folder is not created properly.

在文件 sys_pro.c72 行定义.

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

◆ DispPro()

void DispPro ( const double  pro,
const int  step 
)

This function print a progress bar on one line of standard output.

参数
[in]proNumerator of percent that the process has completed.
[in]stepNumber of time steps.

在文件 sys_pro.c37 行定义.

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

◆ init_mem()

void init_mem ( double *  p[],
const int  n,
int **  cell_pt 
)

This is a function that initializes memory for double-precision floating-point data.

参数
[out]pPointer of data.
[in]nNumber of grid cells.
[in]cell_pt[]cell_pt[k][0] is the number of grid node on the k-th grid cell in the clockwise direction..

在文件 sys_pro.c107 行定义.

◆ init_mem_int()

void init_mem_int ( int *  p[],
const int  n,
int **  cell_pt 
)

This is a function that initializes memory for integer data.

参数
[out]pPointer of data.
[in]nNumber of grid cells.
[in]cell_pt[]cell_pt[k][0] is the number of grid node on the k-th grid cell in the clockwise direction..

在文件 sys_pro.c132 行定义.

◆ mat_add()

void mat_add ( const double  A[],
const double  B[],
double  C[],
const int  m,
const int  n 
)

◆ mat_mul()

void mat_mul ( const double  A[],
const double  B[],
double  C[],
const int  m,
const int  p,
const int  n 
)

◆ mat_sub()

void mat_sub ( const double  A[],
const double  B[],
double  C[],
const int  m,
const int  n 
)

◆ minmod2()

double minmod2 ( const double  s_L,
const double  s_R 
)
inline

Minmod limiter function of two variables.

在文件 tools.h44 行定义.

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

◆ minmod3()

double minmod3 ( const double  s_L,
const double  s_R,
const double  s_m 
)
inline

Minmod limiter function of three variables.

在文件 tools.h59 行定义.

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

◆ rinv()

int rinv ( double  a[],
const int  n 
)