Download Add-on Developer`s Kit User`s Manual
Transcript
13- 1.2 Indexing Nodal Ordered Data For Ordered data, the access is done by treating the n-dimensional array of values in tecplot as a one dimensional array. For example, suppose you have an IJK-Ordered zone dimensioned by 10x20x30. To access the value at I=3, J=4, K=5 (one based) you would use: IMax = 10 JMax = 20 KMax = 30 I =3 J =4 K =5 Index = I + (J-1)*IMax + (K-1)*IMax*JMax or Index = I + IMax*((J-1) + (K-1)*JMax) 13- 1.3 Indexing Nodal Finite Element Data For finite element data there is a one-to-one correspondence between the nodal values supplied in the data file and the index you use to access these values. Thus to access the 5th nodal value for the 5th data point use an index of 5. 13- 1.4 Indexing Cell Centered Ordered Data For ordered data, the index that represents the cell center is the same as the nodal index that represents the lowest indexed corner of the cell. For example, the figure in this section shows an IJ-Ordered zone dimensioned 3x4. To access a cell centered value for the cell in the upper right had corner use the following: IMax = 3 JMax = 4 KMax = 1 I =2 J =3 K =1 Index = I + (J-1)*IMax + (K-1)*IMax*JMax or Index = I + IMax*((J-1) + (K-1)*JMax) You’ll notice that the equations are exactly the same as with nodal data. As a result there are gaps of unused values at IMax, JMax, and KMax that must be left unassigned. 90