CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   FLUENT (https://www.cfd-online.com/Forums/fluent/)
-   -   How to define neighborhood cell? (https://www.cfd-online.com/Forums/fluent/43461-how-define-neighborhood-cell.html)

Le January 24, 2007 19:31

How to define neighborhood cell?
 
In 3D, I set a variable, for example,cell variable C_R(c,t) with the coordinate i,j,k. How can I determine neighborhood cell C_R(c,t) with the coordinate i+1,j,k or i-1,j,k...in a thread.

Bogdan January 25, 2007 04:28

Re: How to define neighborhood cell?
 
You loop over the cell faces (if you are using hexahedral cells you will have 6 faces) with c_face_loop and then for every face there are F_C0 and F_C1 macros giving you the cell_t index, and THREAD_T0 and THREAD_T1 macros giving you the threads( if the face is a boundary face, THREAD_T1 and F_C1 does not exists).


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