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

location of each cell

Register Blogs Community New Posts Updated Threads Search

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

Old   October 3, 2012, 03:02
Default
  #2
Senior Member
 
Bernhard
Join Date: Sep 2009
Location: Delft
Posts: 790
Rep Power: 22
Bernhard is on a distinguished road
Did you try searching the forum? This question has been answered a few times already.
http://www.cfd-online.com/Forums/ope...ordinates.html
http://www.cfd-online.com/Forums/ope...ll-center.html
Bernhard is offline   Reply With Quote

Old   October 3, 2012, 11:50
Default
  #3
Member
 
,...
Join Date: Apr 2011
Posts: 92
Rep Power: 14
hawkeye321 is an unknown quantity at this point
Thanks Bernhard!
hawkeye321 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: 13
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: 14
hawkeye321 is an unknown quantity at this point
do you mean ID of the cell adjacent to the top and bottom boundaries?
hawkeye321 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: 22
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: 13
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


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
Cells with t below lower limit Purushothama Siemens 2 May 31, 2010 22:58
How to determine the location of the cell center zmester Main CFD Forum 0 October 11, 2009 07:58
Errors running allwmake in OpenFOAM141dev with WM_COMPILE_OPTION%3ddebug unoder OpenFOAM Installation 11 January 30, 2008 21:30
[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 23:40.