2021-12-31 09:04:02 +08:00
|
|
|
#########################################################################
|
|
|
|
# Grid data type #
|
|
|
|
#########################################################################
|
|
|
|
// gridtype: Grid type for generation, conversion, reconstruction, merging.
|
|
|
|
// 0 -- Unstructured grid.
|
|
|
|
// 1 -- 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-12-31 09:04:02 +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.
|
|
|
|
int gridtype = 1;
|
2023-06-16 09:45:17 +08:00
|
|
|
int nAxisRotateTimes = 0;
|
|
|
|
int axisRotateOrder[] = [1, 2, 3];
|
|
|
|
double axisRotateAngles[] = [0.0, 0.0, 0.0];
|
2021-12-31 09:04:02 +08:00
|
|
|
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/naca0012_str_26m_yup.cgns";
|
|
|
|
string out_gfile = "./grid/naca0012_str_26m_yup.fts";
|
|
|
|
|
|
|
|
// ----------------- Periodic Parameters --------------------------------
|
|
|
|
// Notice:Periodic boundary only support translation or rotation along the X axis!
|
|
|
|
// periodicType: Which symmetry plane is used in the mesh.
|
|
|
|
// 0 -- without Periodic Boundary.
|
|
|
|
// 1 -- Translational periodicity.
|
|
|
|
// 2 -- Rotational periodicity.
|
2022-06-29 14:56:35 +08:00
|
|
|
int periodicType = 1;
|
2021-12-31 09:04:02 +08:00
|
|
|
double translationLength[] = [0.0,0.0,0.5];
|
2022-06-29 14:56:35 +08:00
|
|
|
double rotationAngle = 0.0;
|