CFD Online Logo CFD Online URL
Home > Forums > Software User Forums > OpenFOAM

nternal faces that surround each cell

Register Blogs Members List Search Today's Posts Mark Forums Read

Like Tree1Likes
  • 1 Post By fumiya

LinkBack Thread Tools Display Modes
Old   March 11, 2013, 22:59
Default nternal faces that surround each cell
Join Date: Apr 2011
Posts: 92
Rep Power: 7
hawkeye321 is an unknown quantity at this point
Do you know how can I find the list of internal faces that surround each cell?
hawkeye321 is offline   Reply With Quote

Old   March 15, 2013, 12:40
Senior Member
Fumiya Nozaki
Join Date: Jun 2010
Location: Yokohama, Japan
Posts: 217
Blog Entries: 1
Rep Power: 11
fumiya is on a distinguished road
Hi mahdiiowa,

I think there are more elegant ways, but the following is an example:

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
Best regards,
RobertoTorelli likes this.
fumiya is offline   Reply With Quote


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
SnappyHexMesh for internal Flow vishwa OpenFOAM Native Meshers: snappyHexMesh and Others 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 15:04

All times are GMT -4. The time now is 22:29.