CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > ANSYS > FLUENT

accessing upstream cell - UDF

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

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   April 7, 2008, 06:12
Default accessing upstream cell - UDF
  #1
bohis
Guest
 
Posts: n/a
Hi, I am using the following subroutine to access the upstream cell and I am facing the following problem: This subroutine is done for each cell of the fluid domain, but the neighbouring upstream cell is not found for each of them. To make matters worse, it seems very random. I would expect that the neigboring cell should be found in every cell. Do you know where the problem is? Thanks a lot!!!!!

Q=0; c_face_loop(c, t, n) /* loops over all faces of a cell */ { f = C_FACE(c,t,n); /* identify global face index */ tf = C_FACE_THREAD(c,t,n);

if (Q > F_FLUX(f,tf)) { Q = F_FLUX(f,tf); c1 = F_C1(f,tf); /* global index of neighbouring cell */ t1 = F_C1_THREAD(f,tf); }

}
  Reply With Quote

Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
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 Off
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
accessing the source and sink per cell in patchs Noel Phoenics 15 July 10, 2010 02:45
Accessing member functions of class cell jaswi OpenFOAM Running, Solving & CFD 6 August 26, 2008 18:34
accessing the volume of a cell kk FLUENT 1 February 12, 2007 18:02
Accessing neighboring cells' cell number Daniel Lattin Siemens 4 October 20, 2006 17:19
Accessing Neighbouring Cell info Murali Siemens 1 December 9, 2002 07:10


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