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

PLease help me about the cell

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   December 13, 2005, 00:25
Default Dear all, I am a new learne
  #1
Senior Member
 
Guoxiang
Join Date: Mar 2009
Posts: 109
Rep Power: 17
liugx212 is on a distinguished road
Dear all,

I am a new learner in openfoam. Could you please tell the calcilation of cell expression. Each cell is described by 6 elements. But I am not clear how to calculate these 6 elements. Could you please give some advice?

Thanks a lot.
Xiang
liugx212 is offline   Reply With Quote

Old   February 17, 2006, 18:32
Default Hi, I am interested in obta
  #2
New Member
 
Jeff Allen
Join Date: Mar 2009
Posts: 11
Rep Power: 17
jballen is on a distinguished road
Hi,

I am interested in obtaining the x,y,z max min coordinate boundaries for a given cell. I know for example that mesh.bounds() is good for this type of thing for the entire domain extent. Can you assist me with this.

Thanks
Jeff
jballen is offline   Reply With Quote

Old   February 18, 2006, 14:25
Default - get the vertices of cellI:
  #3
Senior Member
 
Mattijs Janssens
Join Date: Mar 2009
Posts: 1,419
Rep Power: 26
mattijs is on a distinguished road
- get the vertices of cellI:

mesh.cellPoints()[cellI]

- get the coordinate of vertex:

mesh.points()[pointI]

so to get the bounding box of a cell just loop over the cellPoints and get the min and max.
mattijs 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 identify boundary cell and internal cell dbxmcf OpenFOAM Running, Solving & CFD 2 November 6, 2016 10:11
cell velocity U and its cell face area Chinayu Siemens 0 May 6, 2006 23:44
unsturcture cell & cylinder cell Difference~ lenson Siemens 1 January 9, 2006 06:32
Cell vertex FV vs Cell centered FV peter.zhao Main CFD Forum 1 September 15, 2004 10:26
Cell-vertex and cell-centered finite volume method Praveen Main CFD Forum 4 September 9, 2003 00:58


All times are GMT -4. The time now is 21:38.