######################################################################### # Grid data type # ######################################################################### // gridtype: Grid type for generation, conversion, reconstruction, merging. // 0 -- Unstructured grid. // 1 -- Structured grid. // 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 = 0; int nAxisRotateTimes = 0; int axisRotateOrder[] = [1, 2, 3]; double axisRotateAngles[] = [0.0, 0.0, 0.0]; int from_gtype = 2; // ----------------- 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.1,0.0]; double rotationAngle = 10.0; ######################################################################### # 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/Aachen_1.cgns"; string out_gfile = "./grid/Aachen_1.fts"; // ----------------- Rotating Frame -------------------------------- // referenceFrame: whether rotating reference frame used. // 0 -- Stationary Frame. // 1 -- Translational Frame. // 2 -- Rotational Frame. int referenceFrame = 2; // nZone: the number of Global zone. int nTurboZone = 1; // Periodic_Name: a list of periodic boundary name, the number of name equals to 2*nZone // "Periodic_up, Periodic_down" means a pair of name of one zone string Periodic_Name[] = "Periodic_up, Periodic_down"; // PeriodicRotationAngle means rotating angle for each zone. // PeriodicRotationAngle[] = [theta1, theta2...] // theta1, theta2 means rotating angle for zone1,zone2. double PeriodicRotationAngle[] = [10]; // Omega: angular velocity(rad/s) of each zone. double Omega[] = [0.0]; // shroud: define turbomachinery shroud of each zone, because shroud do not rotate. string shroud[] = "shroud"; // nSpanSection: number of spanwise section used for mixing plane. int nSpanSection = 20;