CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > OpenFOAM > OpenFOAM Running, Solving & CFD

Find cellID

Register Blogs Community New Posts Updated Threads Search

Like Tree1Likes
  • 1 Post By gwierink

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   March 4, 2011, 12:51
Default Find cellID
  #1
New Member
 
Johan Magnusson
Join Date: Oct 2010
Posts: 21
Rep Power: 16
magjohan is on a distinguished road
Hi, just wondering how i can print out the cellIDs in the same way as the cell neighbours are printed with the following command

Info<< mesh.cellCells()[i]<< endl;
magjohan is offline   Reply With Quote

Old   March 5, 2011, 03:42
Default
  #2
Senior Member
 
Gijsbert Wierink
Join Date: Mar 2009
Posts: 383
Rep Power: 18
gwierink is on a distinguished road
Hi Johan,

If you'd just like a list of all cells, you could do something like
Code:
forAll(mesh.C(), cellI)
{
    Info << "cellID = " << cellI << endl;
}
HakikiCanakkaleli likes this.
__________________
Regards, Gijs
gwierink is offline   Reply With Quote

Reply

Tags
cell, cellcells, cellid, cells, print


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
YPlus nowhere to be find Daniel CFX 3 May 1, 2006 17:22
How to find & view location of a node in CFX? Bill CFX 2 December 6, 2005 14:18
Can U find this Solution Report N°229 Mohamed FLUENT 5 June 19, 2003 04:28
a way to find out wall-neighboring cells? Christian FLUENT 4 May 10, 2002 09:30
Where can find airfoil data with pressure distribution or aerodynamic data Ahlo Main CFD Forum 5 January 12, 1999 23:45


All times are GMT -4. The time now is 17:20.