|
[Sponsors] |
November 30, 2009, 06:04 |
How to loop over faces in a cell?
|
#1 |
New Member
Juan Hierro
Join Date: Mar 2009
Posts: 9
Rep Power: 17 |
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, |
|
November 30, 2009, 06:09 |
|
#2 |
Member
Andrew Ryan
Join Date: Mar 2009
Posts: 47
Rep Power: 17 |
For example look in src/lagrangian/basic/Particle/Particle.C on line 75:
Code:
const labelList& faces = mesh.cells()[celli]; |
|
November 30, 2009, 06:42 |
Thank you very much.
|
#3 |
New Member
Juan Hierro
Join Date: Mar 2009
Posts: 9
Rep Power: 17 |
In fact, what I was looking for is defined in primitiveMesh.H
I could not have found it without your hint. Thanks! |
|
May 29, 2016, 20:20 |
|
#4 |
Senior Member
Thomas Oliveira
Join Date: Apr 2015
Posts: 114
Rep Power: 12 |
||
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Loop over the faces of a cell in UDF | Anthony Wachs | Fluent UDF and Scheme Programming | 6 | April 2, 2024 11:10 |
DecomposePar unequal number of shared faces | maka | OpenFOAM Pre-Processing | 6 | August 12, 2010 10:01 |
NACA0012 geometry/design software needed | Franny | Main CFD Forum | 13 | July 7, 2007 16:57 |
[Commercial meshers] Trimmed cell and embedded refinement mesh conversion issues | michele | OpenFOAM Meshing & Mesh Conversion | 2 | July 15, 2005 05:15 |
Warning 097- | AB | Siemens | 6 | November 15, 2004 05:41 |