2021-06-27 15:39:28 +08:00
|
|
|
#########################################################################
|
|
|
|
# Grid data type #
|
|
|
|
#########################################################################
|
|
|
|
// gridtype: Grid type for generation, conversion, reconstruction, merging.
|
|
|
|
// 0 -- Unstructured grid.
|
|
|
|
// 1 -- Structured grid.
|
|
|
|
// 2 -- Hybrid grid, include both of unstructured and structured grid.
|
2023-06-16 09:45:17 +08:00
|
|
|
// 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.
|
2021-06-27 15:39:28 +08:00
|
|
|
// 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.
|
|
|
|
// dumpOldGrid: If dump out the old grid file.
|
|
|
|
// 0 -- Not. (default)
|
|
|
|
// 1 -- Yes.
|
|
|
|
// omit_no_bound_bc: What's boundary condition for the type of "no_boundary_condition".
|
|
|
|
// 0 -- Interface. (default)
|
|
|
|
// 1 -- Physical boundary condition, used in Hybrid solver.
|
|
|
|
|
|
|
|
// struct
|
2022-06-29 14:56:35 +08:00
|
|
|
//int gridtype = 1;
|
2021-06-27 15:39:28 +08:00
|
|
|
|
|
|
|
// unstrut
|
2022-06-29 14:56:35 +08:00
|
|
|
//int gridtype = 0;
|
2021-06-27 15:39:28 +08:00
|
|
|
|
|
|
|
// mix
|
2022-06-29 14:56:35 +08:00
|
|
|
int gridtype = 2;
|
2021-06-27 15:39:28 +08:00
|
|
|
|
|
|
|
// default
|
2023-06-16 09:45:17 +08:00
|
|
|
int nAxisRotateTimes = 0;
|
|
|
|
int axisRotateOrder[] = [1, 2, 3];
|
|
|
|
double axisRotateAngles[] = [0.0, 0.0, 0.0];
|
2022-06-29 14:56:35 +08:00
|
|
|
int from_gtype = 2;
|
2021-06-27 15:39:28 +08:00
|
|
|
int omit_no_bound_bc = 1;
|
|
|
|
|
|
|
|
#########################################################################
|
|
|
|
# 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.
|
|
|
|
|
|
|
|
// struct
|
|
|
|
//string from_gfile = "./grid/str.cgns";
|
|
|
|
//string out_gfile = "./grid/str.fts";
|
|
|
|
|
|
|
|
// unstruct
|
|
|
|
//string from_gfile = "./grid/unstr.cgns";
|
|
|
|
//string out_gfile = "./grid/unstr.fts";
|
|
|
|
|
|
|
|
// mix
|
|
|
|
string mixgrid_uns = "./grid/unstr__4.fts";
|
|
|
|
string mixgrid_str = "./grid/str__4.fts";
|
|
|
|
string out_gfile = "./grid/rae2822_mix__4.fts";
|