CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > General Forums > Main CFD Forum

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

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   September 10, 2011, 20:17
Default 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: 15
gomane8 is an unknown quantity at this point
Send a message via Skype™ to gomane8
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
gomane8 is offline   Reply With Quote

Old   September 11, 2011, 15:26
Default i still waiting!
  #2
New Member
 
gomane8
Join Date: Mar 2010
Location: ALGERIA
Posts: 9
Rep Power: 15
gomane8 is an unknown quantity at this point
Send a message via Skype™ to gomane8
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+
gomane8 is offline   Reply With Quote

Old   September 11, 2011, 22:10
Default
  #3
otd
Member
 
private
Join Date: Mar 2009
Posts: 74
Rep Power: 17
otd is on a distinguished road
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!
otd is offline   Reply With Quote

Old   September 11, 2011, 22:29
Default thx
  #4
New Member
 
gomane8
Join Date: Mar 2010
Location: ALGERIA
Posts: 9
Rep Power: 15
gomane8 is an unknown quantity at this point
Send a message via Skype™ to gomane8
Quote:
Originally Posted by otd View Post
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+
gomane8 is offline   Reply With Quote

Reply


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
How to determine the direction of cell face vectors on processor patches sebastian_vogl OpenFOAM Programming & Development 1 October 11, 2016 14:17
Cells with t below lower limit Purushothama Siemens 2 May 31, 2010 22:58
How to determine the direction of cell face vectors on processor patches sebastian_vogl OpenFOAM Running, Solving & CFD 0 October 27, 2009 09:47
[Commercial meshers] Trimmed cell and embedded refinement mesh conversion issues michele OpenFOAM Meshing & Mesh Conversion 2 July 15, 2005 05:15
Warning 097- AB Siemens 6 November 15, 2004 05:41


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