|
[Sponsors] |
April 7, 2008, 06:12 |
accessing upstream cell - UDF
|
#1 |
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); } } |
|
|
|
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 |