CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   FLOW-3D (https://www.cfd-online.com/Forums/flow-3d/)
-   -   cell index ijk -> i,j,k (https://www.cfd-online.com/Forums/flow-3d/104921-cell-index-ijk-i-j-k.html)

mediode July 18, 2012 14:42

Hello,

/comdeck/ijk.f transfers the three cell-indexes i,j,k, in the x,y, and z direction into the "3D cell index" ijk. I think this is done because the storage is actually done in an 1D-array.
Is there a way to do it the other way around? Is it possible to derive the cell indexes i,j,k from the 3D-index ijk?

Best regards

m*

mediode July 26, 2012 13:21

possible:

use i_str(ijk), j_str(ijk) and k_str(ijk)

m*


All times are GMT -4. The time now is 11:34.