powered by
Given I index get ix,iy, iz for three dimensional grids.
itoxyz(i, nx, ny, nz)
Index of X-array
Index of Y-array
Index of Z-array (layer)
index to long vector
number of blocks in x axis
number of blocks in y axis
number of blocks in z axis (layers)
Jonathan M. Lees<jonathan.lees.edu>
xyztoi
itoxyz(24, 6, 6, 1) kpos = itoxyz(2443:2500 , 20, 20, 13)
Run the code above in your browser using DataLab