CFD Online Logo CFD Online URL
Home > Forums > FLUENT

How to define neighborhood cell?

Register Blogs Members List Search Today's Posts Mark Forums Read

LinkBack Thread Tools Display Modes
Old   January 24, 2007, 20:31
Default How to define neighborhood cell?
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, a thread.
  Reply With Quote

Old   January 25, 2007, 05:28
Default Re: How to define neighborhood cell?
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).
  Reply With Quote


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
How can I get Help? Scalar transport_source term lig Fluent UDF and Scheme Programming 0 May 9, 2010 22:30
Re: scalar transport equation problem Benny FLUENT 4 May 9, 2010 22:12
Scalar problem! lig FLUENT 0 May 5, 2010 15:16
How to calculate the cell area Le FLUENT 0 February 18, 2007 23:15
How to define diffusivities in Fuel cell Model braket FLUENT 1 February 17, 2007 19:08

All times are GMT -4. The time now is 03:26.