1 /* This example creates a simple set of IJ-ordered zones */
2 /* DOCSTART:ij_ordered.txt*/
4 #include "MASTER.h" /* for defintion of NULL */
9 INTEGER4 VIsDouble
= 0;
10 INTEGER4 FileType
= 0;
11 INTEGER4 I
= 0; /* Used to track return codes */
14 * Open the file and write the tecplot datafile
17 I
= TECINI112((char*)"IJ Ordered Zones", /* Name of the entire
20 (char*)"X Y P", /* Defines the variables for the data
21 * file. Each zone must contain each of
22 * the variables listed here. The order
23 * of the variables in the list is used
24 * to define the variable number (e.g.
27 (char*)"ij_ordered.plt",
28 (char*)".", /* Scratch Directory */
40 INTEGER4 ICellMax
= 0;
41 INTEGER4 JCellMax
= 0;
42 INTEGER4 KCellMax
= 0;
43 INTEGER4 DIsDouble
= 0;
44 double SolTime
= 360.0;
45 INTEGER4 StrandID
= 0; /* StaticZone */
46 INTEGER4 ParentZn
= 0;
47 INTEGER4 IsBlock
= 1; /* Block */
50 INTEGER4 TotalNumFaceNodes
= 1;
51 INTEGER4 TotalNumBndryFaces
= 1;
52 INTEGER4 TotalNumBndryConnections
= 1;
55 /*Ordered Zone Parameters*/
93 INTEGER4 ZoneType
= 0;
94 I
= TECZNE112((char*)"Ordered Zone",
110 &TotalNumBndryConnections
,
115 INTEGER4 III
= IMax
* JMax
* KMax
;
116 I
= TECDAT112(&III
, X1
, &DIsDouble
);
117 I
= TECDAT112(&III
, Y1
, &DIsDouble
);
118 I
= TECDAT112(&III
, P1
, &DIsDouble
);
120 I
= TECZNE112((char*)"Ordered Zone2",
136 &TotalNumBndryConnections
,
142 I
= TECDAT112(&III
, X2
, &DIsDouble
);
143 I
= TECDAT112(&III
, Y2
, &DIsDouble
);
144 I
= TECDAT112(&III
, P2
, &DIsDouble
);