|
[Sponsors] |
March 11, 2013, 21:59 |
nternal faces that surround each cell
|
#1 |
Member
,...
Join Date: Apr 2011
Posts: 92
Rep Power: 14 |
Hi FOAMERS
Do you know how can I find the list of internal faces that surround each cell? |
|
March 15, 2013, 11:40 |
|
#2 |
Senior Member
Fumiya Nozaki
Join Date: Jun 2010
Location: Yokohama, Japan
Posts: 266
Blog Entries: 1
Rep Power: 18 |
Hi mahdiiowa,
I think there are more elegant ways, but the following is an example: Code:
forAll(mesh.cells(), cellI) { const cell& cFaces = mesh.cells()[cellI]; forAll(cFaces, i) { label cf = cFaces[i]; if (mesh.isInternalFace(cf)) { //cf is a label of a face that belongs to cellI and is an internal face } } } Fumiya |
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
[snappyHexMesh] SnappyHexMesh for internal Flow | vishwa | OpenFOAM Meshing & Mesh Conversion | 24 | June 27, 2016 08:54 |
Cells with t below lower limit | Purushothama | Siemens | 2 | May 31, 2010 21:58 |
Reporting pressure at individual cell faces | Shank | FLUENT | 0 | September 11, 2007 12:24 |
Beginner: cell faces of surface cells | Sunlight007 | Siemens | 0 | August 24, 2003 17:19 |
Metrics of Transformation at the cell faces? | Mohammad Kermani | Main CFD Forum | 0 | February 23, 2000 14:04 |