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

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

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

浏览源代码.

函数

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. 更多...
 
int rinv (double a[], const int n)
 A function to caculate the inverse of the input square matrix. 更多...
 
double minmod2 (double s_L, double s_R)
 Minmod limiter function of two variables. 更多...
 
double minmod3 (double s_L, double s_R, 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',

函数说明

◆ 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.
这是这个函数的调用关系图:

◆ 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.
这是这个函数的调用关系图:

◆ minmod2()

double minmod2 ( double  s_L,
double  s_R 
)
inline

Minmod limiter function of two variables.

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

◆ minmod3()

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

Minmod limiter function of three variables.

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

◆ rinv()

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

A function to caculate the inverse of the input square matrix.

参数
[in,out]aThe pointer of the input/output square matrix.
[in]nThe order of the input/output square matrix.
返回
Matrix is invertible or not.
返回值
0No inverse matrix
1Invertible matrix