|
[Sponsors] |
![]() |
![]() |
#1 |
Senior Member
Guoxiang
Join Date: Mar 2009
Posts: 109
Rep Power: 18 ![]() |
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 |
|
![]() |
![]() |
![]() |
![]() |
#2 |
New Member
Jeff Allen
Join Date: Mar 2009
Posts: 11
Rep Power: 18 ![]() |
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 |
|
![]() |
![]() |
![]() |
![]() |
#3 |
Senior Member
Mattijs Janssens
Join Date: Mar 2009
Posts: 1,419
Rep Power: 27 ![]() |
- 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. |
|
![]() |
![]() |
![]() |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
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 |