|
[Sponsors] | |||||
|
|
|
#1 |
|
New Member
Juan Hierro
Join Date: Mar 2009
Posts: 11
Rep Power: 6 ![]() |
Dear sirs,
I am wondering how may I loop over all the faces in a cell. I have been looking at the code (mesh definition) and have found only a reference to faces, neighbours and owners. Is there any way to find all the faces surrounding a given cell? Yours faithfully, |
|
|
|
|
|
|
|
|
#2 |
|
Member
Andrew Ryan
Join Date: Mar 2009
Posts: 47
Rep Power: 6 ![]() |
For example look in src/lagrangian/basic/Particle/Particle.C on line 75:
Code:
const labelList& faces = mesh.cells()[celli]; |
|
|
|
|
|
|
|
|
#3 |
|
New Member
Juan Hierro
Join Date: Mar 2009
Posts: 11
Rep Power: 6 ![]() |
In fact, what I was looking for is defined in primitiveMesh.H
I could not have found it without your hint. Thanks! |
|
|
|
|
|
![]() |
| Thread Tools | |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| DecomposePar unequal number of shared faces | maka | OpenFOAM Pre-Processing | 6 | August 12, 2010 09:01 |
| NACA0012 geometry/design software needed | Franny | Main CFD Forum | 13 | July 7, 2007 15:57 |
| Trimmed cell and embedded refinement mesh conversion issues | michele | OpenFOAM Other Meshers: ICEM, Star, Ansys, Pointwise, GridPro, Ansa, ... | 2 | July 15, 2005 04:15 |
| Warning 097- | AB | CD-adapco | 6 | November 15, 2004 04:41 |
| Loop over the faces of a cell in UDF | Anthony Wachs | FLUENT | 4 | October 16, 2001 10:55 |