|
[Sponsors] |
January 24, 2007, 19:31 |
How to define neighborhood cell?
|
#1 |
Guest
Posts: n/a
|
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.
|
|
January 25, 2007, 04:28 |
Re: How to define neighborhood cell?
|
#2 |
Guest
Posts: n/a
|
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).
|
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Re: scalar transport equation problem | Benny | FLUENT | 5 | March 22, 2018 13:28 |
How can I get Help? Scalar transport_source term | lig | Fluent UDF and Scheme Programming | 0 | May 9, 2010 22:30 |
Scalar problem! | lig | FLUENT | 0 | May 5, 2010 15:16 |
How to calculate the cell area | Le | FLUENT | 0 | February 18, 2007 22:15 |
How to define diffusivities in Fuel cell Model | braket | FLUENT | 1 | February 17, 2007 18:08 |