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

location of each cell

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

Reply
 
LinkBack Thread Tools Display Modes
Old   October 2, 2012, 15:52
Default location of each cell
  #1
Member
 
,...
Join Date: Apr 2011
Posts: 92
Rep Power: 5
mahdiiowa is an unknown quantity at this point
hey, does anyone know how can I get the x, y and z of each cell?
mahdiiowa is offline   Reply With Quote

Old   October 3, 2012, 02:02
Default
  #2
Senior Member
 
Bernhard
Join Date: Sep 2009
Location: Delft
Posts: 790
Rep Power: 12
Bernhard is on a distinguished road
Did you try searching the forum? This question has been answered a few times already.
Can we have access to cells coordinates?
(x,y,z) of cell center
Bernhard is offline   Reply With Quote

Old   October 3, 2012, 10:50
Default
  #3
Member
 
,...
Join Date: Apr 2011
Posts: 92
Rep Power: 5
mahdiiowa is an unknown quantity at this point
Thanks Bernhard!
mahdiiowa is offline   Reply With Quote

Old   November 16, 2012, 14:10
Default cell information
  #4
Member
 
Jamal
Join Date: May 2012
Location: Freiburg
Posts: 54
Rep Power: 4
aujamal20 is an unknown quantity at this point
Dear

I am new to OF and working on heat transfer problem. I defined a simple 2D rectangle (mesh 100*200) having inlet at topleft corner and outlet at bottom left corner.
I need the cell id next to top/bottom/etc patches to get averaged field values. Currently I dont know how i can get cell id or cell (xyz) by using mech.C(). Please tell me precisely what and where i have make changes in case directories to get this.

thanks in anticipation...

aujamal
aujamal20 is offline   Reply With Quote

Old   November 16, 2012, 14:15
Default
  #5
Member
 
,...
Join Date: Apr 2011
Posts: 92
Rep Power: 5
mahdiiowa is an unknown quantity at this point
do you mean ID of the cell adjacent to the top and bottom boundaries?
mahdiiowa is offline   Reply With Quote

Old   November 16, 2012, 15:10
Default
  #6
Senior Member
 
Bernhard
Join Date: Sep 2009
Location: Delft
Posts: 790
Rep Power: 12
Bernhard is on a distinguished road
Quote:
Originally Posted by aujamal20 View Post
Dear

I am new to OF and working on heat transfer problem. I defined a simple 2D rectangle (mesh 100*200) having inlet at topleft corner and outlet at bottom left corner.
I need the cell id next to top/bottom/etc patches to get averaged field values. Currently I dont know how i can get cell id or cell (xyz) by using mech.C(). Please tell me precisely what and where i have make changes in case directories to get this.

thanks in anticipation...

aujamal
What are you trying to achieve exactly? I think you can achieve it by using the sample utility, or putting functionobjects in the controlDict.
Bernhard is offline   Reply With Quote

Old   November 17, 2012, 16:15
Default
  #7
Member
 
Jamal
Join Date: May 2012
Location: Freiburg
Posts: 54
Rep Power: 4
aujamal20 is an unknown quantity at this point
Dear

Thanks alot for your response. As I have mentioned earlier that I am having a 2D rectangle, mesh (100*200) and therefore there are 100 cells in each row having 200 rows. I need to calculate the average value of temperature field in each row by taking the cell values. Now I need cell ID or cell xyz (location) of every cell in the domain (100*200) so that I can sort them row by row accordingly.
So let me know that how I can do this in a better way and how to set sample utility or functionobjects in condtrolDict to achieve this.

thanks
aujamal20 is offline   Reply With Quote

Reply

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
Cells with t below lower limit Purushothama CD-adapco 2 May 31, 2010 21:58
How to determine the location of the cell center zmester Main CFD Forum 0 October 11, 2009 06:58
Errors running allwmake in OpenFOAM141dev with WM_COMPILE_OPTION%3ddebug unoder OpenFOAM Installation 11 January 30, 2008 21:30
Trimmed cell and embedded refinement mesh conversion issues michele OpenFOAM Other Meshers: ICEM, Star, Ansys, Pointwise, GridPro, Ansa, ... 2 July 15, 2005 04:15
Warning 097- AB CD-adapco 6 November 15, 2004 05:41


All times are GMT -4. The time now is 01:00.