forked from PHengLEI/PHengLEI-TestCases
增加结构旋转周期边界转换分区监控算例
This commit is contained in:
parent
5a7b8172aa
commit
3df719e86a
File diff suppressed because it is too large
Load Diff
|
@ -0,0 +1,49 @@
|
|||
#########################################################################
|
||||
# Grid data type #
|
||||
#########################################################################
|
||||
// gridtype: Grid type for generation, conversion, reconstruction, merging.
|
||||
// 0 -- Unstructured grid.
|
||||
// 1 -- Structured grid.
|
||||
// axisup: Type of Cartisien coordinates system, used in grid conversion.
|
||||
// 1 -- Y upward. (default)
|
||||
// 2 -- Z upward.
|
||||
// nAxisRotateTimes: number of axis rotating times, zero (default) meaning without rotating.
|
||||
// axisRotateOrder : axis rotating order.
|
||||
// 1 -- X-axis.
|
||||
// 2 -- Y-axis.
|
||||
// 3 -- Z-axis.
|
||||
// axisRotateAngles: axis rotating angles (degree), which are corresponding to the axis rotating order.
|
||||
// from_gtype: Type of grid data type in grid conversion process.
|
||||
// -1 -- MULTI_TYPE.
|
||||
// 1 -- PHengLEI, *.fts.
|
||||
// 2 -- CGNS, *.cgns.
|
||||
// 3 -- Plot3D type of structured grid, *.dat/*.grd.
|
||||
// 4 -- Fieldview type of unstructured grid, *.dat/*.inp.
|
||||
// 5 -- Fluent, *.cas/*.msh.
|
||||
// 6 -- Ustar, mgrid.in.
|
||||
// 7 -- Hybrid, include both of unstructured and structured grid, *.fts.
|
||||
// 8 -- GMSH, *.msh.
|
||||
int gridtype = 1;
|
||||
int axisup = 1;
|
||||
int nAxisRotateTimes = 0;
|
||||
int axisRotateOrder[] = [1, 2, 3];
|
||||
double axisRotateAngles[] = [0.0, 0.0, 0.0];
|
||||
int from_gtype = 2;
|
||||
|
||||
#########################################################################
|
||||
# File path #
|
||||
#########################################################################
|
||||
// from_gfile: path of original data file for unstructure grid convert from.
|
||||
// out_gfile: path of target file for grid convert to, *.fts type of file usually.
|
||||
string from_gfile = "./grid/3D_shock_wave.cgns";
|
||||
string out_gfile = "./grid/3D_shock_wave.fts";
|
||||
|
||||
// ----------------- Periodic Parameters --------------------------------
|
||||
// Notice: Rotational periodicity only support rotation along the X axis!
|
||||
// periodicType: Which periodic boundary is used.
|
||||
// 0 -- without Periodic Boundary.
|
||||
// 1 -- Translational periodicity.
|
||||
// 2 -- Rotational periodicity.
|
||||
int periodicType = 2;
|
||||
double translationLength[] = [0.0,0.0,0.0];
|
||||
double rotationAngle = 1.0;
|
|
@ -0,0 +1,11 @@
|
|||
#########################################################################
|
||||
# File In or Out #
|
||||
#########################################################################
|
||||
// gridtype: Grid type of original grid file.
|
||||
// 0 -- Unstructured grid.
|
||||
// 1 -- Structured grid.
|
||||
// 2 -- Hybrid grid, include both of unstructured and structured grid.
|
||||
// input_gfile: path of input grid file,*.fts type of file.
|
||||
|
||||
int gridtype = 1;
|
||||
string input_gfile = "./grid/3D_shock_wave.fts";
|
|
@ -0,0 +1,11 @@
|
|||
#########################################################################
|
||||
# File In or Out #
|
||||
#########################################################################
|
||||
// gridtype: Grid type of original grid file.
|
||||
// 0 -- Unstructured grid.
|
||||
// 1 -- Structured grid.
|
||||
// 2 -- Hybrid grid, include both of unstructured and structured grid.
|
||||
// input_gfile: path of input grid file,*.fts type of file.
|
||||
|
||||
int gridtype = 1;
|
||||
string input_gfile = "./grid/3D_shock_wave__4.fts";
|
|
@ -0,0 +1,56 @@
|
|||
string title = "PHengLEI Main Parameter Control File";
|
||||
|
||||
// IMPORTANT NOTICE: DON NOT MODIFY THE FOWLLOWING LINE.
|
||||
string defaultParaFile = "./bin/cfd_para.hypara";
|
||||
|
||||
// ndim: Dimensional of the grid, 2 or 3.
|
||||
// nparafile: the number of parameter files.
|
||||
// nsimutask: simulation task type.
|
||||
// 0 -- CFD Solver of NS or Turbulation.
|
||||
// 1 -- Grid generation: for special typical cases, such as cylinder, flat plate, etc.
|
||||
// Grid conversion: from other format to PHengLEI format (.fts).
|
||||
// Grid reconstruction: such as grid adaptation.
|
||||
// Grid merging: merge two blocks into one block.
|
||||
// Grid repairing: repair the original grid in order to remove the negative volume cells.
|
||||
// 2 -- Wall distance computation for turb-solver.
|
||||
// 3 -- Grid partition.
|
||||
// 4 -- Knowledge repository / examples of PHengLEI-API.
|
||||
int ndim = 3;
|
||||
int nparafile = 1;
|
||||
|
||||
//int nsimutask = 0;
|
||||
//string parafilename = "./bin/cfd_para_subsonic.hypara";
|
||||
//string parafilename = "./bin/cfd_para_transonic.hypara";
|
||||
//string parafilename = "./bin/cfd_para_supersonic.hypara";
|
||||
//string parafilename = "./bin/cfd_para_hypersonic.hypara";
|
||||
//string parafilename = "./bin/incompressible.hypara";
|
||||
|
||||
int nsimutask = 1;
|
||||
string parafilename = "./bin/grid_para.hypara";
|
||||
|
||||
//int nsimutask = 2;
|
||||
//string parafilename = "./bin/cfd_para.hypara";
|
||||
|
||||
//int nsimutask = 3;
|
||||
//string parafilename = "./bin/partition.hypara";
|
||||
|
||||
//int nsimutask = 4;
|
||||
//string parafilename = "./bin/repository.hypara";
|
||||
|
||||
//int nsimutask = 5;
|
||||
//string parafilename = "./bin/overset_grid_view.hypara";
|
||||
|
||||
//int nsimutask = 14;
|
||||
//string parafilename = "./bin/integrative_solver.hypara";
|
||||
|
||||
//int nsimutask = 15;
|
||||
//string parafilename = "./bin/gridcheck_solver_gridpartition.hypara";
|
||||
|
||||
//int nsimutask = 99;
|
||||
//string parafilename = "./bin/post_processing.hypara";
|
||||
|
||||
// ---------------- Advanced Parameters, DO NOT care it ----------------
|
||||
int numberOfGridProcessor = 0;
|
||||
// ATP read
|
||||
//@string parafilename1 = ""
|
||||
//@string parafilename2 = "";
|
|
@ -0,0 +1,31 @@
|
|||
// pgridtype: The grid type.
|
||||
// 0 -- unstruct grid.
|
||||
// 1 -- struct grid.
|
||||
// maxproc: The number of partition zones that want to be divided into,
|
||||
// which is equal to the number of CPU processors you want.
|
||||
// Usually, 50~100 thousands structured cells per CPU-Core is suggested.
|
||||
// 30~70 thousands unstructured cells per CPU-Core is suggested.
|
||||
// original_grid_file: Original grid file that want to be divided(PHengLEI type, *.fts).
|
||||
// partition_grid_file: Target partition grid file(PHengLEI type, *.fts).
|
||||
|
||||
int pgridtype = 1;
|
||||
int maxproc = 4;
|
||||
|
||||
string original_grid_file = "./grid/3D_shock_wave.fts";
|
||||
string partition_grid_file = "./grid/3D_shock_wave__4.fts";
|
||||
|
||||
// numberOfMultigrid: Number of multi-grid levels, ONLY used for structured grid.
|
||||
// 1 -- single level.
|
||||
// 2 -- 2 level.
|
||||
// N -- N level,..., et al.
|
||||
int numberOfMultigrid = 1;
|
||||
|
||||
// ----------------- Periodic Parameters --------------------------------
|
||||
// Notice: Rotational periodicity only support rotation along the X axis!
|
||||
// periodicType: Which periodic boundary is used.
|
||||
// 0 -- without Periodic Boundary.
|
||||
// 1 -- Translational periodicity.
|
||||
// 2 -- Rotational periodicity.
|
||||
int periodicType = 2;
|
||||
double translationLength[] = [0.0,0.0,0.0];
|
||||
double rotationAngle = 1.0;
|
|
@ -0,0 +1,38 @@
|
|||
{
|
||||
"keyStep": [
|
||||
{
|
||||
"stepId": 0,
|
||||
"stepProc": 1,
|
||||
"stepName": "转换",
|
||||
"nsimutask": 1,
|
||||
"parafilename": "./bin/grid_para.hypara"
|
||||
},
|
||||
{
|
||||
"stepId": 1,
|
||||
"stepProc": 1,
|
||||
"stepName": "网格转换检查",
|
||||
"nsimutask": 15,
|
||||
"parafilename": "./bin/gridcheck_solver_gridconvert.hypara"
|
||||
},
|
||||
{
|
||||
"stepId": 2,
|
||||
"stepProc": 1,
|
||||
"stepName": "分区",
|
||||
"nsimutask": 3,
|
||||
"parafilename": "./bin/partition.hypara"
|
||||
},
|
||||
{
|
||||
"stepId": 3,
|
||||
"stepProc": 1,
|
||||
"stepName": "网格分区检查",
|
||||
"nsimutask": 15,
|
||||
"parafilename": "./bin/gridcheck_solver_gridpartition.hypara"
|
||||
}
|
||||
],
|
||||
"analysisDifferenceFiles": {
|
||||
"grid": [
|
||||
"3D_shock_wave_0.fts_check",
|
||||
"3D_shock_wave__4_0.fts_check"
|
||||
]
|
||||
}
|
||||
}
|
Binary file not shown.
Loading…
Reference in New Issue