CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > 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 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: 5
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 Nozaki
Join Date: Jun 2010
Location: Yokohama, Japan
Posts: 169
Rep Power: 7
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
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 23 August 6, 2014 03:50
Cells with t below lower limit Purushothama CD-adapco 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 CD-adapco 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 19:37.