CFD Online Logo CFD Online URL
Home > Forums > OpenFOAM Running, Solving & CFD

Find cellID

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

Like Tree1Likes
  • 1 Post By gwierink

LinkBack Thread Tools Display Modes
Old   March 4, 2011, 12:51
Default Find cellID
New Member
Johan Magnusson
Join Date: Oct 2010
Posts: 21
Rep Power: 6
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
Senior Member
Gijsbert Wierink
Join Date: Mar 2009
Posts: 383
Rep Power: 9
gwierink is on a distinguished road
Hi Johan,

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


cell, cellcells, cellid, cells, print

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
YPlus nowhere to be find Daniel CFX 3 May 1, 2006 16: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 N229 Mohamed FLUENT 5 June 19, 2003 03:28
a way to find out wall-neighboring cells? Christian FLUENT 4 May 10, 2002 08: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 16:50.