CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   FLOW-3D (https://www.cfd-online.com/Forums/flow-3d/)
-   -   What are the index of cells below the cell with index of <ijk>? (https://www.cfd-online.com/Forums/flow-3d/156189-what-index-cells-below-cell-index-ijk.html)

diligentwhq July 4, 2015 23:04

What are the index of cells below the cell with index of <ijk>?
 
Hello everyone. I want to get the index of cells below the cell with index of <ijk> and assign values to these cells. The first one below <ijk> was <ijk-ii1> and the second one was <ijk-ii2>. When I use <ijk-ii3> to label the cell of the third layer blow the current cell <ijk>, it seems that the assign values to this cell was failed. And if I use <ijk-ii4> in the subroutine, it was ok to build the subroutine but error would occur when preprocess the simulation. So, what's the rule of defining the index of cell according to the current cell index <ijk> in FLOW-3D?


The error information when using <ijk-ii4> was as follows:
forrtl: severe (157): Program Exception - access violation
Image PC Routine Line Source
hydr3d.exe 0000000140008F1C Unknown Unknown Unknown
hydr3d.exe 00000001401CD995 Unknown Unknown Unknown
hydr3d.exe 000000014029F1A6 Unknown Unknown Unknown
hydr3d.exe 000000014081DF8C Unknown Unknown Unknown
hydr3d.exe 0000000140747545 Unknown Unknown Unknown
kernel32.dll 00000000771159ED Unknown Unknown Unknown
ntdll.dll 000000007724C541 Unknown Unknown Unknown
***********************************************
**** Running preprocessor ****
***********************************************


Abnormal exit from preprocessor
Simulation run complete
SolverRunner disconnected

diligentwhq July 8, 2015 21:30

I have found that I have made a mistake. <ijk-ii1> was the cell to the back of <ijk> in y direction and <ijk-ii2> was the cell to bottom of <ijk> in z direction, which was the one I need in my subroutine. The cells index below <ijk> can be achieved by subtract ii2 successively.


Quote:

Originally Posted by diligentwhq (Post 553835)
Hello everyone. I want to get the index of cells below the cell with index of <ijk> and assign values to these cells. The first one below <ijk> was <ijk-ii1> and the second one was <ijk-ii2>. When I use <ijk-ii3> to label the cell of the third layer blow the current cell <ijk>, it seems that the assign values to this cell was failed. And if I use <ijk-ii4> in the subroutine, it was ok to build the subroutine but error would occur when preprocess the simulation. So, what's the rule of defining the index of cell according to the current cell index <ijk> in FLOW-3D?


The error information when using <ijk-ii4> was as follows:
forrtl: severe (157): Program Exception - access violation
Image PC Routine Line Source
hydr3d.exe 0000000140008F1C Unknown Unknown Unknown
hydr3d.exe 00000001401CD995 Unknown Unknown Unknown
hydr3d.exe 000000014029F1A6 Unknown Unknown Unknown
hydr3d.exe 000000014081DF8C Unknown Unknown Unknown
hydr3d.exe 0000000140747545 Unknown Unknown Unknown
kernel32.dll 00000000771159ED Unknown Unknown Unknown
ntdll.dll 000000007724C541 Unknown Unknown Unknown
***********************************************
**** Running preprocessor ****
***********************************************


Abnormal exit from preprocessor
Simulation run complete
SolverRunner disconnected



All times are GMT -4. The time now is 10:05.