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 Members List Search Today's Posts Mark Forums Read

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   December 12, 2005, 23: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, 17: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, 13: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

Thread Tools Search this Thread
Search this Thread:

Advanced Search
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 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 09:11
cell velocity U and its cell face area Chinayu Siemens 0 May 6, 2006 22:44
unsturcture cell & cylinder cell Difference~ lenson Siemens 1 January 9, 2006 05:32
Cell vertex FV vs Cell centered FV peter.zhao Main CFD Forum 1 September 15, 2004 09:26
Cell-vertex and cell-centered finite volume method Praveen Main CFD Forum 4 September 8, 2003 23:58


All times are GMT -4. The time now is 06:20.