# Help Me, what's the Cell Above any given cell in 3D.

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

 September 10, 2011, 19:17 Help Me, what's the Cell Above any given cell in 3D. #1 New Member   gomane8 Join Date: Mar 2010 Location: ALGERIA Posts: 9 Rep Power: 7 Hi evryone! iam writing an UDF and iam bloked in. i Have a small problem ( isn't small for me)!! i have a Cell in 3D domaine (any given Cell)!! i wana to get the cell just above it! i know in 3D domaine there is about 20 cells around my Cell (the cell is chosen just like that in 3d domaine), so what is the instruction that can give me the Cell just abouve my cell. i have found some instruction to give the faces of any given Cell! but i wana to Get the cell Above mine in the Z direction!! any Help is very apreciated

 September 11, 2011, 14:26 i still waiting! #2 New Member   gomane8 Join Date: Mar 2010 Location: ALGERIA Posts: 9 Rep Power: 7 i am waiting for any instruction, and in the same time iam looking by my self to resolve my problm, so if i find the answer i will put it here!!!! A+

 September 11, 2011, 21:10 #3 Member   private Join Date: Mar 2009 Posts: 74 Rep Power: 9 Short answer: The z-direction cell stacks are consecutively indexed in the k index cell center coordinates are as follows for cell (i,j,k) and cell(i,j,k+1): so cell (i,j,k) -> x(i), y(j), z(k) and cell (i,j,k+1) -> x(i), y(j), z(k+1) is just 'above' it in the z direction. cell centered variables p(i,j,k) -> p(i,j,k+1), rho(i,j,k) -> rho(i,j,k+1) p(xi,yj,zk) -> p(xi,yj,zk+dz), rho(xi,yj,zk) -> rho(xi,yj,zk+dz) At least, it was that way in the mid-90's when I used the code. The version number was much lower then!

September 11, 2011, 21:29
thx
#4
New Member

gomane8
Join Date: Mar 2010
Location: ALGERIA
Posts: 9
Rep Power: 7
Quote:
 Originally Posted by otd Short answer: The z-direction cell stacks are consecutively indexed in the k index cell center coordinates are as follows for cell (i,j,k) and cell(i,j,k+1): so cell (i,j,k) -> x(i), y(j), z(k) and cell (i,j,k+1) -> x(i), y(j), z(k+1) is just 'above' it in the z direction. cell centered variables p(i,j,k) -> p(i,j,k+1), rho(i,j,k) -> rho(i,j,k+1) p(xi,yj,zk) -> p(xi,yj,zk+dz), rho(xi,yj,zk) -> rho(xi,yj,zk+dz) At least, it was that way in the mid-90's when I used the code. The version number was much lower then!
thk you Otd,
well inside my UDF, i try to copy the velocity vector from the cell above my cell (can be any cell)!
and as you know we can not find evry thg in manuals or the internet, specially thx related to CFD!!! so thx again,
i will try the way you have interpret thniks and i hope that work!
A+

 Thread Tools Display Modes Linear Mode

 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 OffTrackbacks are On Pingbacks are On Refbacks are On Forum Rules

 Similar Threads Thread Thread Starter Forum Replies Last Post sebastian_vogl OpenFOAM Programming & Development 1 October 11, 2016 13:17 Purushothama CD-adapco 2 May 31, 2010 21:58 sebastian_vogl OpenFOAM Running, Solving & CFD 0 October 27, 2009 09:47 michele OpenFOAM Other Meshers: ICEM, Star, Ansys, Pointwise, GridPro, Ansa, ... 2 July 15, 2005 04:15 AB CD-adapco 6 November 15, 2004 05:41

All times are GMT -4. The time now is 17:27.