CFD Online Logo CFD Online URL
Home > Forums > Software User Forums > OpenFOAM > 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 Search this Thread Display Modes
Old   March 4, 2011, 11:51
Default Find cellID
New Member
Johan Magnusson
Join Date: Oct 2010
Posts: 21
Rep Power: 15
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, 02:42
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
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 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
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 13: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 22:45

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