CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > 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 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: 8
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: 8
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
Super Moderator
 
Mattijs Janssens
Join Date: Mar 2009
Posts: 1,416
Rep Power: 16
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
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
How to identify boundary cell and internal cell dbxmcf OpenFOAM Running, Solving & CFD 1 August 25, 2008 21:59
cell velocity U and its cell face area Chinayu CD-adapco 0 May 6, 2006 22:44
unsturcture cell & cylinder cell Difference~ lenson CD-adapco 1 January 9, 2006 06: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 21:14.