CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
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

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   March 11, 2013, 22:59
Default nternal faces that surround each cell
  #1
Member
 
,...
Join Date: Apr 2011
Posts: 92
Rep Power: 13
hawkeye321 is an unknown quantity at this point
Hi FOAMERS
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
Default
  #2
Senior Member
 
fumiya's Avatar
 
Fumiya Nozaki
Join Date: Jun 2010
Location: Yokohama, Japan
Posts: 266
Blog Entries: 1
Rep Power: 18
fumiya is on a distinguished road
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
        }
    }
}
Best regards,
Fumiya
RobertoTorelli likes this.
fumiya is offline   Reply With Quote

Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
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 Off
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
[snappyHexMesh] SnappyHexMesh for internal Flow vishwa OpenFOAM Meshing & Mesh Conversion 24 June 27, 2016 09:54
Cells with t below lower limit Purushothama Siemens 2 May 31, 2010 22:58
Reporting pressure at individual cell faces Shank FLUENT 0 September 11, 2007 13:24
Beginner: cell faces of surface cells Sunlight007 Siemens 0 August 24, 2003 18: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 08:27.